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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenbase-0.0.18.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.18.tar.gz
Algorithm Hash digest
SHA256 c18a7368ec9989dbf95b571b8d7d115009ec8b6389e4ec10221b18846f9fe488
MD5 2f1c08f9a63c2520681d2bb20e3894dc
BLAKE2b-256 ddf1d24d2a5d55559bfc265f64f57a2d34078a29993ec79a0347a7d5ae30738e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenbase-0.0.18-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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5d5cb065f42aaa39aafc7c1a604ba7b5b6d86ca049c831a2da3b4e8026f711
MD5 7809e79a53eae64970b817a373eb016b
BLAKE2b-256 1992d22544137287401c35e58e85f3ab753013a7d0a3336295dccd503f54360c

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