Skip to content

Retrieval-Augmented Generation for Large Language Models: A Survey (Gao et al. 2023)

Quick facts

Authors
Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Meng Wang, Haofen Wang
Venue
arXiv (v1 2023; v5 2024)
Year
2023
DOI
10.48550/arXiv.2312.10997
URL
https://arxiv.org/abs/2312.10997
Reproducibility
Neither published
Survey scope
The paper reports covering more than 100 studies, 26 tasks, and nearly 50 datasets.
System map
The survey maps Naive, Advanced, and Modular RAG across retrieval, generation, augmentation, and evaluation.
Evidence boundary
This is a narrative survey, with no original benchmark experiment, production-engine audit, or GEO intervention test.

Plain-English summary

Gao et al. describe retrieval-augmented generation as a complete system, not merely an addition to vector search. Their survey begins with a basic index-retrieve-generate pipeline. It then covers Advanced RAG, which improves queries and filters evidence, and Modular RAG, which combines routing, memory, search, and adaptation in flexible workflows. The survey's lasting value is its clear separation of retrieval, generation, augmentation, and evaluation as distinct design problems. The evidence it reviews is a snapshot of the literature, not the result of a controlled experiment or a test of production search engines or GEO tactics.

Key findings

  • The survey's central architecture progresses from Naive RAG to Advanced RAG and Modular RAG. These are useful design patterns, not strict or mutually exclusive maturity levels.
  • RAG quality depends on more than retrieval. Indexing, query transformation, reranking, context compression, model adaptation, and the timing of augmentation can each change the answer.
  • Retrieval and generation require separate evaluation. Context relevance does not guarantee faithfulness, and answer correctness can conceal weak or unsupported retrieval.
  • The authors report reviewing more than 100 studies across 26 tasks and nearly 50 datasets. These figures describe the survey's scope, not the current size of the field.
  • For GEO, the paper explains how a source can enter and survive a grounding pipeline, but it does not test citation visibility, content optimization, or any live generative-search product.
  • The taxonomy remains useful as shared vocabulary, but agentic control, production evaluation, long-context routing, multimodal retrieval, and security now require newer evidence.

1. How the survey maps RAG

Retrieval-Augmented Generation for Large Language Models: A Survey organizes an engineering field that was expanding quickly. Gao et al. report covering more than 100 studies, 26 task categories, and nearly 50 datasets. These figures describe the scope of the survey at the time of publication, not the current size of the RAG literature.

RAG allows a language model to consult external, updatable knowledge before or during generation. This design helps address the limits of purely parametric memory. Facts can become outdated, specialized knowledge may be sparse, and answers generated only from model weights offer little information about their sources. The foundational NeurIPS 2020 RAG paper combined a sequence generator with a dense Wikipedia index. Gao et al. expand that view from a single model design to a complete generative-engine architecture.

This mechanism underpins generative engine optimization. GEO depends on systems that discover, select, and use external sources, but an explanation of the mechanism does not establish that any optimization method works.

What the survey doesWhat the survey does not doWhy it matters for GEO
Organizes RAG paradigms, components, and evaluation methodsReverse-engineer a production search systemShows the stages a source must pass through
Synthesizes results from earlier researchConduct a single controlled benchmarkSeparates evidence about system mechanics from evidence about tactics
Provides shared vocabulary for system designTest content rewrites or citation visibilityHelps prevent retrieval results from being mistaken for attribution results

2. How RAG moves from indexing to generation

The paper presents a basic three-stage pipeline. First, documents are divided into retrievable units and indexed. A query then retrieves a small set of candidates. Finally, the generator receives the query together with selected context and produces an answer.

documents -> [INDEX] -> searchable chunks
                              |
query ----> [RETRIEVE] -> candidate set (top-k chunks)
                              |
                     [SELECT / GROUND] -> selected context
                              |
                         [GENERATE] -> answer

RAG relies on three distinct forms of stored information. Parametric memory is encoded in the model’s weights. The external knowledge base is the searchable corpus. Query-time context is the small subset placed in the model’s working input. Updating the corpus can change later answers without changing the model weights, but only if the new material is discovered, retrieved, and selected.

Production systems rarely complete this process in a single pass. They may rewrite the query, search several times, rerank candidates, compress context, identify a gap in the evidence, and retrieve again. RAG describes the architecture, while the answer loop describes the sequence of operations at runtime.

StageInputDecisionDownstream failure
IndexingSource documentsWhich units and metadata become searchableMissing, stale, or incoherent chunks cannot become candidates
RetrievalQuery and indexWhich chunks enter the candidate setLow recall omits evidence, while low precision adds noise
SelectionCandidate chunksWhich evidence remains in the contextReranking or compression removes a useful passage
GenerationQuery and contextHow the evidence is combined into an answerThe model ignores, distorts, or overstates the evidence

3. Three RAG paradigms: Naive, Advanced, and Modular

3.1 Naive RAG

Naive RAG is the paper’s three-step baseline: index, retrieve, and generate. The word “Naive” is an architectural label, not a judgment about the quality of every simple implementation. A well-curated corpus and a precise query can make a basic pipeline effective, while a larger and more complex pipeline can still fail.

InputProcessingOutputCommon failure
DocumentsFixed chunking and indexingSearchable corpusChunk boundaries divide the evidence or remove its context
User queryOne retrieval callTop-k passagesPoor precision, poor recall, or conflicting candidates
Query plus passagesOne generation callNatural-language answerHallucination, irrelevant detail, bias, or evidence misuse

Gao et al. identify weaknesses in retrieval, generation, and augmentation. Retrieval may miss relevant passages or return distracting ones. The generator may ignore the evidence, repeat it without resolving conflicts, or rely on it too heavily. A single retrieval step may also be insufficient when a question reveals additional subproblems only after the system begins examining the evidence.

3.2 Advanced RAG

Advanced RAG improves both the inputs to retrieval and the results it produces. Before retrieval, the system makes the index and query more discriminating. After retrieval, it reduces noise before the generator receives the context. The goal is not to add more components, but to produce better candidates and cleaner context.

LocationTechnique familyFailure it addresses
Pre-retrieval: corpusChunk strategy, metadata, hierarchical indexesEvidence is split, context-free, or hard to filter
Pre-retrieval: queryRewrite, expansion, decomposition, routingUser wording does not match the corpus
Pre-retrieval: representationEmbedding adaptation, sparse/dense fusionSimilarity search misses exact terms or semantic matches
Post-retrieval: rankingReranking and relevance filteringThe top-k ranking contains plausible but weak evidence
Post-retrieval: contextDeduplication and compressionThe prompt is redundant, conflicting, or too long

These interventions introduce trade-offs of their own. Aggressive compression can remove important qualifications. Query expansion can improve recall while drifting away from the user’s intent. Rerankers can add another opaque layer of preference. “Advanced” therefore refers to the number of available control points, not to guaranteed quality.

3.3 Modular RAG

Modular RAG treats search, memory, routing, fusion, prediction, and task adaptation as components that can be combined in different ways. A workflow may be sequential, conditional, iterative, or adaptive. Based on its intermediate state, the system may choose a source, issue a follow-up query, merge results, or stop.

ParadigmFlowRetrieval timingPost-processingModel adaptationTypical limit
NaiveLinearOnce, before generationMinimalUsually noneBrittle when one retrieval misses
AdvancedEnhanced linearUsually once, with a transformed queryRerank, filter, compressOptionalMore stages, tuning, and latency
ModularComposed and conditionalOnce, iterative, recursive, or adaptiveModule-dependentPrompting, adapters, or joint trainingComplex control logic and hard-to-localize errors

This paradigm anticipated later agentic and deep-research systems, although the 2024 survey did not fully describe today’s agentic taxonomy. A later Agentic RAG survey adds reflection, planning, tool use, multi-agent coordination, and explicit control structures. This later work extends the modular approach. It does not show that Gao et al. had already covered these developments.

4. Three technical axes: retrieval, generation, and augmentation

4.1 Retrieval: what enters the candidate set

The survey examines retrieval at three levels: the corpus, the query, and the way each is represented. Chunk size and metadata determine what the system can match. Query rewriting and routing determine what it searches for. Sparse retrieval preserves lexical matches, while dense retrieval looks for semantic similarity. Hybrid approaches try to retain both kinds of signal.

LeverIntended benefitFailure when poorly configured
Chunk size and overlapPreserve answer-sized evidence with enough contextTiny fragments lose meaning, while large chunks dilute relevance
Metadata and hierarchyFilter by source, time, section, or entityMissing or wrong metadata hides good evidence
Query rewritingAlign user language with corpus languageRewrite drifts from the original intent
Sparse/dense/hybrid choiceBalance exact-term precision and semantic recallOne representation suppresses the other signal
Retriever alignmentAdapt ranking to the task and generatorBetter offline relevance scores fail to improve answers

Retrieval recall is necessary, but it is not sufficient. A relevant chunk in the top-k results can still be discarded, truncated, contradicted, or ignored. Conversely, a correct answer may come from the model’s memory even when retrieval fails. End-to-end accuracy alone cannot distinguish between these outcomes.

4.2 Generation: what survives and how the model uses it

Selection after retrieval determines which candidates enter the prompt. The way the generator is adapted then affects whether the model follows the evidence, combines several passages, declines to answer unsupported questions, or falls back on parametric memory.

These states are distinct. Retrieval does not guarantee selection, selection does not guarantee use, and use does not guarantee credit. Gao et al. explain retrieval and selection well. Whether the product credits the evidence depends on its own rendering and source policies, so citations and mentions must be measured separately.

StateWhat happenedObservable result
RetrievedThe source entered a candidate setUsually hidden unless the system is controlled
SelectedSome source text entered the model’s contextVisible in traces, but not necessarily in the answer
UsedThe answer depends on the evidenceDetectable through attribution or counterfactual analysis
CreditedThe interface names or links the sourceA visible link, citation marker, or mention

Keeping these states separate prevents a common overstatement: a grounded answer is not necessarily a well-attributed answer. A system can use evidence faithfully without naming its publisher. It can also cite a page that contains the claim without showing that the cited passage actually influenced the answer.

4.3 Augmentation: what, when, and how to retrieve

The augmentation axis asks three questions: what knowledge should be added, at what point in the model lifecycle it should be introduced, and how the system should repeat or adapt retrieval. These are independent design choices, not stages in a single maturity model.

AxisOptions in the surveyDesign question
StagePre-training, fine-tuning, inferenceAt which point should external knowledge affect behavior?
SourceUnstructured text, structured data, model-generated materialWhich form of knowledge fits the task and its trust requirements?
ProcessOnce, iterative, recursive, adaptiveDoes one retrieval suffice, or should evidence change the next query?

These distinctions rule out two oversimplifications. RAG is not synonymous with vector search, because the source can be structured and the retriever can use lexical or hybrid methods. Nor is RAG necessarily limited to inference. Retrieval can support training or adaptation, and the survey treats RAG and fine-tuning as potentially complementary.

5. Evaluating retrieval and generation separately

5.1 Evaluation targets and required abilities

The survey evaluates retrieval quality separately from generation quality. For retrieval, context relevance and recall indicate whether the system found useful evidence. For generation, faithfulness and answer relevance indicate whether the output is supported by that evidence and responds to the question.

TargetRequired abilityRepresentative measures
RetrievalFind useful evidence without overwhelming the promptContext relevance, precision, recall
GenerationStay supported by the supplied evidenceFaithfulness or groundedness
End-to-end answerAddress the user’s actual questionAnswer relevance and task accuracy
RobustnessResist irrelevant or misleading contextNoise robustness
AbstentionReject questions unsupported by the corpusNegative rejection
SynthesisCombine evidence across passagesInformation integration
Conflict handlingAvoid blindly adopting false supplied claimsCounterfactual robustness

Evaluating these abilities individually reveals more about RAG failures than a single QA score. The paper also acknowledges that RAG-specific evaluation was neither mature nor standardized. A later evaluation survey formalized a unified process based on relevance, accuracy, and faithfulness, while again identifying limitations in the available metrics and benchmarks.

5.2 Benchmarks and tools in the paper

Gao et al. use representative benchmarks and evaluation frameworks to describe the state of the field. The list reflects the paper’s March 2024 snapshot and is not a current recommendation of evaluation tools.

Benchmark or toolMain target in the surveyRole in the paper’s snapshot
RGBNoise, rejection, integration, and counterfactual robustnessTests how retrieved context changes behavior
RECALLCounterfactual and knowledge-conflict behaviorProbes reliance on retrieved versus parametric knowledge
CRUDCreate, read, update, and delete tasksBroadens evaluation beyond question answering
RAGASRetrieval and generation metricsReference-free or model-assisted component scoring
ARESContext relevance, faithfulness, answer relevanceAutomated evaluation with trained judges
TruLensInstrumentation and feedback functionsOperational inspection of RAG applications

The value of these tools lies in diagnosis, not in choosing any particular tool. When a score falls, practitioners need to know whether the cause lies in the corpus, retriever, selector, generator, or evaluator. A single composite score can hide a good answer produced despite failed retrieval, or a fluent answer based on poor evidence.

5.3 What the evaluation layer still misses for GEO

RAG evaluation asks whether a system found useful context and produced a relevant, faithful answer. GEO requires an additional publisher-level view: whether a page was retrieved, used, named, linked, or cited prominently. The two groups of outcomes overlap, but they are not interchangeable.

System-quality outcomePublisher-visible outcome
The system found relevant contextA specific page appeared among the candidates or cited sources
The answer is faithful to contextThe cited passage actually supports the attributed claim
The answer addresses the queryThe publisher received a link, citation, mention, or no credit
The system resists noisy evidenceA low-quality competitor did not displace the publisher’s source

This difference explains why improvements on a RAG benchmark cannot be converted directly into claims about citation share. The unit of evaluation changes from the correctness of the system to the exposure and attribution of an individual source.

6. Critical assessment: durable taxonomy, dated evidence

6.1 What the survey gets right

The survey’s lasting contribution is its organization of a large body of research. It gives researchers and practitioners shared language for systems that can differ sharply in their implementation.

ContributionWhy it remains durablePresent-day caveat
Naive → Advanced → Modular mapClarifies increasing levels of control and compositionThe categories overlap and are not strict maturity levels
Retrieval / generation / augmentation axesShows why RAG is more than “vector search”Security and multimodality now need more explicit treatment
Component-level evaluationIdentifies failures that end-to-end accuracy can hideSource attribution in production systems remains undermeasured

The taxonomy also highlights an important engineering reality: retrieval creates new capabilities and new ways to fail. Stale indexes, poisoned sources, query drift, reranker bias, conflicting context, and evaluator errors can all affect the path from query to answer. RAG changes where the system obtains knowledge, but it does not guarantee the quality of that knowledge.

6.2 Four limits to keep in mind in 2026

The survey successfully organized a field as it stood in 2023 and early 2024. Four limitations matter when applying its conclusions in 2026.

Claim a reader may inferEvidence boundarySafe wording
“This is the current RAG landscape.”The main literature snapshot ends in early 2024“This is a foundational map that needs to be supplemented with current research.”
“RAG reduces hallucination.”A survey aggregates heterogeneous studies. It is not one experiment.“RAG can improve factual grounding under particular corpora, retrievers, and evaluations.”
“Naive, Advanced, and Modular are mutually exclusive.”The labels mix chronology, component count, workflow, and adaptation“They are architectural patterns that can coexist in one system.”
“Production answer engines use this pipeline.”Product indexes, rerankers, policies, and attribution layers are proprietary“Public product behavior is consistent with some RAG mechanisms, but does not prove that the architecture is identical.”

Snapshot age. Agentic search, deep-research workflows, multimodal retrieval, long-context routing, and production web grounding developed rapidly after the paper’s last revision. Evidence about these developments should supplement the survey. The developments themselves should not be attributed to its original taxonomy.

Survey, not experiment. The paper summarizes studies that used different tasks, corpora, models, and metrics. It cannot establish a universal effect size for reducing hallucinations, and it does not test any GEO content intervention.

Mixed taxonomy axes. “Advanced” can refer to better preprocessing, stronger post-processing, or model adaptation. “Modular” can refer to replaceable components or a flexible control flow. The framework is useful for navigating the literature, but less suitable as a strict classification system.

Lab-to-production gap. Current products disclose only part of how they operate. Google now says its generative Search features use core ranking systems and may perform concurrent query fan-out (official guide). OpenAI says ChatGPT search may rewrite a request into multiple targeted queries and warns that citations can be incomplete or wrong (official help). Neither disclosure reveals the complete indexing, reranking, context-selection, or attribution process.

6.3 What remains useful and what needs newer evidence

The following update matrix preserves the survey’s value while distinguishing its conclusions from developments that require newer evidence.

2024 survey claim2026 statusNewer evidence needed
External knowledge can update answers without retraining weightsStill relevantProduction corpus freshness and indexing behavior
Retrieval can be iterative or adaptiveStill relevant and now extended into agentic controlAgentic RAG architectures and operational failure studies
Reranking and compression matter after retrievalStill relevantProduction traces and context-selection audits
Retrieval and generation need separate evaluationStill relevantLive, dynamic, source-level evaluation
RAG and fine-tuning can be combinedStill relevantTask-specific cost, latency, and maintenance comparisons
RAG is the default answer to long inputsNeeds qualificationLong-context versus RAG and hybrid-routing experiments
Text-centric retrieval covers the main design spaceNeeds refreshMultimodal retrieval benchmarks and provenance methods
Security is one future concern among manyNeeds elevationPoisoning, access control, prompt injection, and data-leakage tests

The trade-off between RAG and long context illustrates why newer evidence matters. Li et al.’s EMNLP 2024 study found that sufficiently resourced long-context models performed better on average in the settings they tested, while RAG was substantially cheaper. A hybrid router retained comparable performance at a lower cost. The finding does not make RAG obsolete. Instead, it reframes the choice between RAG and long context as a question of routing and resources.

Later evidence also provides a more precise view of evaluation and source preference. The 2024 evaluation survey separates relevance, accuracy, and faithfulness across retrieval and generation. Wan et al.’s conflicting-evidence experiment shows that, once two sources have been retrieved, topical relevance can outweigh several stylistic credibility signals. Both studies add measurements that were not part of the Gao survey.

7. Reproducibility and supporting artifacts

This narrative survey contains no original benchmark experiment to reproduce. Its reproducibility rating is therefore none, which means that experiment-level reproducibility does not apply to the study design. It does not mean that the paper has no supporting materials.

ArtifactPurposeReproducibility significance
arXiv versions v1–v5Preserve the paper’s revision historyAllow readers to identify the exact March 2024 snapshot
Official RAG-Survey repositoryHosts citation information, slides, and project linksSupports provenance rather than experiment replication
OpenRAG BaseCurates papers, tasks, datasets, tools, and readingsProvides a maintained knowledge resource rather than a code-and-data package

The current arXiv record and the official repository differ in their metadata. The arXiv record lists ten authors and shows a version history from v1 on December 18, 2023, through v5 on March 27, 2024. The official repository gives a 2024 BibTeX entry that also includes Qianyu Guo. The structured metadata follows the current arXiv record. The additional name in the repository is noted separately and not added to the author list.

8. Practical implications for GEO

For GEO practitioners, the survey provides a clear model of the mechanism. A page must first be discoverable and represented in an index. A relevant unit must then enter the candidate set and survive reranking, filtering, and context limits. The generator must use that material before the product’s attribution system can credit the source.

MechanismObservable implicationWhat it does not prove
Indexing and chunkingCrawlability and coherent, answer-sized passages affect eligibilityEvery engine crawls the page in real time
Candidate retrievalQuery relevance and corpus representation affect whether a page is consideredKeyword matching alone wins retrieval
Reranking and filteringSource quality and passage specificity can affect whether content remains in contextOne universal content format works for every reranker
Grounded generationClear, compatible evidence is easier to useGrounding guarantees a visible citation
AttributionLinks and mentions depend on the productA cited page influenced every nearby claim

The model shows where crawlability, specificity, chunk coherence, and source quality can affect the system, but it does not assign effect sizes to any of them. The answer loop describes the sequence in which these effects may occur, while citation-versus-mention measurement takes place after retrieval.

Evidence about specific interventions comes from studies such as Aggarwal et al. 2024. Gao et al. explain the machinery on which GEO depends, while Aggarwal et al. test content modifications within a particular generative-engine benchmark. A description of the mechanism cannot validate an intervention, and an intervention benchmark cannot describe the entire mechanism.

9. Further reading

Frequently asked questions

What is the main contribution of Gao et al.'s RAG survey?
It gives researchers and practitioners a coherent vocabulary for RAG systems. The paper distinguishes Naive, Advanced, and Modular paradigms, then organizes techniques across retrieval, generation, augmentation, and evaluation. Its value lies in bringing this broad field into a clear framework, not in reporting a single new performance result.
Did Gao et al. prove that RAG reduces hallucinations?
No. The paper reviews results from earlier studies that used different tasks, datasets, and system designs. It does not present a controlled experiment showing that RAG universally reduces hallucinations. Retrieval can also introduce irrelevant, stale, conflicting, or adversarial evidence.
Why is the page labeled 2023 when the latest paper version is from 2024?
The authors first submitted the paper to arXiv on December 18, 2023, then revised it through version 5 on March 27, 2024. The paper year is therefore listed as 2023, while the version history is stated explicitly. The official repository uses 2024 in its BibTeX entry.
Does this survey describe how ChatGPT Search or Google AI features rank sources?
No. The survey describes general RAG research architectures. Production engines may combine search indexes, query fan-out, reranking, long context, model tools, policy layers, and proprietary attribution systems in ways the paper did not observe.
What should a GEO practitioner take from the paper?
The paper shows where visibility can fail: discovery and indexing, candidate retrieval, reranking and filtering, use of context, and attribution. It does not provide evidence that a particular rewrite, schema field, or content tactic will increase citations.

Related work

Sources

Primary

  1. Retrieval-Augmented Generation for Large Language Models: A Survey · arXiv · 2023-12-18
  2. RAG-Survey — official repository and OpenRAG supporting materials · Tongji-KGLLM / GitHub
  3. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks · NeurIPS 2020
  4. Optimizing your website for generative AI features on Google Search · Google Search Central · 2026-07-10
  5. Searching the web with ChatGPT · OpenAI Help Center

Secondary

  1. Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG · arXiv
  2. Evaluation of Retrieval-Augmented Generation: A Survey · arXiv
  3. Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach · Association for Computational Linguistics
  4. GEO: Generative Engine Optimization (Aggarwal et al. 2024) · arXiv / KDD 2024
  5. What Evidence Do Language Models Find Convincing? (Wan, Wallace, Klein 2024) · Association for Computational Linguistics
Last updated: 2026-08-20 Authors: Ray Yang Topic: Ecosystem