rhesis-sdk


Namerhesis-sdk JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummarySDK for testing and validating LLM applications
upload_time2025-01-26 21:31:04
maintainerNone
docs_urlNone
authorEngineering Team
requires_python>=3.10
licenseMIT
keywords llm testing ai machine-learning
VCS
bugtrack_url
requirements appnope asttokens certifi cffi charset-normalizer colorama comm debugpy decorator exceptiongroup executing idna importlib-metadata ipykernel ipython jedi jupyter-client jupyter-core matplotlib-inline nest-asyncio packaging parso pexpect platformdirs prompt-toolkit psutil ptyprocess pure-eval pycparser pygments python-dateutil python-dotenv pywin32 pyzmq requests six stack-data tornado traitlets typing-extensions urllib3 wcwidth zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Rhesis SDK

<p align="center">
  <img src="https://cdn.prod.website-files.com/66f422128b6d0f3351ce41e3/66fd07dc0b6994070ec5b54b_Logo%20Rhesis%20Orange-p-500.png" alt="Rhesis Logo" width="300"/>
</p>

> Gen AI applications that deliver value, not surprises.

The Rhesis SDK enables developers to access curated test sets and generate dynamic ones for GenAI applications. It provides tools to tailor validations to your needs and integrate seamlessly to keep your Gen AI robust, reliable & compliant.

## Installation

Install the Rhesis SDK using pip:

```bash
pip install rhesis-sdk
```

## Getting Started

### 1. Obtain an API Key

1. Visit [https://app.rhesis.ai](https://app.rhesis.ai)
2. Sign up for a Rhesis account
3. Navigate to your account settings
4. Generate a new API key

Your API key will be in the format `rh-XXXXXXXXXXXXXXXXXXXX`. Keep this key secure and never share it publicly.

### 2. Configure the SDK

You can configure the Rhesis SDK either through environment variables or direct configuration:

#### Using Environment Variables

```bash
export RHESIS_API_KEY="your-api-key"
export RHESIS_BASE_URL="https://api.rhesis.ai"  # optional
```

#### Direct Configuration

```python
import rhesis 

# Set configuration directly
rhesis.base_url = "https://api.rhesis.ai"  # optional
rhesis.api_key = "rh-XXXXXXXXXXXXXXXXXXXX"
```

## Features

The Rhesis SDK currently provides functionality to work with Rhesis test sets through routine operations:

- **List Test Sets**: Browse through available curated test sets
- **Load Test Sets**: Load specific test sets for your use case
- **Download Test Sets**: Download test set data for offline use

## Quick Start

You can configure the Rhesis SDK either through environment variables or direct configuration:

### Using Environment Variables

```bash
export RHESIS_API_KEY="your-api-key"
export RHESIS_BASE_URL="https://api.rhesis.ai"  # optional
```

### Direct Configuration

```python
import rhesis 

# Set configuration directly
rhesis.base_url = "https://api.rhesis.ai"  # optional
rhesis.api_key = "rh-XXXXXXXXXXXXXXXXXXXX"
```

### Working with Test Sets

```python
from rhesis.entities import TestSet

# List all test sets
for test_set in TestSet().all():
    print(test_set)

# Load a specific test set
test_set = TestSet(id="agent-or-industry-fraud-harmful")
test_set.load()

# Download test set data
test_set.download()

```

For more detailed examples, check out our [example notebooks](examples/).

## About Rhesis AI

Rhesis AI helps organizations build Gen AI applications that deliver value, not surprises. Our platform enables you to:
- Access curated test sets
- Generate dynamic test sets
- Tailor validations to your specific needs
- Integrate testing seamlessly into your workflow
- Keep your Gen AI applications robust, reliable & compliant

Made in Potsdam, Germany 🇩🇪

Visit [rhesis.ai](https://rhesis.ai) to learn more about our platform and services.

## Support

For questions, issues, or feature requests:
- Visit our [documentation](https://docs.rhesis.ai)
- Contact us at support@rhesis.ai
- Create an issue in this repository

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rhesis-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "llm, testing, ai, machine-learning",
    "author": "Engineering Team",
    "author_email": "engineering@rhesis.ai",
    "download_url": "https://files.pythonhosted.org/packages/b4/80/9e663fb7194f8e7dfdc7dc59bf9f8804a612b66ea91da56c42c5c444613c/rhesis_sdk-0.1.0.tar.gz",
    "platform": null,
    "description": "# Rhesis SDK\n\n<p align=\"center\">\n  <img src=\"https://cdn.prod.website-files.com/66f422128b6d0f3351ce41e3/66fd07dc0b6994070ec5b54b_Logo%20Rhesis%20Orange-p-500.png\" alt=\"Rhesis Logo\" width=\"300\"/>\n</p>\n\n> Gen AI applications that deliver value, not surprises.\n\nThe Rhesis SDK enables developers to access curated test sets and generate dynamic ones for GenAI applications. It provides tools to tailor validations to your needs and integrate seamlessly to keep your Gen AI robust, reliable & compliant.\n\n## Installation\n\nInstall the Rhesis SDK using pip:\n\n```bash\npip install rhesis-sdk\n```\n\n## Getting Started\n\n### 1. Obtain an API Key\n\n1. Visit [https://app.rhesis.ai](https://app.rhesis.ai)\n2. Sign up for a Rhesis account\n3. Navigate to your account settings\n4. Generate a new API key\n\nYour API key will be in the format `rh-XXXXXXXXXXXXXXXXXXXX`. Keep this key secure and never share it publicly.\n\n### 2. Configure the SDK\n\nYou can configure the Rhesis SDK either through environment variables or direct configuration:\n\n#### Using Environment Variables\n\n```bash\nexport RHESIS_API_KEY=\"your-api-key\"\nexport RHESIS_BASE_URL=\"https://api.rhesis.ai\"  # optional\n```\n\n#### Direct Configuration\n\n```python\nimport rhesis \n\n# Set configuration directly\nrhesis.base_url = \"https://api.rhesis.ai\"  # optional\nrhesis.api_key = \"rh-XXXXXXXXXXXXXXXXXXXX\"\n```\n\n## Features\n\nThe Rhesis SDK currently provides functionality to work with Rhesis test sets through routine operations:\n\n- **List Test Sets**: Browse through available curated test sets\n- **Load Test Sets**: Load specific test sets for your use case\n- **Download Test Sets**: Download test set data for offline use\n\n## Quick Start\n\nYou can configure the Rhesis SDK either through environment variables or direct configuration:\n\n### Using Environment Variables\n\n```bash\nexport RHESIS_API_KEY=\"your-api-key\"\nexport RHESIS_BASE_URL=\"https://api.rhesis.ai\"  # optional\n```\n\n### Direct Configuration\n\n```python\nimport rhesis \n\n# Set configuration directly\nrhesis.base_url = \"https://api.rhesis.ai\"  # optional\nrhesis.api_key = \"rh-XXXXXXXXXXXXXXXXXXXX\"\n```\n\n### Working with Test Sets\n\n```python\nfrom rhesis.entities import TestSet\n\n# List all test sets\nfor test_set in TestSet().all():\n    print(test_set)\n\n# Load a specific test set\ntest_set = TestSet(id=\"agent-or-industry-fraud-harmful\")\ntest_set.load()\n\n# Download test set data\ntest_set.download()\n\n```\n\nFor more detailed examples, check out our [example notebooks](examples/).\n\n## About Rhesis AI\n\nRhesis AI helps organizations build Gen AI applications that deliver value, not surprises. Our platform enables you to:\n- Access curated test sets\n- Generate dynamic test sets\n- Tailor validations to your specific needs\n- Integrate testing seamlessly into your workflow\n- Keep your Gen AI applications robust, reliable & compliant\n\nMade in Potsdam, Germany \ud83c\udde9\ud83c\uddea\n\nVisit [rhesis.ai](https://rhesis.ai) to learn more about our platform and services.\n\n## Support\n\nFor questions, issues, or feature requests:\n- Visit our [documentation](https://docs.rhesis.ai)\n- Contact us at support@rhesis.ai\n- Create an issue in this repository\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "SDK for testing and validating LLM applications",
    "version": "0.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/rhesis-ai/rhesis-sdk/issues",
        "Documentation": "https://rhesis-sdk.readthedocs.io",
        "Homepage": "https://rhesis.ai",
        "Repository": "https://github.com/rhesis-ai/rhesis-sdk"
    },
    "split_keywords": [
        "llm",
        " testing",
        " ai",
        " machine-learning"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "512474d4ffe2656fccda59069ae72785502b1022a5612171b61acf92f2f7bc42",
                "md5": "6d1cd396afc25cd9a20689520bfc0dda",
                "sha256": "a889d676e0341e0decb6b77f2f4ebf801d8a06f1a6a5e044289c72556046be06"
            },
            "downloads": -1,
            "filename": "rhesis_sdk-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d1cd396afc25cd9a20689520bfc0dda",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 9811,
            "upload_time": "2025-01-26T21:31:02",
            "upload_time_iso_8601": "2025-01-26T21:31:02.625768Z",
            "url": "https://files.pythonhosted.org/packages/51/24/74d4ffe2656fccda59069ae72785502b1022a5612171b61acf92f2f7bc42/rhesis_sdk-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b4809e663fb7194f8e7dfdc7dc59bf9f8804a612b66ea91da56c42c5c444613c",
                "md5": "c75cf49ba4eb95fcc14dae66cb472a42",
                "sha256": "ca6f28473106d459c769ce73cde0b31160b9cc0e83fe3eb9c8b3870571ee9bc0"
            },
            "downloads": -1,
            "filename": "rhesis_sdk-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c75cf49ba4eb95fcc14dae66cb472a42",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 7426,
            "upload_time": "2025-01-26T21:31:04",
            "upload_time_iso_8601": "2025-01-26T21:31:04.726408Z",
            "url": "https://files.pythonhosted.org/packages/b4/80/9e663fb7194f8e7dfdc7dc59bf9f8804a612b66ea91da56c42c5c444613c/rhesis_sdk-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-26 21:31:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rhesis-ai",
    "github_project": "rhesis-sdk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "appnope",
            "specs": [
                [
                    "==",
                    "0.1.4"
                ]
            ]
        },
        {
            "name": "asttokens",
            "specs": [
                [
                    "==",
                    "3.0.0"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2024.12.14"
                ]
            ]
        },
        {
            "name": "cffi",
            "specs": [
                [
                    "==",
                    "1.17.1"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "3.4.1"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "comm",
            "specs": [
                [
                    "==",
                    "0.2.2"
                ]
            ]
        },
        {
            "name": "debugpy",
            "specs": [
                [
                    "==",
                    "1.8.12"
                ]
            ]
        },
        {
            "name": "decorator",
            "specs": [
                [
                    "==",
                    "5.1.1"
                ]
            ]
        },
        {
            "name": "exceptiongroup",
            "specs": [
                [
                    "==",
                    "1.2.2"
                ]
            ]
        },
        {
            "name": "executing",
            "specs": [
                [
                    "==",
                    "2.1.0"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.10"
                ]
            ]
        },
        {
            "name": "importlib-metadata",
            "specs": [
                [
                    "==",
                    "8.5.0"
                ]
            ]
        },
        {
            "name": "ipykernel",
            "specs": [
                [
                    "==",
                    "6.29.5"
                ]
            ]
        },
        {
            "name": "ipython",
            "specs": [
                [
                    "==",
                    "8.18.1"
                ]
            ]
        },
        {
            "name": "jedi",
            "specs": [
                [
                    "==",
                    "0.19.2"
                ]
            ]
        },
        {
            "name": "jupyter-client",
            "specs": [
                [
                    "==",
                    "8.6.3"
                ]
            ]
        },
        {
            "name": "jupyter-core",
            "specs": [
                [
                    "==",
                    "5.7.2"
                ]
            ]
        },
        {
            "name": "matplotlib-inline",
            "specs": [
                [
                    "==",
                    "0.1.7"
                ]
            ]
        },
        {
            "name": "nest-asyncio",
            "specs": [
                [
                    "==",
                    "1.6.0"
                ]
            ]
        },
        {
            "name": "packaging",
            "specs": [
                [
                    "==",
                    "24.2"
                ]
            ]
        },
        {
            "name": "parso",
            "specs": [
                [
                    "==",
                    "0.8.4"
                ]
            ]
        },
        {
            "name": "pexpect",
            "specs": [
                [
                    "==",
                    "4.9.0"
                ]
            ]
        },
        {
            "name": "platformdirs",
            "specs": [
                [
                    "==",
                    "4.3.6"
                ]
            ]
        },
        {
            "name": "prompt-toolkit",
            "specs": [
                [
                    "==",
                    "3.0.48"
                ]
            ]
        },
        {
            "name": "psutil",
            "specs": [
                [
                    "==",
                    "6.1.1"
                ]
            ]
        },
        {
            "name": "ptyprocess",
            "specs": [
                [
                    "==",
                    "0.7.0"
                ]
            ]
        },
        {
            "name": "pure-eval",
            "specs": [
                [
                    "==",
                    "0.2.3"
                ]
            ]
        },
        {
            "name": "pycparser",
            "specs": [
                [
                    "==",
                    "2.22"
                ]
            ]
        },
        {
            "name": "pygments",
            "specs": [
                [
                    "==",
                    "2.19.1"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.9.0.post0"
                ]
            ]
        },
        {
            "name": "python-dotenv",
            "specs": [
                [
                    "==",
                    "1.0.1"
                ]
            ]
        },
        {
            "name": "pywin32",
            "specs": [
                [
                    "==",
                    "308"
                ]
            ]
        },
        {
            "name": "pyzmq",
            "specs": [
                [
                    "==",
                    "26.2.0"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.32.3"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.17.0"
                ]
            ]
        },
        {
            "name": "stack-data",
            "specs": [
                [
                    "==",
                    "0.6.3"
                ]
            ]
        },
        {
            "name": "tornado",
            "specs": [
                [
                    "==",
                    "6.4.2"
                ]
            ]
        },
        {
            "name": "traitlets",
            "specs": [
                [
                    "==",
                    "5.14.3"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "==",
                    "4.12.2"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.3.0"
                ]
            ]
        },
        {
            "name": "wcwidth",
            "specs": [
                [
                    "==",
                    "0.2.13"
                ]
            ]
        },
        {
            "name": "zipp",
            "specs": [
                [
                    "==",
                    "3.21.0"
                ]
            ]
        }
    ],
    "lcname": "rhesis-sdk"
}
        
Elapsed time: 1.52588s