https://github.com/rhesis-ai/rhesis-sdk
Open-source test generation SDK for LLM applications. Access curated test sets. Build context-specific test sets and collaborate with subject matter experts.
https://github.com/rhesis-ai/rhesis-sdk
application-insights compliance llm-evaluation llm-testing open-source quality-assessment reliability responsible-ai robustness trustworthiness validation
Last synced: about 1 month ago
JSON representation
Open-source test generation SDK for LLM applications. Access curated test sets. Build context-specific test sets and collaborate with subject matter experts.
- Host: GitHub
- URL: https://github.com/rhesis-ai/rhesis-sdk
- Owner: rhesis-ai
- License: mit
- Created: 2025-01-26T17:43:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-17T14:28:40.000Z (10 months ago)
- Last Synced: 2025-05-17T15:31:12.528Z (10 months ago)
- Topics: application-insights, compliance, llm-evaluation, llm-testing, open-source, quality-assessment, reliability, responsible-ai, robustness, trustworthiness, validation
- Language: Python
- Homepage: https://www.rhesis.ai/
- Size: 420 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# โ ๏ธ DEPRECATED
This repository is no longer maintained.
Please use the new repository: [github.com/rhesis-ai/rhesis](https://github.com/rhesis-ai/rhesis)
# Rhesis SDK ๐ง
> 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.

## ๐ Table of Contents
- [Features](#-features)
- [Installation](#-installation)
- [Getting Started](#-getting-started)
- [Obtain an API Key](#1-obtain-an-api-key-)
- [Configure the SDK](#2-configure-the-sdk-%EF%B8%8F)
- [Quick Start](#-quick-start)
- [Working with Test Sets](#working-with-test-sets-)
- [Generating Custom Test Sets](#generating-custom-test-sets-%EF%B8%8F)
- [About Rhesis AI](#-about-rhesis-ai)
- [Community](#-community-)
- [Hugging Face](#-hugging-face)
- [Support](#-support)
- [License](#-license)
## โจ 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
- **Generate Test Sets**: Generate new test sets from basic prompts
## ๐ 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.
> **Note:** On the Rhesis App, you can also create test sets for your own use cases and access them via the SDK. You only need to connect your GitHub account to create a test set.
### 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"
```
## โก Quick Start
Before you start, you can configure the Rhesis SDK either through environment variables or direct configuration, as described above.
### 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()
# Generate a new test set
prompt_synthesizer = PromptSynthesizer(prompt="Generate tests for an insurance chatbot that can answer questions about the company's policies.")
test_set = prompt_synthesizer.generate(num_tests=5)
```
For more detailed examples, check out our [example notebooks](examples/).
### Generating Custom Test Sets ๐ ๏ธ
If none of the existing test sets fit your needs, you can generate your own.
You can check out [app.rhesis.ai](http://app.rhesis.ai). There you can define requirements, scenarios and personas, and even import your existing GitHub repository.
## ๐งช 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 custom test sets
- Upload your custom test sets to the cloud
- 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.
## ๐ฅ Community ๐ฌ
Join our [Discord server](https://discord.rhesis.ai) to connect with other users and developers.
## ๐ค Hugging Face
You can also find us on [Hugging Face](https://huggingface.co/rhesis). There, you can find our test sets across multiple use cases.
## ๐ Support
For questions, issues, or feature requests:
- Visit our [documentation](https://docs.rhesis.ai)
- Contact us at hello@rhesis.ai
- Create an issue in this repository
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.