Measuring Retrieval

Know Whether the Right Passage Was Found

When an assistant gives a wrong answer, the first question is whether it was given the right information. A few simple measures answer that.

Ranjit Nethi

·

Measuring Retrieval

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?

  1. Golden questions
  2. Run retrieval
  3. Compare with the known correct passages
  4. Score
  5. 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

  1. Ask two subject experts for 25 real questions each, with the source passage for each one.
  2. Measure hit rate in the top five.
  3. Review the misses one by one. The pattern points to the fix.

The terms, in plain language

TermWhat it means
RecallThe share of the correct passages that were found
PrecisionThe share of returned passages that were relevant
Hit rate at kHow often a correct passage is in the top k results
MRRA score for how high the first correct passage ranks
GroundednessWhether the answer is supported by the retrieved text

Section 4.8 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.