Create the question-and-answer set that tells you whether a RAG system works, before tuning anything.
When to use this
Before tuning chunking, embeddings, prompts or a model. Without this, every change is a guess and every improvement is anecdote.
Steps
- Collect real questions. Support tickets, search logs, the questions users ask colleagues. Fifty real questions beat five hundred invented ones, because invented questions share the vocabulary of the documents and real ones do not.
- For each question, record: the expected answer, the document and passage it comes from, and whether the corpus can answer it at all.
- Include the awkward ones deliberately: questions whose answer is in two documents; questions whose answer changed over time; questions the corpus cannot answer; questions with near-duplicate wording but different meaning. A set of easy questions tells you nothing.
- Label the unanswerable ones as unanswerable. The right behaviour is to decline, and you cannot measure declining without cases where it is correct.
- Split retrieval from generation. Score retrieval on whether the right passage came back (recall at k, and the rank it came back at); score generation on whether the answer is right and supported by what was retrieved. Conflating them hides which half is broken.
- Freeze it, version it, and keep it out of anything that tunes on it.
Report
The set in a plain format (CSV or JSONL), its size, how questions were sourced, the proportion that are unanswerable, and the baseline scores for the current system.
Do not
- Do not generate questions from the documents with the same model you are evaluating.
- Do not quietly remove questions the system fails.
- Do not report a single aggregate number without the breakdown.