Book Profile
Building Reliable AI Systems
Manning (MEAP) · 2025
This book provides a comprehensive engineering framework for building, deploying, and maintaining reliable, trustworthy, and production-ready AI systems powered by Large Language Models.
Get the book →While Large Language Models (LLMs) have unlocked incredible new capabilities, an MIT study found that 95% of generative AI pilots fail to deliver ROI, hitting walls of hallucination, unreliability, and brittleness. This book closes the gap between magical lab demos and production-ready systems by introducing a three-layer reliability framework: Reliable Outputs, Reliable Agents, and Reliable Operations. It guides developers, engineers, and data scientists through the entire process, from mitigating hallucinations with advanced prompt engineering and Retrieval-Augmented Generation (RAG), to building agents that take safe, real-world actions, to implementing the operational discipline of evaluation, monitoring, and responsible AI. Through practical, hands-on projects, you'll learn to engineer AI systems you can ship with confidence, ensuring they are accurate, safe, fair, and maintain quality over time.
What it argues
This is a causal path model derived from the book's core three-layer framework, which posits that specific AI engineering techniques (Design Levers) improve the internal states of an AI system (e.g., its groundedness and safety), which in turn leads to higher-level outcomes like overall system reliability and user trust.
Key ideas it contributes
- Output-Focused Techniques — The collection of engineering practices applied to an LLM system to ensure its generated outputs are accurate, factually grounded, and stylistically appropriate for a given domain. These techniques directly shape the model's behavior at the output layer.
- Agentic Architecture Techniques — The set of design patterns that enable an AI system to go beyond text generation to reason, plan, and execute multi-step actions using external tools and services. This transforms a passive LLM into an active agent.
- Operational and Ethical Practices — The disciplined processes and governance structures required to evaluate, deploy, monitor, and maintain an AI system's quality, safety, fairness, and privacy in a production environment over time.
- Output Groundedness and Accuracy — The extent to which an AI's generated content is factually correct, logically coherent, faithful to provided source material, and free of fabricated information (hallucinations). It is a measure of the semantic correctness of the system's outputs.
- Action Safety and Consistency — The property of an AI agent to execute tasks and interact with external systems within predefined safety boundaries, predictably, and without causing unintended or harmful consequences. It reflects the agent's ability to act responsibly in the real world.
- System Reliability — A holistic property of an AI system characterized by its ability to consistently produce accurate outputs, take safe actions, treat all users fairly, and maintain these qualities over time when operating under real-world conditions.
- User Trust — A user's belief in the reliability, integrity, and competence of an AI system. It encompasses the user's confidence that the system will provide accurate information, act in their best interest, and handle their data responsibly.