Skip to main content

LLMs made Zen

Project description

Zenbase Python SDK

Installation

zenbase Python package on PyPi

Zenbase requires Python ≥3.10. You can install it using your favorite package manager:

pip install zenbase
poetry add zenbase
rye add zenbase

Usage

Zenbase is designed to require minimal changes to your existing codebase and integrate seamlessly with your existing eval/observability platforms. It works with any AI SDK (OpenAI, Anthropic, Cohere, Langchain, etc.).

Labeled Few-Shot Learning Cookbooks:

LabeledFewShot will be useful for tasks that are just one layer of prompts.

Cookbook Run in Colab
without_integration.ipynb
langsmith.ipynb
arize.ipynb
langfuse.ipynb
parea.ipynb
lunary.ipynb

Bootstrap Few-Shot Learning Cookbooks:

BootstrapFewShot will be useful for tasks that are multiple layers of prompts.

Cookbook Run in Colab
langsmith.ipynb
arize.ipynb
langfuse.ipynb
parea.ipynb
lunary.ipynb

Predefined Cookbooks:

Cookbook Description Run in Colab
Single Class Classifier Basic implementation of a single class classifier
Synthetic Data Generation Generate synthetic data for single class classification
Classifier with Synthetic Data Train and test a single class classifier using synthetic data

Development setup

This repo uses Python 3.10 and rye to manage dependencies. Once you've gotten rye installed, you can install dependencies by running:

rye sync

And activate the virtualenv with:

. .venv/bin/activate

You can run tests with:

rye test # pytest -sv to see prints and verbose output
rye test -- -m helpers # integration tests with helpers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenbase-0.0.22.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

zenbase-0.0.22-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file zenbase-0.0.22.tar.gz.

File metadata

  • Download URL: zenbase-0.0.22.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for zenbase-0.0.22.tar.gz
Algorithm Hash digest
SHA256 2201e62f15332d8a61cfafc45ebec8e62bd9c0d1b77bfa723c7763d81ba138b7
MD5 ff18ee052075326dca9273e31ddfd7b3
BLAKE2b-256 774aaa1ac40b889473573c32996178287266d8c1a527bbd3a5542c54619814ea

See more details on using hashes here.

File details

Details for the file zenbase-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: zenbase-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for zenbase-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2f36bbc59d650d52fe1e758718cecc9fb265e0fcdd743b6fd6c05fe6c4a0f6
MD5 bb04570fe64fdc0b0727e29bf42b4247
BLAKE2b-256 482313ba659bb7e761d78e0e8ec24365ed58906cae94ca9a8196c2b2cf55ea7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page