Generators Overview
Fair Forge generators create synthetic test datasets from your documentation, enabling automated testing of AI assistants without manual dataset creation.Why Use Generators?
Save Time
Automatically create test cases from existing documentation
Better Coverage
Generate diverse questions across all your content
Consistent Quality
Structured question generation with difficulty levels
Easy Updates
Regenerate tests when documentation changes
Installation
Quick Start
Key Components
BaseGenerator
The main class for generating test datasets:Context Loaders
Load and chunk your documentation:Selection Strategies
Control how chunks are selected:Generation Modes
Independent Queries
Generate standalone questions:Conversation Mode
Generate coherent multi-turn conversations:Output Format
Generated datasets follow the standard Fair Forge schema:Workflow
Supported LLM Providers
| Provider | Import | Notes |
|---|---|---|
| Groq | langchain_groq.ChatGroq | Fast, free tier available |
| OpenAI | langchain_openai.ChatOpenAI | GPT-4, GPT-3.5 |
langchain_google_genai.ChatGoogleGenerativeAI | Gemini models | |
| Anthropic | langchain_anthropic.ChatAnthropic | Claude models |
| Ollama | langchain_ollama.ChatOllama | Local models |