How do you build a golden evaluation set for a RAG system from real usage?
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Start from real queries in your logs, not invented ones, because production questions are messier than anything you would write. Sample across the distribution (common, rare, ambiguous, and out-of-scope), then for each label the answer-bearing source passages and a reference answer or acceptance criteria, including cases that should be refused. Keep it small and high quality first (dozens before hundreds), version it, and grow it as production surfaces new failure modes. A noisy or unrepresentative eval set is worse than none, so the labeling discipline matters more than the size.
Full worked answer
Start from real queries in your logs, not invented ones, because production questions are messier than anything you would write. Sample across the distribution (common, rare, ambiguous, and out-of-scope), then for each label the answer-bearing source passages and a reference answer or acceptance criteria, including cases that should be refused. Keep it small and high quality first (dozens before hundreds), version it, and grow it as production surfaces new failure modes. A noisy or unrepresentative eval set is worse than none, so the labeling discipline matters more than the size.
Learn more: AI Evals for Everyone (free course)
What a good answer covers
- Start from real queries in your logs, not invented ones, because production questions are messier than…
- Sample across the distribution (common, rare, ambiguous, and out-of-scope), then for each label the…
- Keep it small and high quality first (dozens before hundreds), version it, and grow it as production…
- A noisy or unrepresentative eval set is worse than none, so the labeling discipline matters more than…
Key terms: Learn more
In the glossary: Eval set
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep