RAGAgenticML

Retrieval Augmented Generation, The Foundational Ideas

by Manning (Ben Auffarth)

IntermediateBookPaid~438 pages (estimated), 15 chapters plus a 7-notebook workshop; self-paced, several weekends with the code

The RAG papers from REALM to GraphRAG, each explained and paired with a notebook you can run

Start LearningAdded Dec 4, 2026 · Updated Dec 4, 2026

Overview

Retrieval Augmented Generation, The Foundational Ideas (subtitle: Principles for architecting reliable and verifiable AI) is a Manning book by Ben Auffarth, a PhD in computational neuroscience with 15+ years in enterprise AI who leads production RAG work at Chelsea AI. The author's site and the companion repository still use the working title The Seminal Papers. The MEAP began in March 2026, Manning lists all chapters as available, and publication is estimated for December 2026 at about 438 pages. The book is organized around a taxonomy of seven ways RAG systems fail in production and covers 30 papers. Chapters run in research order: why RAG research prevents disasters; semantics, scale and similarity (BM25 against dense retrieval, FAISS, Sentence-BERT); REALM; RAG for knowledge tasks; Fusion-in-Decoder; Atlas; HyDE; RAG-Fusion; Self-RAG; RAPTOR; correction, planning and reasoning (CRAG, LevelRAG); graph-based RAG (GraphRAG, HippoRAG, LightRAG compared side by side); context compression (LongLLMLingua, LLMLingua-2); evaluating RAG systems; and production RAG with metrics, agentic systems and continuous improvement. The text has more than 60 code listings and case studies from medicine, e-commerce, fintech and compliance. The companion GitHub repo has one Python notebook per chapter (Python 3.11, LangChain, LangGraph, LlamaIndex, sentence-transformers, ragas, Ollama) and a separate seven-notebook workshop that builds one assistant and benchmarks and costs it at each step. Several notebooks call OpenAI and need an API key.

At a Glance

Topic
RAG
Level
Intermediate
Format
Book
Cost
Paid
Duration
~438 pages (estimated), 15 chapters plus a 7-notebook workshop; self-paced, several weekends with the code
Provider
Manning (Ben Auffarth)
Hands-on
Yes — code/exercises
Certificate
None

What You’ll Learn

  • ✓Compare BM25 keyword search with dense retrieval and build a FAISS index with Sentence-BERT embeddings
  • ✓Trace how REALM, Fusion-in-Decoder and Atlas trained retrieval jointly with generation and what that approach turned into
  • ✓Implement HyDE and RAG-Fusion to improve recall when user queries do not match document wording
  • ✓Build prompted Self-RAG and corrective RAG (CRAG) pipelines that critique and repair their own retrieval
  • ✓Organize long documents into a RAPTOR tree and compare GraphRAG, HippoRAG and LightRAG on the same data
  • ✓Shrink prompts with LongLLMLingua and LLMLingua-2 context compression before the generation step
  • ✓Evaluate a RAG system with RAGAS, G-Eval and trained judges such as ARES
  • ✓Map a production symptom to one of seven RAG failure modes and pick the matching fix

Highlights

  • •Each chapter is built around a specific paper, so you learn why a technique exists before you copy its code
  • •A seven-point failure taxonomy maps symptoms seen in production to fixes, with guidance on when to stop adding complexity
  • •The companion repo has a notebook per chapter and a workshop that benchmarks and costs one assistant from baseline to production
  • •Chapter 12 runs GraphRAG, HippoRAG and LightRAG side by side instead of covering graph RAG in the abstract
  • •Written by a practitioner who runs production RAG, with case studies from medicine, e-commerce, fintech and compliance

Who It’s For

Best For

  • ✓ML engineers whose naive RAG pipeline has hit a quality ceiling and who need to know which advanced technique fits
  • ✓Developers who want the research behind HyDE, Self-RAG, RAPTOR and GraphRAG explained in plain terms with code
  • ✓Tech leads choosing a RAG architecture and an evaluation method for a regulated domain
  • ✓Readers who learn best by reading a paper and then running an implementation of it

Prerequisites

  • •Comfortable Python, including running Jupyter notebooks in a conda environment
  • •Basic deep learning concepts such as embeddings and transformers (the publisher says no advanced math is required)
  • •An OpenAI API key for the notebooks in chapters 7 to 10

FAQ

What is Retrieval Augmented Generation, The Foundational Ideas?

A Manning book by Ben Auffarth for ML engineers, data scientists and Python developers who build retrieval-augmented generation systems. It walks through 30 research papers, from dense retrieval and REALM to Self-RAG, RAPTOR, GraphRAG and context compression, so you can choose a RAG design for a specific failure and evaluate it with RAGAS, G-Eval or ARES.

Is Retrieval Augmented Generation, The Foundational Ideas free?

Retrieval Augmented Generation, The Foundational Ideas is a paid resource.

What level is Retrieval Augmented Generation, The Foundational Ideas for?

Retrieval Augmented Generation, The Foundational Ideas is aimed at a intermediate audience. Recommended background: Comfortable Python, including running Jupyter notebooks in a conda environment, Basic deep learning concepts such as embeddings and transformers (the publisher says no advanced math is required), An OpenAI API key for the notebooks in chapters 7 to 10.

How long does Retrieval Augmented Generation, The Foundational Ideas take?

Expect roughly ~438 pages (estimated), 15 chapters plus a 7-notebook workshop; self-paced, several weekends with the code. Most learners work through it at their own pace.

What will I learn from Retrieval Augmented Generation, The Foundational Ideas?

You'll learn: Compare BM25 keyword search with dense retrieval and build a FAISS index with Sentence-BERT embeddings; Trace how REALM, Fusion-in-Decoder and Atlas trained retrieval jointly with generation and what that approach turned into; Implement HyDE and RAG-Fusion to improve recall when user queries do not match document wording; Build prompted Self-RAG and corrective RAG (CRAG) pipelines that critique and repair their own retrieval; Organize long documents into a RAPTOR tree and compare GraphRAG, HippoRAG and LightRAG on the same data; Shrink prompts with LongLLMLingua and LLMLingua-2 context compression before the generation step; Evaluate a RAG system with RAGAS, G-Eval and trained judges such as ARES; Map a production symptom to one of seven RAG failure modes and pick the matching fix.

Topics

ragretrieval-augmented-generationgraphragself-ragrag-evaluationmanning

Sources

This page was written from 3 sources, 2 on domains other than manning.com.

  1. 1.manning.com — retrieval augmented generation the seminal papersvendor
  2. 2.github.com — rag seminal papers
  3. 3.benauffarth.com — rag