
RAG Field Guide for AI Agents
Load when designing, building, debugging, evaluating or securing a RAG system: choosing RAG vs fine-tuning vs long context, parsing PDFs, chunking, embeddings, vector stores and HNSW, hybrid search, reranking, query rewriting, grounding, evaluation and LLM judges, caching, monitoring.
You can read the contents and the first 2,000 characters.
Pro includes the whole book.
- By Sahar Carmel
- 37 chapters
- Updated Nov 11, 2026
- 7 readers
What’s inside
- RAG or not: choosing the adaptation path
- Pipeline architecture and failure map
- Ingestion, parsing and index sync
- Chunking
- Embeddings
- Vector stores and ANN indexing
From the first page
What this is. A distilled, agent-readable synthesis of five RAG and retrieval books and 23 open-access research papers. It is an original paraphrase with page citations, not a copy of any chapter; quotations are limited to a few words. Every rule points to the page where the source states or demonstrates it, so you can verify before acting.
Audience and governance. Public reference for engineers and their AI agents. Custodian: the listing author. Licence: all rights reserved by the author; the five source books remain the property of their authors and publishers, and this guide is an independent summary that cites them. Attribution: see the source key below. Last updated: 2026-11-10. Scope of validity: five books from 2024 to 2025 (one is an unfinished early-access edition, see Ch 26) plus 23 open-access papers from 2016 to 2026 (Ch 19 to Ch 25). Next review: 2027-05-10 (every 6 months), because model names, prices and benchmark leaders age fast; principles age slowly.
Page numbers refer to the ebook edition of each book that the author read, which can differ from print pagination (for AI-Powered Search, printed page = cited page minus 5). Use them to locate a passage; expect small differences in other editions.
Preview · 2,000 of 361,302 characters
Contents
- 01RAG Field Guide for AI Agentsp.1
- Source keyp.1
- How to use this bookp.1
- 02Decision Matrixp.2
- 03RAG or not: choosing the adaptation pathp.3
- Quick referencep.3
- Agent rulesp.3
- Additional rules (third pass)p.3
- 04Pipeline architecture and failure mapp.4
- Quick reference: symptom to stage to fixp.4
- Agent rulesp.4
- Additional rules (third pass)p.4
- 05Ingestion, parsing and index syncp.5
- Quick referencep.5
- Agent rulesp.5
- Additional rules (third pass)p.5
- 06Chunkingp.6
- Quick reference: every number the sources give (all are demos, none is tuned)p.6
- Agent rulesp.6
- Additional rules (third pass)p.6
- 07Embeddingsp.7
- Quick referencep.7
- Agent rulesp.7
- Additional rules (third pass)p.7
- 08Vector stores and ANN indexingp.8
- Quick reference: ANN algorithms (from AE p.225, LEH p.187-188, APS p.340-341)p.8
- Agent rulesp.8
- Additional rules (third pass)p.8
See all 37 parts
- 09Retrieval: lexical, dense, hybrid, filters, routingp.9
- Quick referencep.9
- Agent rulesp.9
- Additional rules (third pass)p.9
- 10Query understanding and transformationp.10
- Quick referencep.10
- Agent rulesp.10
- Additional rules (third pass)p.10
- 11Reranking and result shapingp.11
- Quick referencep.11
- Agent rulesp.11
- Additional rules (third pass)p.11
- 12Context assembly and generationp.12
- Quick referencep.12
- Agent rulesp.12
- Additional rules (third pass)p.12
- 13Advanced patternsp.13
- Quick reference: which pattern for which failurep.13
- Agent rulesp.13
- Additional rules (third pass)p.13
- 14Evaluationp.14
- Quick reference: metricsp.14
- Agent rulesp.14
- 15Chapter 14 (continued 1) — Evaluationp.15
- Additional rules (third pass)p.15
- 16Chapter 14 (continued 2) — Evaluationp.16
- Additional rules (third pass)p.16
- 17Relevance engineering with signalsp.17
- Agent rulesp.17
- Additional rules (third pass)p.17
- 18Production: latency, cost, caching, monitoring, driftp.18
- Quick referencep.18
- Agent rulesp.18
- 19Chapter 16 (continued) — Production: latency, cost, caching, monitoring, driftp.19
- Additional rules (third pass)p.19
- 20Security, privacy and guardrailsp.20
- Quick referencep.20
- Agent rulesp.20
- Additional rules (third pass)p.20
- 21Anti-patterns and red flagsp.21
- 22Document parsing and OCR (primary sources)p.22
- Quick referencep.22
- Agent rulesp.22
- Caveatsp.22
- 23Chapter 19 (continued 1) — Document parsing and OCR (primary sources)p.23
- Additional rules (third pass)p.23
- 24Chapter 19 (continued 2) — Document parsing and OCR (primary sources)p.24
- Additional rules (third pass)p.24
- 25Retrieval techniques from the primary papersp.25
- Quick referencep.25
- Agent rulesp.25
- Additional rules (third pass)p.25
- Caveatsp.25
- 26Structure-aware indexing: late chunking, RAPTOR and graph RAGp.26
- Quick referencep.26
- Agent rulesp.26
- Caveatsp.26
- 27Chapter 21 (continued 1) — Structure-aware indexing: late chunking, RAPTOR and graph RAGp.27
- Additional rules (third pass)p.27
- 28Chapter 21 (continued 2) — Structure-aware indexing: late chunking, RAPTOR and graph RAGp.28
- Additional rules (third pass)p.28
- 29Self-reflective and agentic RAGp.29
- Quick referencep.29
- Agent rulesp.29
- Additional rules (third pass)p.29
- Caveats and correctionsp.29
- 30Context position, long context, embedders and rerankersp.30
- Quick referencep.30
- Agent rulesp.30
- Caveatsp.30
- 31Chapter 23 (continued 1) — Context position, long context, embedders and rerankersp.31
- Additional rules (third pass)p.31
- 32Chapter 23 (continued 2) — Context position, long context, embedders and rerankersp.32
- Additional rules (third pass)p.32
- 33Evaluation: definitions and the research surveyp.33
- Quick referencep.33
- Agent rulesp.33
- Additional rules (third pass)p.33
- Caveatsp.33
- 34Security: poisoning, injection and defenses (primary sources)p.34
- Quick referencep.34
- Agent rulesp.34
- Caveatsp.34
- 35Chapter 25 (continued) — Security: poisoning, injection and defenses (primary sources)p.35
- Additional rules (third pass)p.35
- 36Source map, source quality and known gapsp.36
- Which book for whatp.36
- Third pass: previously skipped pages (2026-11-10)p.36
- Primary papers added 2026-11-10p.36
- Known gaps after the second passp.36
- 37Self-audit and gap mapp.37
- Knowledge-asset checksp.37
- Agent-readability checksp.37
- Corrections made in the second passp.37
- Corrections made in the third passp.37
- Verification logp.37
- Open gaps (dated 2026-11-10)p.37




