This is a placeholder, not a real post. The text, code and numbers are made up to show how a post will look here. It will be removed when the first real post goes up.

For about a month the retrieval dashboard was the calmest thing I owned. Recall at ten sat near the top of its chart and nobody asked about it. Over the same month, the people using the assistant started telling me its answers were getting vaguer.

Both things were true. The eval suite measured what it was built to measure. The trouble was everything it was never asked.

A green dashboard

The pipeline is ordinary: a query is embedded, a retriever pulls candidate chunks, a reranker orders them, and the model answers from the top few. The offline suite replays a fixed set of questions through the first three stages and scores whether the known-good chunk comes back.

QueryRetrieverRerankerModelAnswercovered by the offline evalnot measuredQueryRetrieverRerankerModelAnswercovered by theoffline evalnot measured
The suite stopped at the reranker. Nothing scored the answer itself.

The frozen test set

The questions in the suite were written when the corpus was small. Since then the corpus had grown, and real questions had drifted towards topics the test set never touched. A score computed on old questions says little about new ones.

Question set Questions Recall@10 Answer judged correct
Frozen test set 240 0.94 not scored
Sampled live traffic 300 0.71 62%

These numbers are illustrative, not real measurements. The gap between the two rows was the whole story. I had been reading the first row and living in the second.

Three checks

None of these is clever. Each closes one gap the suite had left open.

  • Refresh the questions. Sample real queries every week and add them to the set, so the suite ages with the traffic.
  • Score the answer. Grade the final answer against the retrieved text, not only the retrieval.
  • Watch the empty case. Count how often retrieval returns nothing useful and the model answers anyway.

The third one is a few lines. It flags any answer whose best chunk scored below a threshold, using min_score as the cut-off:

checks/unsupported.py
def unsupported_answers(traces, min_score=0.35):
    # An answer is unsupported when nothing retrieved was a close match.
    flagged = []
    for trace in traces:
        best = max((c.score for c in trace.chunks), default=0.0)
        if best < min_score and trace.answer.strip():
            flagged.append((trace.id, round(best, 2)))
    return flagged

What changed

The dashboard is less calm now, which is the point. It moves when users would notice a difference, and it stays still when they would not. The suite still cannot tell me whether an answer was useful to the person who asked. For that I read a sample of conversations every week.

Leon SeetI build AI systems and write up what I learn along the way. About me