Where to Measure a RAG System — Diagram
The three points a retrieval system must be measured at, drawn against the pipeline — why an end-to-end score hides the ceiling, and which metric belongs at each point.
SVG. No sign-up, no email.
Most teams measure a retrieval system in one place: the answer. That single number cannot distinguish a retrieval failure from a generation failure, and the two need entirely different fixes.
The diagram puts a measurement point at each stage. The important one is the first, because it sets a ceiling everything downstream is trapped beneath.
Why the first point is the ceiling#
If the correct passage is not retrieved, no model can produce a grounded answer from it. A retrieval hit rate of 60% means the system's honest ceiling is 60%, and every hour spent on prompt wording is spent under that ceiling.
This is the single most common misallocation of effort in retrieval projects: weeks on generation, against a retrieval problem.
Measure it first and separately. Take questions with known answers, run retrieval alone, and record whether the passage containing the answer came back at all.
What each point tells you#
| Point | Metric | A bad number means |
|---|---|---|
| Retrieval | hit rate / recall@k | chunking, embedding, or hybrid search missing |
| Generation | groundedness | the model is adding claims the passages do not support |
| Generation | refusal accuracy | it answers when it should decline |
| End to end | correct answer rate | the combination — diagnose using the two above |
| End to end | over-refusal | it declines when the answer was present |
The pair that must be read together#
Refusal accuracy and over-refusal move against each other. A system tuned to refuse readily scores well on the first and badly on the second, and looks admirably cautious while being useless.
Report both, always. One without the other is a metric you can trivially satisfy in the wrong direction.
The third lane has no arrows#
Deliberately — those four are not a sequence. They are independent properties of the finished system, measured over the same run, and none is derived from the others.
Practical minimum#
Twenty real questions with known answers. Retrieval hit rate recorded before any tuning. Then groundedness and refusal on the same set, over at least three runs, reported as a pass rate with the run count.
Everything else is refinement on top of those numbers.
See RAG testing for the full method, the RAG guide for the system being tested, and the RAG checklist before shipping one.