Evaluating RAG and Agentic AI Systems - Failure Taxonomy & Contracts

EPUB · English
Price and availability
EPUB eBookUS store
$5.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Distributed via Draft2Digital
- Published
- 5 March 2026
- ISBN
- 9798233797484
- Subjects
About this book
Your test suite is green. Your CI pipeline passed. And your agentic AI system just leaked customer data in production.This is the crisis no one warned you about — unfolding right now across every industry deploying RAG and agentic AI systems without the tools to truly test them. A fintech agent leaks customer records through a manipulated tool description. An enterprise RAG pipeline silently cross-contaminates tenant data without raising a single exception. A model update quietly shifts agent behavior in ways no test ever caught. These aren't software bugs. They're a new category of failure — and conventional testing was never built to catch them.Evaluating RAG and Agentic AI Systems — Failure Taxonomy & Contracts is the definitive answer to that gap.Written by Shrikant Wagh — a veteran of over three decades in software quality, co-founder of a patented testing tools company, and IIT Madras alumnus — this framework gives engineering teams the language, architecture, and working code to test agentic AI with mission-critical rigor. Not through informal spot-checking. Through deterministic, CI-gateable, production-grade contracts.At the heart of the book is the Eleven Contract Taxonomy: behavioral invariants covering every critical failure surface — Knowledge, Retrieval, Generation, Agent and Tool, Skill, Protocol, Security, Operational, Multi-Agent, Multi-Modal, and Fine-Tuning. These contracts give you testable, automatable assertions for catching failure before it reaches your users.When your system is non-deterministic, contracts need muscle. The MITM Testing Pattern delivers it — using fake retrievers, fake LLMs, in-process MCP clients, and in-memory tracers to inject precise control at every agent boundary. Write deterministic tests for probabilistic systems, isolate every layer, and assert correctness — without expensive live model calls.On top of this sits a complete production evaluation stack: golden datasets, LLM-as-Judge pipelines, Recall@K, MRR, and NDCG@K metrics, regression quality gates, drift detection, and a full GitHub Actions CI pipeline — each chapter backed by real Python code and exercises.The final chapters address the organization: a five-level maturity model, sprint-by-sprint roadmap, and Investment Decision Framework for building a sustainable testing program at scale.This is not a book about theory. It was born from real failures — MCP rug pull exploits, retrieval authorization bypass, silent hallucination, citation fabrication, multi-agent cascade failure. Each has a named contract and a test that catches it.Not "e;did it pass the tests?"e; — but "e;do we have the right tests?"e;The systems are in production. The failures are real. Now there is a framework built to catch them.Build the contracts. Gate the pipeline. Ship with confidence. 
Bibliographic data © Gardners Books Ltd.