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 |
---|---|
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
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
File details
Details for the file zenbase-0.0.19.tar.gz
.
File metadata
- Download URL: zenbase-0.0.19.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1426acca649e3454dea57a20574ca7043f8aa2ee1d782f5ef182c491f01c1cbe |
|
MD5 | a589a1953c1456ce524fd5e597836b05 |
|
BLAKE2b-256 | 7cf7a4e563407d5e26f6c1500e00d40732eaaa5e0bb45d3bfd48fd5efaa0f9d4 |
File details
Details for the file zenbase-0.0.19-py3-none-any.whl
.
File metadata
- Download URL: zenbase-0.0.19-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a0f2ec9e9a3644d552594c91a7a7427c6601df3fd25be796fb64a6ca95d708 |
|
MD5 | 363a448583b6818d19797d591bc8945a |
|
BLAKE2b-256 | e7a0ba6fbd1ae79bfdc6f06553dc9fcf0338ccef5b347147f04d1de33faffa2b |