Synthesizers
Generate test sets for evaluating LLM applications. Synthesizers use LLMs to create diverse, targeted test cases based on prompts, configurations, or source documents.
All synthesizers accept a model parameter to customize the LLM used for generation. See Models for available options and configuration.
Quick Start
With a specified model:
Available Synthesizers
PromptSynthesizer
The simplest option. Provide a prompt describing what to test. When no model is provided, the default Rhesis model is used.
Synthesizer
Full control over generation with behaviors, categories, and topics.
ConfigSynthesizer
Use a configuration object for reusable test generation settings.
ContextSynthesizer
Generate tests grounded in specific context provided at runtime.
Using Source Documents
Synthesizers can extract content from documents to generate contextually relevant tests.
Pushing Test Sets to Rhesis
Push generated test sets to the Rhesis platform for analysis, tracking, and collaboration.
Requirements: A Rhesis account and API key. Set your credentials via environment variables or configuration.
Call test_set.push() to upload. Your test set will appear in Testing → Test Sets.