zenbase


Namezenbase JSON
Version 0.0.22 PyPI version JSON
download
home_pageNone
SummaryLLMs made Zen
upload_time2024-11-22 21:29:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Zenbase Python SDK

## Installation

<a href="https://pypi.python.org/pypi/zenbase"><img src="https://img.shields.io/pypi/v/zenbase.svg?style=flat-square&label=pypi+zenbase" alt="zenbase Python package on PyPi"></a>

Zenbase requires Python ≥3.10. You can install it using your favorite package manager:

```bash
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](cookbooks/labeled_few_shot/json.ipynb) | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/json.ipynb) |
| [langsmith.ipynb](cookbooks/labeled_few_shot/langsmith.ipynb) | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/langsmith.ipynb) |
| [arize.ipynb](cookbooks/labeled_few_shot/arize.ipynb)         | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/arize.ipynb)     |
| [langfuse.ipynb](cookbooks/labeled_few_shot/langfuse.ipynb)   | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/langfuse.ipynb)  |
| [parea.ipynb](cookbooks/labeled_few_shot/parea.ipynb)         | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/parea.ipynb)     |
| [lunary.ipynb](cookbooks/labeled_few_shot/lunary.ipynb)       | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/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](cookbooks/bootstrap_few_shot/langsmith.ipynb) | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/langsmith.ipynb) |
| [arize.ipynb](cookbooks/bootstrap_few_shot/arize.ipynb)         | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/arize.ipynb)     |
| [langfuse.ipynb](cookbooks/bootstrap_few_shot/langfuse.ipynb)   | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/langfuse.ipynb)  |
| [parea.ipynb](cookbooks/bootstrap_few_shot/parea.ipynb)         | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/parea.ipynb)     |
| [lunary.ipynb](cookbooks/bootstrap_few_shot/lunary.ipynb)       | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/lunary.ipynb)    |


### Predefined Cookbooks:

| Cookbook                                                                            | Description                                                               | Run in Colab                                                                                                                                                                                                              |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Single Class Classifier](cookbooks/predefined/single_class_classifier.ipynb)       | Basic implementation of a single class classifier                        | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_classifier.ipynb)  |
| [Synthetic Data Generation](cookbooks/predefined/single_class_classifier_syn_data.ipynb) | Generate synthetic data for single class classification                  | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_classifier_syn_data.ipynb)  |
| [Classifier with Synthetic Data](cookbooks/predefined/single_class_clasifier_trained_with_syn_data.ipynb) | Train and test a single class classifier using synthetic data | [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_clasifier_trained_with_syn_data.ipynb)  |


## Development setup

This repo uses Python 3.10 and [rye](https://rye.astral.sh/) to manage dependencies. Once you've gotten rye installed, you can install dependencies by running:

```bash
rye sync
```

And activate the virtualenv with:

```bash
. .venv/bin/activate
```

You can run tests with:

```bash
rye test # pytest -sv to see prints and verbose output
rye test -- -m helpers # integration tests with helpers
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "zenbase",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Cyrus Nouroozi <cyrus@zenbase.ai>",
    "download_url": "https://files.pythonhosted.org/packages/77/4a/aa1ac40b889473573c32996178287266d8c1a527bbd3a5542c54619814ea/zenbase-0.0.22.tar.gz",
    "platform": null,
    "description": "# Zenbase Python SDK\n\n## Installation\n\n<a href=\"https://pypi.python.org/pypi/zenbase\"><img src=\"https://img.shields.io/pypi/v/zenbase.svg?style=flat-square&label=pypi+zenbase\" alt=\"zenbase Python package on PyPi\"></a>\n\nZenbase requires Python \u22653.10. You can install it using your favorite package manager:\n\n```bash\npip install zenbase\npoetry add zenbase\nrye add zenbase\n```\n\n## Usage\n\nZenbase 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.).\n\n\n### Labeled Few-Shot Learning Cookbooks:\n\nLabeledFewShot will be useful for tasks that are just one layer of prompts.\n\n| Cookbook                                                      | Run in Colab                                                                                                                                                                                             |\n|---------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [without_integration.ipynb](cookbooks/labeled_few_shot/json.ipynb) | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/json.ipynb) |\n| [langsmith.ipynb](cookbooks/labeled_few_shot/langsmith.ipynb) | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/langsmith.ipynb) |\n| [arize.ipynb](cookbooks/labeled_few_shot/arize.ipynb)         | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/arize.ipynb)     |\n| [langfuse.ipynb](cookbooks/labeled_few_shot/langfuse.ipynb)   | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/langfuse.ipynb)  |\n| [parea.ipynb](cookbooks/labeled_few_shot/parea.ipynb)         | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/parea.ipynb)     |\n| [lunary.ipynb](cookbooks/labeled_few_shot/lunary.ipynb)       | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/labeled_few_shot/lunary.ipynb)    |\n\n### Bootstrap Few-Shot Learning Cookbooks:\n\nBootstrapFewShot will be useful for tasks that are multiple layers of prompts.\n\n| Cookbook                                                        | Run in Colab                                                                                                                                                                                               |\n|-----------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [langsmith.ipynb](cookbooks/bootstrap_few_shot/langsmith.ipynb) | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/langsmith.ipynb) |\n| [arize.ipynb](cookbooks/bootstrap_few_shot/arize.ipynb)         | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/arize.ipynb)     |\n| [langfuse.ipynb](cookbooks/bootstrap_few_shot/langfuse.ipynb)   | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/langfuse.ipynb)  |\n| [parea.ipynb](cookbooks/bootstrap_few_shot/parea.ipynb)         | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/parea.ipynb)     |\n| [lunary.ipynb](cookbooks/bootstrap_few_shot/lunary.ipynb)       | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/bootstrap_few_shot/lunary.ipynb)    |\n\n\n### Predefined Cookbooks:\n\n| Cookbook                                                                            | Description                                                               | Run in Colab                                                                                                                                                                                                              |\n|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Single Class Classifier](cookbooks/predefined/single_class_classifier.ipynb)       | Basic implementation of a single class classifier                        | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_classifier.ipynb)  |\n| [Synthetic Data Generation](cookbooks/predefined/single_class_classifier_syn_data.ipynb) | Generate synthetic data for single class classification                  | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_classifier_syn_data.ipynb)  |\n| [Classifier with Synthetic Data](cookbooks/predefined/single_class_clasifier_trained_with_syn_data.ipynb) | Train and test a single class classifier using synthetic data | [<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/zenbase-ai/core/blob/main/py/cookbooks/predefined/single_class_clasifier_trained_with_syn_data.ipynb)  |\n\n\n## Development setup\n\nThis repo uses Python 3.10 and [rye](https://rye.astral.sh/) to manage dependencies. Once you've gotten rye installed, you can install dependencies by running:\n\n```bash\nrye sync\n```\n\nAnd activate the virtualenv with:\n\n```bash\n. .venv/bin/activate\n```\n\nYou can run tests with:\n\n```bash\nrye test # pytest -sv to see prints and verbose output\nrye test -- -m helpers # integration tests with helpers\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LLMs made Zen",
    "version": "0.0.22",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "482313ba659bb7e761d78e0e8ec24365ed58906cae94ca9a8196c2b2cf55ea7d",
                "md5": "bb04570fe64fdc0b0727e29bf42b4247",
                "sha256": "7a2f36bbc59d650d52fe1e758718cecc9fb265e0fcdd743b6fd6c05fe6c4a0f6"
            },
            "downloads": -1,
            "filename": "zenbase-0.0.22-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb04570fe64fdc0b0727e29bf42b4247",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 39303,
            "upload_time": "2024-11-22T21:29:12",
            "upload_time_iso_8601": "2024-11-22T21:29:12.811628Z",
            "url": "https://files.pythonhosted.org/packages/48/23/13ba659bb7e761d78e0e8ec24365ed58906cae94ca9a8196c2b2cf55ea7d/zenbase-0.0.22-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "774aaa1ac40b889473573c32996178287266d8c1a527bbd3a5542c54619814ea",
                "md5": "ff18ee052075326dca9273e31ddfd7b3",
                "sha256": "2201e62f15332d8a61cfafc45ebec8e62bd9c0d1b77bfa723c7763d81ba138b7"
            },
            "downloads": -1,
            "filename": "zenbase-0.0.22.tar.gz",
            "has_sig": false,
            "md5_digest": "ff18ee052075326dca9273e31ddfd7b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 80429,
            "upload_time": "2024-11-22T21:29:13",
            "upload_time_iso_8601": "2024-11-22T21:29:13.768019Z",
            "url": "https://files.pythonhosted.org/packages/77/4a/aa1ac40b889473573c32996178287266d8c1a527bbd3a5542c54619814ea/zenbase-0.0.22.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-22 21:29:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "zenbase"
}
        
Elapsed time: 4.21768s