How do you build a golden evaluation set for RAG without months of labelling?
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
A useful golden set is (query → relevant chunk IDs → optionally a reference answer), even just 100-300 rows. Bootstrap in layers:
Mine reality first. Production logs (or beta traffic, or the support team's actual ticket queries) give you the true query distribution - vocabulary, ambiguity, length, topic mix. Sample ~100 queries stratified by intent/topic; for each, label relevant chunks by running generous retrieval (top-50 hybrid) and having a human mark hits - verifying candidates is 10× faster than authoring labels from scratch. If pre-launch, harvest queries from support tickets, docs search logs, Slack questions.
Full worked answer
A useful golden set is (query → relevant chunk IDs → optionally a reference answer), even just 100-300 rows. Bootstrap in layers:
Mine reality first. Production logs (or beta traffic, or the support team's actual ticket queries) give you the true query distribution - vocabulary, ambiguity, length, topic mix. Sample ~100 queries stratified by intent/topic; for each, label relevant chunks by running generous retrieval (top-50 hybrid) and having a human mark hits - verifying candidates is 10× faster than authoring labels from scratch. If pre-launch, harvest queries from support tickets, docs search logs, Slack questions.
Synthesise to fill gaps. For each sampled chunk, have an LLM generate realistic questions it answers - instantly giving (query, gold chunk) pairs. Two corrections make or break synthetic sets: style-match the generator to real user phrasing (raw synthetic questions are too well-formed and echo the chunk's vocabulary, inflating retrieval scores - paraphrase them away from the source text), and filter with a judge model for answerability and naturalness. Use synthetic data to cover the long tail; never let it replace the mined-reality core, because you'd be evaluating on a distribution nobody queries.
Engineer hard cases deliberately: unanswerable questions (tests refusal), multi-hop questions needing 2+ chunks, ambiguous queries, exact-match queries (IDs, error codes - tests the lexical path), and near-duplicate distractor traps. These are where systems differ; easy questions saturate quickly.
Handle the incomplete-labels problem. Your relevance labels will miss valid chunks (annotators only saw retrieved candidates), so recall is measured against known-relevant, and a pipeline change surfacing a genuinely relevant unlabelled chunk scores as a miss. Mitigate by periodically re-adjudicating: when a new pipeline retrieves unlabelled chunks at high rank, send them to labelling and grow the set.
Operate it like code: version the set, tie it to a corpus snapshot (chunk IDs go stale when re-chunking - store text spans, not just IDs), refresh quarterly from new logs, and quarantine a held-out slice you never tune against.
What a good answer covers
- A useful golden set is (query → relevant chunk IDs → optionally a reference answer), even just 100-300 rows
- If pre-launch, harvest queries from support tickets, docs search logs, Slack questions
- For each sampled chunk, have an LLM generate realistic questions it answers - instantly giving (query,…
- Use synthetic data to cover the long tail; never let it replace the mined-reality core, because you'd be…
- Engineer hard cases deliberately
Key terms: Mine reality first · Synthesise to fill gaps · Engineer hard cases deliberately · Handle the incomplete-labels problem · Operate it like code
In the glossary: Golden set · Judge (LLM-as-judge)
Interviewer follow-ups to expect
Why do synthetic queries overestimate retrieval quality, and how exactly do you counter it?
Your chunking change invalidated all chunk-ID labels - how should the golden set have been designed?
How big does the set need to be to detect a 5-point recall difference?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep