The RAG-specific ruler: it turns "is our retrieval any good?" into numbers like faithfulness, answer relevance, and context precision.
What it is
Ragas is an evaluation library specialized for RAG. It computes metrics such as faithfulness (does the answer stay grounded in the retrieved context?), answer relevance, and context precision and recall, using an LLM as the judge. Where a general eval tool scores any output, Ragas knows the shape of a RAG pipeline: question, retrieved chunks, and answer are all first-class inputs, so it can separate a retrieval problem from a generation problem.
The one job
Point it at your questions, contexts, and answers, and it returns a scorecard. That number is what lets you say whether a retrieval change actually helped, instead of eyeballing a handful of outputs.
Reach for it when
Skip it when
The principle it teaches
Evals before optimization. You cannot improve retrieval you do not measure, and RAG fails in two different places, retrieval and generation, that need different fixes. Ragas is the RAG-specific ruler that tells them apart. That is Session 9's lesson applied to Lab 2.
Where it fits your labs
This is a Week 5 tool aimed squarely at Lab 2. Once your RAG pipeline works, Ragas is how you prove it works and defend it against regressions as you tune chunking, retrieval, and reranking.