Search quality is notoriously difficult to measure because "relevance" is subjective. Without a rigorous evaluation harness, every change to a search algorithm is just a "vibe check." Industrial systems use a Gold Set of queries to produce deterministic metrics.
The percentage of queries for which the "ideal" document appears in the top K results.
MRR rewards the system for putting the correct answer as high as possible.
Where \text{rank}_i is the position of the first relevant document for query i.
A retrieval evaluation set (e.g., eval/retrieval-queries.csv) consists of triples: (query, ideal_page, category).
OllamaSetup. (Testing lexical accuracy).WikantikOnDocker. (Testing semantic/vector accuracy).JspwikiDeployment. (Testing reasoning and conceptual mapping).Search evaluation should be an automated part of the build pipeline, not a manual task.
External Deep Dive:
— Deep dive into MAP and NDCG.
— Formal properties of MRR.See Also:
search-eval tool.