- Learn
- Part 4. RAG architectures
- Chapter 26
Evaluating RAG
7 lessons · 36 min
Builds on 18. Graders: code, model and human
A RAG scorecard
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
- 26.1Retrieval metrics: recall and precision4 min read
- 26.2Answer metrics: faithfulness and relevance4 min read
- 26.3Building a RAG test set4 min read
- 26.4Ranking metrics: MRR and nDCG6 min read
- 26.5Context precision and context recall6 min read
- 26.6Synthetic test sets6 min read
- 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…