Test Set Generation¶
Elluminate provides functionality to generate synthetic test data based on existing template variables. This allows you to automatically expand your test sets with semantically similar examples.
Usage in the SDK¶
The following example demonstrates how to generate synthetic test data:
1. Create a prompt template that defines the structure of your prompts. The template variables will be used to generate the test data.
2. Create a collection to store your template variables and add the base examples.
3. Define your base template variables that will serve as examples for test data generation.
4. Generate test data using `generate_entry`. The generated data will maintain the same structure as your base data while providing semantic variations.
Usage in the Frontend¶
Open the Template Variable Collection and click on the small Magic Generate Button (with a star) at the bottom. You may click multiple times to generate more examples.
Best Practices¶
- Quality Base Data: Start with high-quality, representative example data for better synthetic generations.
- Validation: Always review generated synthetic data before using them in production.
- Diversity: Include diverse base examples to get more varied synthetic data.
- Iterative Refinement: Use generated examples to identify potential edge cases and improve your prompt templates.