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
langsmith.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
langfuse.ipynb
parea.ipynb
lunary.ipynb

https://colab.research.google.com/github/zenbase-ai/lib/blob/amir/feat/bootstrapfewshot/eng-22-featbootstrapfewshot-cleanup-notebook-and-readme/py/cookbooks/bootstrap_few_shot/langfuse.ipynb

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.4rc1.tar.gz (79.7 kB view hashes)

Uploaded Source

Built Distribution

zenbase-0.0.4rc1-py3-none-any.whl (26.8 kB view hashes)

Uploaded Python 3

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