Recall@k: the share of all relevant chunks that appear in the top k results; the most important metric because the LLM cannot use what was not retrieved.
Precision@k: the share of the top k results that are relevant; low precision wastes context and can distract the model.
Hit rate@k: the share of queries with at least one relevant result in the top k.
MRR (mean reciprocal rank): the average of 1 divided by the rank of the first relevant result, rewarding relevant items near the top.
NDCG: handles graded relevance and discounts relevant results that appear lower in the list.
Also track latency, and, for ANN indexes, recall against exact search.
Loading…