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.20.tar.gz (80.5 kB view details)

Uploaded Source

Built Distribution

zenbase-0.0.20-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenbase-0.0.20.tar.gz
  • Upload date:
  • Size: 80.5 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.20.tar.gz
Algorithm Hash digest
SHA256 08c820731d5a043cc8df38c2fa3497954f1b35ee9f73b496e4b14824342a2872
MD5 16d295574ce66dc08d23c717aca3c838
BLAKE2b-256 4e137db013518ec63e99b827f86c2c8e3354cff40d018f25c7951158a10ac44e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenbase-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 39.2 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.20-py3-none-any.whl
Algorithm Hash digest
SHA256 eb61d17f2812de7036fd49ef1e13567f53f906aa45ce5e348467aa7b2d506e8d
MD5 39e6b00b21b91b173e947265e1782b0e
BLAKE2b-256 512f0b9266144d70deb89acb96c940a324b2c833462f42264169be7785ffd465

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