Overview
Prompt-based test generation allows you to:- Generate diverse tests: Create varied test cases automatically
- Customize generation: Control test complexity and focus areas
- Scale testing: Generate large test suites efficiently
- Adapt to domains: Generate domain-specific tests
How It Works
- Define instructions: Specify what kind of tests to generate
- Provide examples: Give the LLM examples of good test cases
- Generate: LLM creates new test cases based on patterns
- Evaluate: Run generated tests against your model
Code Example
Basic Usage
Custom Dataset Builder
Create your own dataset builder for specialized test generation:Configuration Options
Generation Tips
Write Good Instructions
Provide Diverse Examples
Multi-Turn Conversation Tests
Generate multi-turn conversations:Related Topics
- From RAG - Generate from knowledge bases
- From Dataset - Use existing datasets
- Creating Custom Probes - Build custom probe classes