Skip to main content

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

Next Steps

BaseGenerator

Learn about the generator class

Context Loaders

Learn about loading documentation

Strategies

Learn about chunk selection

AWS Lambda Example

Deploy as serverless function