Faithful, Relevant, Correct
An Independent Guide to Evaluating RAG Pipelines and AI Agents with an Open-Source Evaluation Framework
-
- $0.99
-
- $0.99
Publisher Description
An independent, practical guide to measuring the quality of retrieval-augmented generation (RAG) pipelines and AI agents with a widely used open-source Python evaluation framework. Instead of a tour of impressive numbers, the book explains every metric from its inputs to its arithmetic and shows, with code that was actually run, what each score means and when it misleads. One fictional regional rail operator runs throughout, with a help assistant that answers from policy documents and a rebooking agent that changes tickets through tools. You will build samples and reference answers, validate language model judges against human experts with agreement statistics, and measure retrieval with context precision and recall, grounding with faithfulness and noise sensitivity, and answers with relevancy, factual correctness and deterministic checks. Later chapters cover custom metrics and rubrics, tool-call and goal metrics with safety rules for agents, synthetic test generation and review, experiments compared sample by sample, real hosted and self-hosted judges, cost and reliability, statistically sound release gates in continuous integration and production monitoring with privacy safeguards. Includes a hands-on lab, a cheat sheet, review questions with answers and a glossary.