Evaluating Search
Label a golden set, compute precision, recall, MRR, and nDCG, and see why the leaderboard changes with the metric.
The stumper
Which engine is best? The answer depends on the metric and the query mix.
Search quality is easy to argue about and hard to measure. A demo with five queries proves nothing about a production system.
Evaluation starts with judgments: for a set of queries, which documents are relevant? From there, metrics turn rankings into numbers. Precision, recall, MRR, and nDCG answer different questions.
Offline metrics guide development, but online experiments reveal what users actually do. Clicks are biased, and an LLM judge can be useful, but neither replaces careful human evaluation.
Try it before you read on
Open the Lab tab. Change a parameter, break something, and form a hypothesis before reading the explanation.
Checkpoint
3 questions. Explanations appear after submission.
1. Which metric rewards putting the first relevant result at rank one?
2. What does nDCG add beyond binary relevance?
3. Why can offline metrics alone be misleading?