Retrieval Augmented Generation, The Foundational Ideas Retrieval Augmented Generation, The Foundational Ideas

Retrieval Augmented Generation, The Foundational Ideas

Principles for architecting reliable and verifiable AI

    • Pre-Order
    • Expected Oct 27, 2026
    • $43.99
    • Pre-Order
    • $43.99

Publisher Description

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

One of the biggest blockers for AI adoption, and the reason why many AI projects fail to generate promised efficiency gains, is that it's hard to know when AI is right and when it is wrong. Retrieval-augmented generation (RAG) grounds an LLM's answers in your content instead of whatever the model memorized in training, giving you accurate, domain-aware completions. This sophisticated context engineering approach improves the accuracy of responses while giving you tools, including sources, to check easily whether those responses are correct.

RAG emerged in 2020 as a trainable neural architecture that has since developed into a large family of indexing, retrieval, correction, compression, and evaluation techniques, each with its specific use cases, strengths, and weaknesses. Retrieval Augmented Generation: The Foundational Ideas guides you paper-by-paper through the research behind RAG’s family of techniques by exploring the foundational research papers. As you go, you’ll get a systematic view of RAG foundations, what each new innovation fixes, and how to develop your own implementations of these major RAG architectures.

Author Ben Auffarth organizes the book around a taxonomy of seven ways RAG systems fail in production, and then walks through the papers that answer each of those failure modes. You start with the building blocks, including Word2Vec, FAISS, and Sentence-BERT, along with the 2020 originals in REALM and the paper that gave RAG its name. You’ll then follow the line forward as you learn about HyDE and RAG-Fusion, for when retrieval misses the right document, and Self-RAG and CRAG when hallucinations slip past it.

You’ll see how RAPTOR, GraphRAG, and HippoRAG come into play when when the answer isn't in any single chunk or when questions span multiple hops, and LongLLMLingua and AttentionRAG when the prompt blows its budget. Keeping the focus on accurate, reliable responses, you’ll also explore how RAGAS helps you verify whether any of it worked! The closing chapters put the whole progression under measurement and ask which additions earn their cost in production.

In this practical book, you’ll find more than 60 code listings, along with architectural diagrams. Case studies from medicine, e-commerce, fintech, and compliance turn each paper into something you can run. By the end, you’ll know how to build, test, and improve a RAG system, and you'll have a confident intuition for the fundamentals that make a difference in production.

What's inside

• 30 papers explained, many with working implementations
• RAG's evolution from naive to advanced to modular to agentic
• A seven-point failure taxonomy that maps symptoms to fixes
• Evaluation with RAGAS, G-Eval, and trained judges like ARES
• Decision frameworks for picking an approach, and for knowing when to stop adding complexity

About the reader

For ML engineers, data scientists, and software developers comfortable with Python and the basics of deep learning. No advanced math is required.

About the author

Ben Auffarth, Ph.D., is an enterprise AI leader with 15+ years of experience architecting mission-critical AI systems across insurance, finance, and technology. He holds a PhD in computational neuroscience with 300+ research citations, and has built systems processing 100,000+ daily decisions and managing £60M+ in fraud detection. An Amazon bestselling author, Ben currently leads production RAG implementations at his company Chelsea AI, giving him direct insight into the challenges of scaling RAG from research to robust, enterprise deployments.

GENRE
Computers & Internet
AVAILABLE
2026
October 27
LANGUAGE
EN
English
LENGTH
325
Pages
PUBLISHER
Manning
SELLER
Simon & Schuster Digital Sales LLC
Generative AI with LangChain Generative AI with LangChain
2025
Machine Learning for Time-Series with Python Machine Learning for Time-Series with Python
2021
Artificial Intelligence with Python Cookbook Artificial Intelligence with Python Cookbook
2020
Generative AI with LangChain Generative AI with LangChain
2023
Generatywna sztuczna inteligencja z LangChain. Budowanie aplikacji AI opartych na LLM z użyciem Pythona, ChatGPT i innych modeli językowych Generatywna sztuczna inteligencja z LangChain. Budowanie aplikacji AI opartych na LLM z użyciem Pythona, ChatGPT i innych modeli językowych
2024