Skip to content
AP.

Part 2 of 3

Retrieval quality — relevance, grounding, freshness

Making retrieval a measurable, first-class concern: the three dimensions it fails on, how to measure each, and the mechanisms that move the numbers.

September 11, 202612 min read · 8 topics

Retrieval is the component that decides what the model gets to know. It is also the component most teams ship without a single number attached to it. They can tell you the model version, the prompt template, the temperature, and the latency. Ask what fraction of the time the retriever surfaces the document that actually holds the answer, and the room goes quiet.

My position is that retrieval is a product surface with service-level objectives, and that it fails along three distinct dimensions that need to be measured and engineered separately. Relevance: did we find the right material? Grounding: did the answer actually come from what we found? Freshness: is what we found still true? A system can be excellent on one and broken on another, and a single "accuracy" number hides which.

This piece is about how I would measure each dimension, the mechanisms that move each one, and why the evaluation set has to exist before anything gets tuned.

In this part

  1. 01
    The evaluation set

    Build the evaluation set first

    1 min read

  2. 02
    Relevance

    Relevance: did we find the right material?

    3 min read

  3. 03
    Grounding

    Grounding: did the answer come from what we found?

    2 min read

  4. 04
    Freshness

    Freshness: is what we found still true?

    2 min read

  5. 05
    Progressive retrieval

    Progressive retrieval: accuracy and cost are not a trade-off

    1 min read

  6. 06
    Instrumentation

    Instrument everything

    1 min read

  7. 07
  8. 08