Skip to main content
Retrieval metrics evaluate how well your embedding model, vector store, and reranker find relevant information for your LLM.

Quick Reference


1. ContextPrecision

“How many retrieved documents are actually relevant?”
Score Guide: 0.8+ = Excellent | 0.6-0.8 = Good | 0.4-0.6 = Fair | < 0.4 = Poor Options:
  • limit_contexts: Evaluate only top N contexts (default: all)
  • prompt: Custom relevance judgment prompt

2. ContextRecall

“Did I retrieve ALL the information needed?”
Score Guide: 0.8+ = Excellent | 0.6-0.8 = Good | 0.4-0.6 = Fair | < 0.4 = Poor ⚠️ Warning: Low recall causes hallucinations and incomplete answers.

3. MRR (Mean Reciprocal Rank)

“How quickly do I find the first relevant result?”
Score Guide: 0.8+ = Top result | 0.5-0.8 = Top 2-3 | 0.3-0.5 = Position 3-5 | < 0.3 = Buried deep

4. NDCG (Normalized Discounted Cumulative Gain)

“How close is my ranking to ideal?”
Score Guide: 0.8+ = Near ideal | 0.6-0.8 = Good | 0.4-0.6 = Fair | < 0.4 = Poor MRR vs NDCG:
  • Use MRR when users look at only the first result
  • Use NDCG when overall ranking quality matters

Evaluate All Together