Skip to content
AgenticAIWiki

A RAG scorecard

Full screen
Retrieval qualityTest casequestion + labelsRetrievertop 5 chunks

Swipe to change step

Step 1 of 7. Each test case holds a question, the chunk ids that answer it, and a reference answer. A RAG system can fail in two places, so we score each stage. Test case (question + labels). Retriever (top 5 chunks). arrow from Test case to Retriever. a question moving along e1.

In this chapter

  1. 26.1Retrieval metrics: recall and precision4 min read
  2. 26.2Answer metrics: faithfulness and relevance4 min read
  3. 26.3Building a RAG test set4 min read
  4. 26.4Ranking metrics: MRR and nDCG6 min read
  5. 26.5Context precision and context recall6 min read
  6. 26.6Synthetic test sets6 min read
  7. 26.7RAG eval frameworks: RAGAS, TruLens and rolling your own6 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…