AlgoViz

Evaluating retrieval and answer quality

medium 6 min

Evaluate retrieval and generation separately using the same questions.

Trace the example

Follow the evidence through each stage, then test a change in the case.

A faithful answer to the wrong question

A faithful answer to the wrong question. Selected component: Labeled question inside Evaluation set.
Open full-size diagram

Evaluation set

Two relevant passages

Identify gold evidence and the desired answer. Include source version and the exact question so stage-level scores are interpretable.

A model quotes a relevant price policy accurately but never answers the customer’s date question. Which dimension is weak?

Compare evidence coverage and precision

Recall 50% · precision 33.3%

The gold set contains two distinct passages. Exactly three are returned. Changing the number of relevant hits changes both ratios.