The short version
- Measure retrieval separately from the final answer. Most wrong answers begin with wrong retrieval.
- Two measures cover most needs: did the right passage appear in the results, and how high was it ranked.
- Build a golden set of real questions with the correct source passages, and run it after every change.
The idea
A retrieval system returns a ranked list of passages. Four measures describe how good the list is.
Recall. Of the passages that should have been found, how many were. Low recall means the answer was never available to the model.
Precision. Of the passages returned, how many were relevant. Low precision means the model is reading noise.
Hit rate at k. How often at least one correct passage appears in the top k results, for example the top five.
Mean reciprocal rank (MRR). How high the first correct passage is ranked, averaged over all questions. First place scores 1, second place scores one half, and so on.
When you send someone to the archive for a file, you care about two things. Did they bring back the right file? And was it on top of the stack, or buried under ten others?
- Golden questions
- Run retrieval
- Compare with the known correct passages
- Score
- Fix the weakest step
To use these measures you need a golden set: real questions, each linked to the passage or passages that contain the answer. Subject experts build it. Fifty questions is a workable start, and it should grow from real failures.
After retrieval, measure the answer as well. Is it supported by the retrieved passages, which is called groundedness, and does it address the question?
An example
A team finds that their assistant answers 70 percent of test questions correctly. Measuring retrieval shows that the right passage is in the top five only 74 percent of the time. The model is doing well with what it gets, and retrieval is the limit. They add hybrid search and reranking. Hit rate rises to 92 percent, and answer accuracy follows. Without the split measure, they would have spent weeks changing prompts. The figures are illustrative.
Common mistakes
- Measuring only the final answer, so the cause of failure stays hidden.
- A golden set written by engineers, with questions no real user would ask.
- Never updating the golden set as content and questions change.
- Reporting an average and ignoring the important questions that fail.
What to do this week
- Ask two subject experts for 25 real questions each, with the source passage for each one.
- Measure hit rate in the top five.
- Review the misses one by one. The pattern points to the fix.
The terms, in plain language
| Term | What it means |
|---|---|
| Recall | The share of the correct passages that were found |
| Precision | The share of returned passages that were relevant |
| Hit rate at k | How often a correct passage is in the top k results |
| MRR | A score for how high the first correct passage ranks |
| Groundedness | Whether the answer is supported by the retrieved text |
Further reading
Section 4.8 of the AI Engineering Guide · Last reviewed November 2026




