The eval set is the most valuable artifact you will build
Every retrieval improvement is a guess until you measure it. Build a labeled eval set of 50–200 query-document pairs reflecting your real users. For each query, list the document ids that are 'definitely relevant'. That tiny set powers all future tuning.
The four metrics worth knowing
- Hit rate @ k — fraction of queries where any relevant doc is in top-k. Easy to read.
- MRR (Mean Reciprocal Rank) — 1 / position of the first relevant. Captures 'how high did the right answer land'.
- nDCG @ k — accounts for graded relevance and position. Industry standard.
- Recall @ k — fraction of relevant docs you actually retrieve. Critical for RAG when the LLM needs all of them.
Run eval on every change
Treat retrieval like code: every tweak (chunk size, model, RRF k, reranker) gets a numbered eval run. Plot the metrics over time. The day a 'small change' tanks recall, the chart catches it before users do.