How do you evaluate a RAG system?
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Evaluate retrieval and generation separately. For retrieval, measure whether the answer-bearing chunk is actually retrieved, using recall and precision at k (and hit rate). For generation, measure faithfulness (is the answer grounded in the retrieved context with no fabrication), answer relevance (does it address the question), and correctness, using a labeled question set and an LLM-as-judge with a clear rubric. Include unanswerable questions to check that the system refuses instead of hallucinating, and monitor the same signals in production, not just offline.
Full worked answer
Evaluate retrieval and generation separately. For retrieval, measure whether the answer-bearing chunk is actually retrieved, using recall and precision at k (and hit rate). For generation, measure faithfulness (is the answer grounded in the retrieved context with no fabrication), answer relevance (does it address the question), and correctness, using a labeled question set and an LLM-as-judge with a clear rubric. Include unanswerable questions to check that the system refuses instead of hallucinating, and monitor the same signals in production, not just offline.
Learn more: Ragas documentation
What a good answer covers
- Evaluate retrieval and generation separately
- For retrieval, measure whether the answer-bearing chunk is actually retrieved, using recall and…
- For generation, measure faithfulness (is the answer grounded in the retrieved context with no…
- Include unanswerable questions to check that the system refuses instead of hallucinating, and monitor…
Key terms: Learn more
In the glossary: Faithfulness · Judge (LLM-as-judge)
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep