Gao et al. synthesize the post-2020 RAG literature into three paradigms that succeed each other: Naive RAG, the original Retrieve-Read three-step pipeline (Indexing → Retrieval → Generation), which suffers from low retrieval precision and hallucinated answers; Advanced RAG, which adds pre-retrieval (chunking strategy, metadata, indexing optimization, query rewriting, HyDE) and post-retrieval (re-ranking, context compression) optimizations; and Modular RAG, which inherits Naive and Advanced RAG but breaks the fixed Retrieve-Read sequence into replaceable modules — Search, RAG-Fusion, Memory, Predict, Task Adapter — that can be rewired into patterns like Rewrite-Retrieve-Read, Generate-Read, Recite-Read, Demonstrate-Search-Predict (DSP), ITER-RETGEN, FLARE, and Self-RAG. The survey frames RAG against Prompt Engineering and Fine-tuning on a two-axis quadrant (External Knowledge Required × Model Adaptation Required): RAG sits in the high-knowledge-low-adaptation corner, with fine-tuning, PE, and pre-training radiating around it; Modular RAG tends to absorb fine-tuning as the paradigm matures.

The trade-offs are explicit. Naive RAG fails on three named axes — Retrieval Challenges (low precision, miss-relevant chunks), Generation Difficulties (hallucination, irrelevance), Augmentation Hurdles (redundancy, disjoint output, over-reliance on retrieved context). Advanced and Modular RAG each fix a subset; none fix all three. The case below reproduces the Sam Altman dismissal query verbatim: three retrieved news-article chunks, the “without RAG” answer that punts on the event, and the “with RAG” answer grounded in the chunks. The remaining four panes are structural comparisons — the three paradigm flow diagrams (§II.B/C, Figure 3), three pre-retrieval query transformations on synthetic queries (Query Rewrite / HyDE / Step-back, paper §III.C), the four augmentation loops (Iterative / Recursive / Adaptive, paper §V), and the three Naive RAG drawbacks plus the RAG vs Prompt Engineering vs Fine-tuning quadrant (paper Figure 4). The argument and the figures are in the paper; this site does not host the PDF.

teaching explainer · Gao et al. · arXiv 2312.10997 · Tongji / Fudan · arXiv:2312.10997 | survey has no quantitative main experiment — all demos are structural comparisons; Recall@K values in §3 are schematic

0overview

core: three RAG paradigms succeed each other — Naive (Retrieve-Read), Advanced (pre-retrieval + post-retrieval optimization), Modular (rewritable Search / Memory / Predict / Rerank modules and patterns like Rewrite-Retrieve-Read, DSP, ITER-RETGEN, FLARE, Self-RAG). Each paradigm fixes a subset of the previous one's three named drawbacks — none fix all three.

Naive RAG

Retrieve-Read

Indexing → Retrieval → Prompt → Frozen LLM. Three-step chain: split docs, embed, retrieve top-K, concatenate, generate. Suffers from low retrieval precision, hallucination, redundancy.

Advanced RAG

Optimized pipeline

Pre-retrieval: chunking, metadata, indexing optimization, query rewriting, HyDE. Post-retrieval: re-ranking, context compression. Still chain-like but tighter at both ends.

Modular RAG

Replaceable modules

Search · RAG-Fusion · Memory · Predict · Task Adapter · Rerank · Read · Demonstrate · Fusion. Patterns: Rewrite-Retrieve-Read, Generate-Read, Recite-Read, DSP, ITER-RETGEN, FLARE, Self-RAG.

Three RAG paradigms succeed each other — Naive (Retrieve-Read) → Advanced (pre-retrieval + post-retrieval optimization) → Modular (rewritable Search / Memory / Predict / Rerank modules). The first pane demos the Sam Altman query with and without RAG. The second pane walks the three paradigm flows as ASCII diagrams. The third pane demos three pre-retrieval transformations on synthetic queries. The fourth pane shows the four augmentation loops. The fifth pane lists the three Naive RAG drawbacks plus the RAG vs PE vs FT quadrant.

primer — what you need before you start

the task. Gao et al.'s RAG survey organizes 1000+ retrieval-augmented generation papers into three paradigms. RAG = "use a vector index to inject external knowledge into an LLM's prompt" — the dominant production pattern for knowledge-grounded LLM apps.

how it was done before. Long context windows (200K+ tokens) looked like they would replace RAG. They didn't: latency, cost, and the attention-sink problem make real-time RAG still cheaper. The paper makes a taxonomy of how the field has solved the same three problems (precision, hallucination, redundancy) differently across paradigms.

glossary — terms you will see.
vector index — a database of text chunks plus their embeddings; query-by-similarity.
retrieval — query the index, get top-k chunks most similar to the question.
prompt — concatenate question + chunks; ask the LLM to answer using the chunks.
hallucination — the LLM generates a fact not supported by any retrieved chunk.
pre-retrieval optimization — rewrite / expand / disambiguate the question before the index call.
post-retrieval optimization — re-rank, compress, filter the retrieved chunks before generation.
Modular RAG — replaceable modules: Search, Memory, Predict, Rerank, Read, etc.

symbol table — what the letters mean.
qq — user query.
D={d1,d2,...,dK}D = \{d_1, d_2, ..., d_K\} — top-K retrieved documents.
RAG(q)\text{RAG}(q) — the whole pipeline: retrieve + read.
ww — chunking window; how much text per indexed chunk.
Rewrite(q)\text{Rewrite}(q) — pre-retrieval transformation.
Rerank(D,q)\text{Rerank}(D, q) — post-retrieval re-scoring of DD by relevance to qq.
FLARE\text{FLARE} — Forward-Looking Active REtrieval Augmented generation; gates retrieval by token-level confidence.

tone legend — what the [brackets] mean.
[obs] observation   [modular] modular component
[naive] naive RAG   [advanced] advanced RAG
[eq] equation   [take] key takeaway
[sys] system / meta   [limit] paper-reported limit

Six panes cover, in pedagogical order: a Sam Altman example showing RAG wins and loses; the three paradigm flows; pre-retrieval transformations; the four augmentation loops; the three Naive RAG drawbacks + the RAG / PE / FT quadrant. Each pane ends with key takeaways so you can stop after any section and still know what you learned.

1case: Sam Altman query

point: a user asks about Sam Altman's sudden dismissal and reinstatement. Naive RAG retrieves three news-article chunks on the event. Without RAG the model punts on the event ("unable to provide comments on future events"); with RAG the model grounds the answer in the chunks ("significant internal disagreements within OpenAI"). The same query demonstrates Naive RAG's failure mode and Advanced RAG's fix.

Query, three chunk titles, "without RAG" output, and "with RAG" output. Retrieval pipeline is schematic.

session · sec 1 · without-RAG vs with-RAG
Sam Altman query · without RAG vs with RAG

retrieve retrieved chunk LM output drawback / loss Naive RAG Advanced RAG (with chunks)

2paradigm flows

point: Naive RAG is a linear Retrieve-Read chain. Advanced RAG adds pre-retrieval (chunking, metadata, query rewrite, HyDE) and post-retrieval (re-rank, context compression) but stays chain-like. Modular RAG inherits both but breaks the fixed sequence into replaceable modules and patterns (Rewrite-Retrieve-Read, Generate-Read, Recite-Read, DSP, ITER-RETGEN, FLARE, Self-RAG).

Three ASCII flow diagrams printed sequentially — each paradigm's topology is the structural claim, the printed block IS the diagram.

session · sec 2 · three paradigm flows
Naive → Advanced → Modular RAG

Naive RAG (Retrieve-Read chain) Advanced RAG (pre + post) Modular RAG (replaceable modules) retrieve read generate

3retrieval pipeline · pre-retrieval transformations

point: paper §III.C lists three pre-retrieval query-transformation techniques — Query Rewrite (RRR) rewrites short queries into long ones to broaden recall; HyDE has the LLM generate a hypothetical answer and uses that as the retrieval query; Step-back Prompting steps back to a higher-level abstraction. Each before/after demo shows the same query at increasing Recall@K (schematic).

Synthetic queries — these are paper-defined techniques, not §1's verbatim chunks. The ASCII shows the transformation shape, not the actual retrieval scores.

session · sec 3 · three pre-retrieval transformations
Query Rewrite · HyDE · Step-back

transformation step Recall@K delta (schematic) retrieval call query

4augmentation loops

point: paper §V categorizes retrieval-augmentation into three loop shapes (Iterative, Recursive, Adaptive), each fixing a different Naive-RAG failure mode. Naive (once) retrieves a single pass; Iterative (ITER-RETGEN) regenerates after each retrieve until the answer is complete; Recursive decomposes the query into sub-questions and retrieves each; Adaptive (FLARE / Self-RAG) gates retrieval on token-level confidence and emits reflection tokens ([Retrieve] / [IsRel] / [IsSup] / [IsUse]).

Four loop diagrams printed sequentially. The topology is the claim — only the labels change between panels.

session · sec 4 · four augmentation loops
Naive · Iterative · Recursive · Adaptive

Naive (once) Iterative (ITER-RETGEN) · Recursive Adaptive (FLARE / Self-RAG) retrieve read generate / decompose / gate

5limitations & RAG vs PE vs FT quadrant

point: Naive RAG fails on three named axes — Retrieval Challenges (precision / recall miss relevant chunks), Generation Difficulties (hallucination beyond retrieved docs), Augmentation Hurdles (redundancy, disjoint output, over-reliance on retrieved context). Advanced RAG fixes parts of the first and third; Modular RAG absorbs the rest, including fine-tuning at the high-adaptation end of the Figure 4 quadrant.

session · sec 5 · three drawbacks + RAG vs PE vs FT quadrant
three Naive RAG drawbacks · where Advanced / Modular helps · quadrant

drawback Advanced RAG fix Modular RAG fix still open

A survey does not give quantitative head-to-head numbers — it gives the loss-comparison: which paradigm fixes which drawback, and where each still leaves the original problem standing.

Schematic traces are teaching schematics. Numbers reported: Gao, Xiong, Gao, Jia, Pan, Bi, Dai, Sun, Wang, Wang, Retrieval-Augmented Generation for Large Language Models: A Survey, arXiv:2312.10997v5 (27 Mar 2024), arXiv:2312.10997. Repo (figures + paper-list Notion base): github.com/Tongji-KGLLM/RAG-Survey. This site does not host the PDF.