LLMs made Zen
Project description
Zenbase Python SDK
Installation
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 |
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for zenbase-0.0.4rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5216fa6fc7d8641f6dded8c1b5441e44a5d3dfd9fa74e04a8b6ea71ab03b4e8 |
|
MD5 | 78f0afcaced14e79b8f6624db34716f9 |
|
BLAKE2b-256 | e9f458d2c6b5e5cfe4362537ce66e132e692e077c3f9a040206793071926ac71 |