Building eval datasets
For engineers
Golden sets, synthetic cases and edge cases that cover the real input space, kept fresh as the product changes
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Where should most golden-set inputs come from?
Check yourself · 2 of 5
What should you decide before asking a model to generate test inputs?
Check yourself · 3 of 5
Which source is best for finding realistic edge cases?
Check yourself · 4 of 5
For which task is a stored reference answer the best fit?
Check yourself · 5 of 5
A user reports a wrong answer in production. What is the best use of it for evals?
Topics
- Curating a golden reference set5 min read · Real inputs with expert-approved answers or criteria, covering features, user types and difficulty, with a note on where each came from
- Generating realistic synthetic test cases5 min read · Defining dimensions such as feature, persona and scenario first, then having a model write inputs, then filtering for realism and variety
- Hunting edge and adversarial cases5 min read · Empty, huge, multilingual, ambiguous and out-of-scope inputs plus injection attempts, mined from logs and red-team sessions
- Expected answers versus grading criteria5 min read · When to store a reference output and when to store must-include and must-not-include criteria for open-ended tasks
- Versioning and refreshing eval sets5 min read · Adding production failures, retiring stale or saturated cases, preventing leakage into prompts and versioning the set like code
Start here
- Develop test cases (Claude docs) (opens in a new tab)DocsFree
Anthropic's guidance on eval design: realistic task cases, edge cases, automated grading and volume over polish.
- promptfoo: Test case datasets (opens in a new tab)DocsFree
How to load test cases from CSV, JSON, spreadsheets and generated files into a runnable eval.
- Evaluation best practices (OpenAI) (opens in a new tab)DocsFree
Covers building datasets from production data, edge cases and continuous evaluation.
Scenarios
Helps to know first
110 questions · last verified 2026-12