-
Front Matter
- A Letter Before You Begin
- What’s New in Version 2
- Seven Interactive Companion Labs
-
Part I — Foundations of Evaluation
- Chapter 1 — The Cost of Flying Blind
- Chapter 2 — Build Your First Evaluation Suite in One Afternoon
- Chapter 3 — The Evaluation Stack: Tools, Roles, and Evidence
- Chapter 4 — Engineering the Evaluation Pipeline
- Chapter 5 — The Eight Dimensions of Gen AI System Evaluation
- Chapter 6 — From Evaluation Scores to Business Outcomes
-
Part II — Building the Evaluation Assets
- Chapter 7 — Prompt Evaluation and Regression Contracts
- Chapter 8 — Building and Managing Evaluation Datasets
-
Part III — Operating Evaluation in Production
- Chapter 9 — Observability and Production Monitoring
- Chapter 10 — Regression Testing and Release Gates
- Chapter 11 — Human Review and Expert Adjudication
-
Part IV — Evaluating Complex Gen AI Systems
- Chapter 12 — Agentic and Multi-Step System Evaluation
- Chapter 13 — Advanced RAG and Retrieval Evaluation
- Chapter 14 — Evaluating Code Generation and Reasoning Applications
- Chapter 15 — Model Changes, Fine-Tuning, Public Benchmarks, and Selection
- Chapter 16 — Evaluation Economics and Cost Engineering
-
Part V — Risk, Trust, and Governance
- Chapter 17 — Bias, Fairness, Representation, and Accessibility
- Chapter 18 — Red Teaming and Adversarial Evaluation
- Chapter 19 — Governance, Compliance, and the 90-Day Roadmap
-
End Matter
- Appendix A — Glossary
- Appendix B — Evaluation Metrics Reference
- Appendix C — Current Evaluation Tools and Frameworks
- Appendix D — Companion Pack Guide
- About the Author
Evaluating Gen AI Applications: A Practitioner’s Playbook for Testing What AI Actually Gets Right
A Practioner's Guide for RAG, Agents, Multimodal AI, and Enterprise Knowledge Systems
Build defensible evaluation systems for Gen AI, RAG, agents and multimodal applications using datasets, metrics, release gates, monitoring and seven interactive labs.
Minimum price
$8.99
$10.99
You pay
Author earns
About
About the Book
A Gen AI system can produce an excellent answer and still fail in production. An agent can complete every individual step and still leave the business process in the wrong state. So what evidence is strong enough to release it—and what evidence should make you stop?
Evaluating Gen AI Systems and Agents — Third Editionis a practitioner’s guide to making evaluation a repeatable engineering discipline across Gen AI applications, RAG systems, coding and reasoning workflows, and AI agents.
The Third Edition develops that operating model through six connected themes.
1. Foundations of Evaluation — from uncertainty to an evidence system.
Start with the cost of flying blind, build a small evaluation suite, understand the evaluation stack and engineer a reproducible pipeline. Learn how to validate the evaluation harness itself, distinguish different dimensions of system quality and connect technical results to business outcomes rather than stopping at an aggregate score.
2. Building the Evaluation Assets — make what you know reusable.
Turn requirements, prompt behaviour and production failures into versioned evaluation contracts. Build governed datasets for development, capability discovery, regression protection, protected holdouts, production learning and simulation so that every model, prompt or application change does not force the organisation to rediscover the same failures.
3. Operating Evaluation in Production — evaluation does not stop at release.
Connect observability, run and trace evidence, thread and session evidence, production alerts, regression suites, release gates and human review. Learn how production failures become permanent tests, how mature capability evaluations graduate into regression protection and how teams preserve a reconstructable release decision when automation alone cannot settle the case.
4. Evaluating Complex Gen AI Systems — test the system, not only the final response.
Evaluate multi-step agents, synthetic-user simulations, RAG pipelines, code generation, reasoning workflows, model migrations and fine-tuning decisions. Separate step behaviour, run or trajectory quality, session outcome and external workflow state.
5. Risk, Trust and Governance — turn evaluation evidence into assurance.
Extend the evaluation system into fairness, representation and accessibility; adversarial testing and red teaming; governance, exceptions, decision rights and the 90-day operating roadmap. Security coverage uses OWASP guidance and MITRE ATLAS as coverage lenses, while governance evidence is mapped pragmatically to NIST AI RMF, the NIST Generative AI Profile, ISO/IEC 42001 and applicable regulatory obligations.
6. Implementing the Evaluation System — turn the architecture into something teams can build.
The final part converts the preceding nineteen chapters into an implementation-selection guide. Project managers learn what evidence to demand and how to challenge a proposed solution; developers get concrete implementation contracts and proof obligations.
Throughout the book, Meridian Insurance provides a continuous enterprise scenario. Failures move from development datasets into regression, production monitoring, human review, model migration, economics, adversarial testing and governance.
The Third Edition also includes eight optional browser-based companion labs covering the first evaluation suite, evaluation-stack architecture, dataset auditing, agent run and session evaluation, RAG diagnosis, code and reasoning verification, model-migration decisions and evaluation economics.
The central question is no longer simply:
“Did the model give the right answer?”
It is:
“What evidence would make us confident enough to let this system or agent act in real work"
Author
About the Author
Srinivas is a Generative AI Practitioner and Educator specializing in the architectural design and rigorous evaluation of LLM-powered applications. With deep experience in developing multi-agent frameworks and hybrid RAG architectures, he focus on bridging the gap between experimental AI and production-ready systems.
He is the creator of popular technical practice tests on Udemy, including the AWS Certified GenAI Developer - Professional series, and have developed comprehensive frameworks for AI project estimation and compliance. His work frequently involves industry-leading evaluation tools such as RAGAS, Giskard, and Guardrails.ai.
Driven by the mission to help IT professionals navigate the "mindset shift" required for the AI era, Srinivas provides systematic, data-driven methodologies for building AI that is not only innovative but reliable and compliant with emerging standards like the EU AI Act.
Contents
Table of Contents
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.