
Retrieval-Augmented Generation
Methods, Architectures, and Practical Workflows for Knowledge-Grounded AI
The book builds one assistant over an organization’s internal policies and extends it chapter by chapter, from the first pipeline to agentic and multi-agent RAG. Retrieval and generation are evaluated separately all the way through: finding the right information and answering faithfully from it are different problems.
- 12 chapters in 4 parts
- Runnable Python code in every chapter
- English and Spanish editions
What it covers
- Part IFoundations and the RAG pipeline
How language models work and why they hallucinate, prompting, the end-to-end pipeline, embeddings and vector databases.
- Part IIAdvanced retrieval and evaluation
Document ingestion, chunking, query rewriting, sparse, dense, hybrid and graph-based search, reranking and retrieval metrics.
- Part IIIAgentic RAG
From a fixed pipeline to an agent that decides: ReAct, tools, the Model Context Protocol, memory and orchestration with LangGraph.
- Part IVAdvanced patterns, multi-agent systems and production
Self-RAG and Corrective RAG, supervisor-worker systems, validation, observability, security, and a capstone project.
