Cover of Evaluating AI Systems: Testing LLMs, RAG, and Agents by Alex Merced

Evaluating AI Systems: Testing LLMs, RAG, and Agents

Published by Self-published · Tech

A guide to properly testing and evaluating AI systems, including benchmarking strategies for LLMs, RAG pipelines, and agents.

About the author: Alex Merced is Head of Developer Relations at Dremio and the author of 77 books on data, AI, economics, fiction, and tabletop RPGs. His story is on WhoIsAlexMerced.com.

Who this book is for

AI and ML engineers, QA engineers, platform engineers, technical leaders, and data engineers who need systematic evaluation for AI systems. No prior evaluation experience is assumed, though basic Python, SQL, and CI/CD familiarity helps.

Table of contents

  1. Why Evaluation Is Different for AI
  2. Evaluation Fundamentals
  3. Prompt Testing
  4. Dataset Generation
  5. RAG Evaluation
  6. Hallucination Detection
  7. Agent Evaluation
  8. LLM-as-Judge Patterns
  9. Human Evaluation
  10. Evaluation Infrastructure
  11. Regression Testing and Monitoring
  12. Building an Evaluation Culture

Excerpt

AI systems do not work this way. Ask an LLM to summarize a quarterly earnings report and you may get a different summary each time. Both summaries might be accurate. One might emphasize revenue growth while the other leads with margin expansion. Both are correct, but they are not identical. Traditional assertion-based testing cannot handle this. This chapter establishes why AI systems require a fundamentally different approach to quality assurance, what that approach looks like at a high level, and what happens when teams skip it.

Related books

Work with Alex