ld.← ALL FIELD NOTESTHE RELATED CASE STUDY ↗
FIELD NOTES / 05EVALUATION   ·   RETRIEVAL & RAG

Did retrieval actually get better?

A few promising results can tell you where to look. They cannot tell you whether a retrieval pipeline is reliably improving.

From impressions to evidence

After changing part of a RAG pipeline, it is tempting to inspect a few answers and decide the new configuration looks better. That is useful for exploration, but it is not enough for a production system.

We used BEIR datasets—including SciDocs, NFCorpus, SciFact, and DBPedia—to compare retrieval approaches across a broader set of queries.

What the metrics tell us

Recall@k helps measure how much relevant material appears among the retrieved results. NDCG@10 considers the quality and position of results near the top. MRR focuses on how early the first relevant result appears.

Together, these metrics give us different views of retrieval quality. They make it possible to compare configurations and understand the effect of a change instead of guessing.

THREE VIEWS OF RETRIEVAL QUALITY
Recall@kRelevant results retrieved
NDCG@10Quality of the top ranking
MRRPosition of the first relevant result

Keep the feedback loop open

For me, RAG is not only about the answer an LLM produces. It is also about retrieval quality, measurement, and making decisions based on the results.

Continue the conversation

KEEP READING / 04Finding candidates is only the first step.

Another note from the notebook.