Installation & Setup
The Rhesis Python SDK generates test sets, runs evaluations, and traces LLM applications from code.
Using the web app instead? The same workflows are available in the browser. Start with Getting Started and the tour.
Installation
Getting Started
The SDK can be used standalone or integrated with our platform. To communicate with our platform and to use LLMs provided by us you need to obtain an API key.
Obtain an API key
- Visit Rhesis App
- Sign up for a Rhesis account
- Navigate to your account settings
- Generate a new API key
Your API key will be in the format rh-XXXXXXXXXXXXXXXXXXXX.
Keep this key secure and never share it publicly.
Configure the SDK
You can configure the SDK either through environment variables or direct configuration:
Environment Variables:
Direct Configuration:
Basic Usage
Once configured, you can start using the SDK to create and manage tests:
Next steps
- Generate a test set with a synthesizer
- Run tests against an endpoint with test execution
- Score results with metrics
Full class and method documentation is in the API reference .