Skip to main content
AI Governance WikiPolicy Window · neutral reference

Retrieval-Augmented Generation (RAG)

retrieval-augmented-generation · Frontier safety

Concept
Tools

Last verified 2026-06-21

An AI system pattern in which a model's outputs are conditioned on external content retrieved at inference time from a knowledge source — combining the parametric knowledge of the model with the up-to-date or domain-specific knowledge of the retrieval index.

Definition & scope

Field consensus on this concept:settled

Retrieval-augmented generation was formalised by Lewis et al. (2020, 'Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,' NeurIPS) and is now the dominant pattern for deploying LLMs against proprietary, current, or specialised knowledge. The architecture pattern: at inference time, the user query is used to retrieve k documents from an index (vector store, search engine, structured database); those documents are appended to the prompt context; the model generates an answer conditioned on both its parametric memory and the retrieved context. RAG is the substrate for most enterprise LLM deployments — legal assistants citing case law, customer-support agents citing product docs, medical-AI citing clinical guidelines. Governance relevance opens a distinct surface from pure-LLM outputs. (a) Provenance — retrieved content has its own source attribution that must flow into the output; this is the technical substrate for citation-verifiability requirements (EU AIA Art. 50 transparency for AI-generated content). (b) Hallucination mitigation — RAG reduces but does not eliminate hallucination, because the model may still misquote or compositionally fabricate from retrieved sources. (c) Indirect prompt injection — the retrieval corpus is a primary adversarial-input vector (Greshake et al. 2023); an attacker who can plant content in the retrievable index can hijack the model. (d) Downstream-misinformation risk — RAG systems that surface low-quality sources amplify them with authoritative voice. (e) IP + training-data overlap — RAG creates a deployment-time analogue of training-data attribution questions, since retrieved-and-paraphrased content may infringe copyright at use-time. NIST AI RMF GenAI Profile §2.7 'Value Chain and Component Integration' is the closest binding frame; EU AI Act Art. 53 GPAI obligations apply to the model but the retrieval-index layer is largely unregulated.

Mechanism and architecture

RAG decomposes a generation task into two coupled stages. At inference time the user query is embedded and used to retrieve k documents from an index — a vector store, a search engine, or a structured database — which are concatenated into the prompt context; the model then generates conditioned jointly on its parametric memory and the retrieved passages 1. This is what distinguishes RAG from fine-tuning: knowledge enters at use-time rather than being baked into weights, so the index can be updated without retraining. The pattern is now the dominant substrate for deploying LLMs against proprietary, current, or specialised corpora — a reach consistent with the general-purpose-technology character of LLMs, which one estimate finds could affect at least 10% of work tasks for around 80% of the U.S. workforce 2 — and it shares its conditioning logic with in-context learning, the retrieved passages functioning as dynamically assembled exemplars rather than statically authored prompts.

Distinctions from pure-LLM generation and residual failure modes

The governance surface of RAG diverges sharply from pure-LLM output because retrieved content carries its own source attribution that must propagate into the answer — the technical substrate for citation-verifiability requirements such as EU AI Act Art. 50 transparency for AI-generated content. Yet RAG only attenuates hallucination; it does not eliminate it, since the model can still misquote a passage or compositionally fabricate claims that no retrieved source supports. The reliability gain is therefore conditional on retrieval quality: surfacing low-credibility sources lends them an authoritative voice and amplifies downstream misinformation. RAG also reframes data-protection concerns — where pure models risk memorising and leaking training data 3, RAG can surface sensitive index content verbatim at query time, a distinct exposure pathway whose lawfulness, where the index draws on scraped or publicly accessible personal data, falls to be assessed under the sensitive-data rules of Art. 9 GDPR 4.

Governance relevance and the regulated/unregulated layer split

RAG bifurcates the governance object into a model layer and a retrieval-index layer. EU AI Act Art. 53 GPAI obligations and Art. 50 transparency duties bind the underlying model, and the NIST AI RMF GenAI Profile §2.12 'Value Chain and Component Integration' offers the closest binding frame for the composite system. But the retrieval index — where most enterprise deployments concentrate risk in 2025–2026 — is largely unregulated, falling outside model-card obligations under Regulation (EU) 2024/1689. This mirrors broader definitional instability in the EU regime, where the legal text shifted across versions among 'AI system, general purpose AI system, foundation model, and generative AI' 5, and where generative systems strain settled liability and IP categories 6.

Debates and open questions

Although the RAG mechanism is settled, its governance is contested at the index layer. Indirect prompt injection is the sharpest open risk: because the retrieval corpus is an adversarial-input vector, an attacker who plants content in the index can hijack the model 7, and no binding instrument squarely regulates index curation. A second cluster concerns use-time IP: retrieved-and-paraphrased content may infringe copyright at deployment, a deployment-time analogue of training-data attribution that the dataset-licensing audit literature shows is already pervasively under-documented 8, with TDM exceptions and opt-outs proving hard to operationalise in practice 9. Whether provenance flow-through and human oversight can be made genuinely effective rather than rubber-stamp remains unsettled 10.

Use in governance

How instruments operationalise this concept

InstrumentJurisdictionStatus
EU AI ActEUin force
NIST AI RMF Generative AI ProfileUSin force

Appears in topic articles

Social-science evidence — the “so-what”

What the peer-reviewed social science shows: whether the harm this concept addresses is empirically real, and whether governance of it works. The badge is the epistemic status of the evidence(not the policy debate) — “thin” or “absent” efficacy evidence is itself a finding (the “second silence”). Each epistemic-status label is Policy Window's editorial assessment of the cited evidence base (a structured classification), not a verdict any single source issues.

  • Is the harm real?evidence: established

    RAG is a real, well-defined and widely deployed architecture, not a hypothetical: Lewis et al. 2020 introduced the parametric+non-parametric pattern and showed it generates more specific and factual output on knowledge-intensive tasks, and Shuster et al. 2021 demonstrated retrieval grounding substantially reduces hallucination in dialogue while maintaining conversational ability. Caveat: as a 'safety' concept its more salient empirical reality is its FAILURE surface — models frequently ignore or contradict retrieved context (Longpre et al. 2021 on entity-based knowledge conflicts: models over-rely on memorized parametric knowledge rather than the supplied passage) and produce unfaithful citations even when correct context is supplied.

    Sources: Lewis et al. 2020 (Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, NeurIPS, arXiv:2005.11401); Shuster et al. 2021 (Retrieval Augmentation Reduces Hallucination in Conversation, EMNLP Findings, aclanthology 2021.findings-emnlp.320); Longpre et al. 2021 (Entity-Based Knowledge Conflicts in Question Answering, EMNLP, aclanthology 2021.emnlp-main.565)

  • Does governance work?evidence: thin

    RAG demonstrably REDUCES but does not eliminate hallucination (Shuster et al. 2021), and no evidence shows it reliably 'works' as a trustworthiness guarantee: RAGTruth (Niu et al. 2024) measures non-trivial hallucination rates in retrieval-augmented generations across QA/summarization/data-to-text, attributed answers are often unfaithful to their own citations (Wallat et al. 2024, 'Correctness is not Faithfulness in RAG Attributions' — up to 57% of citations post-rationalized), and the retrieval channel is an attack surface — PoisonedRAG (Zou et al. 2024) achieves ~90% attack success by injecting roughly five malicious passages per target question and finds tested defenses insufficient. No governance or mitigation regime is shown to make RAG outputs reliably faithful or robust.

    Sources: Shuster et al. 2021 (Retrieval Augmentation Reduces Hallucination in Conversation, EMNLP Findings, aclanthology 2021.findings-emnlp.320); Niu et al. 2024 (RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models, ACL, aclanthology 2024.acl-long.585); Wallat et al. 2024 (Correctness is not Faithfulness in RAG Attributions, arXiv:2412.18004); Zou et al. 2024 (PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of LLMs, arXiv:2402.07867; published USENIX Security 2025)

Editorial note

When citing RAG in policy contexts, distinguish the model-layer governance surface (EU AIA Art. 53 model-card obligations) from the retrieval-index-layer governance surface (largely unregulated). The retrieval layer is where most enterprise deployments concentrate risk in 2025-2026 because it sees less regulatory scrutiny than the underlying model.

See also

Further reading

Sources on the broader topics this concept relates to — complementing, not standing in for, the primary sources cited inline above. 81 academic & grey-literature sources; catalogued metadata with a primary link; one-line findings are ✦ AI-generated summaries, labeled as such (charter §7.9). Browse the full literature index.

+ 69 more across this concept's topics — see the literature index.

References

Sources cited inline in the analysis, numbered in order of appearance.

  1. Lewis, P., et al. (2020), 'Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,' NeurIPS — the canonical articulation of RAG. Retrieval-Augmented Generation (RAG). arXiv:2005.11401 — Lewis, P., et al. (2020), 'Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,' NeurIPS — the canonical articulation of RAG. ↩
  2. Eloundou, Manning, Mishkin, Rock (2024) GPTs are GPTs: Labor market impact potential of LLMs, Science. 10.1126/science.adj0998 — Finds around 80% of the U.S. workforce "could have at least 10% of their work tasks affected" by LLMs, which exhibit "traits of general-purpose technologies". ↩
  3. Hannah Ruschemeier (2025) Generative AI and data protection, Cambridge Forum on AI: Law and Governance. 10.1017/cfl.2024.2 — Examines friction between foundation-model training and the GDPR, noting models that 'memorize and leak pieces of training data' cannot be treated as anonymous. ↩
  4. Taner Kuru (2024) Lawfulness of the mass processing of publicly accessible online data to train large language models, International Data Privacy Law. 10.1093/idpl/ipae013 — Argues LLM training on scraped web data should be assessed under Art. 9 GDPR (sensitive data), and that consent and the 'manifestly made public' route leave only a 'limited amount of personal data' lawfully usable. ↩
  5. David Fernández-Llorca, Emilia Gómez, Ignacio Sánchez, Gabriele Mazzini (2025) An interdisciplinary account of the terminological choices by EU policymakers ahead of the final agreement on the AI Act: AI system, general purpose AI system, foundation model, and generative AI, Artificial Intelligence and Law. 10.1007/s10506-024-09412-y — Traces how the AI Act's legal text shifted across versions among the terms 'AI system, general purpose AI system, foundation model, and generative AI', exposing definitional instability in the regime. ↩
  6. Novelli, Casolari, Hacker, Spedicato & Floridi (2024) Generative AI in EU law: Liability, privacy, intellectual property, and cybersecurity, Computer Law & Security Review. 10.1016/j.clsr.2024.106066 — Examines how the EU AI Act, liability regimes, GDPR, copyright and cybersecurity rules apply to generative AI, identifying gaps and proposing targeted regulatory refinements. ↩
  7. Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., Fritz, M. (2023), 'Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection.' Prompt Injection. arXiv:2302.12173 — Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., Fritz, M. (2023), 'Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection.' ↩
  8. Longpre, Mahari, et al. (Data Provenance Initiative) (2024) A large-scale audit of dataset licensing and attribution in AI, Nature Machine Intelligence. 10.1038/s42256-024-00878-8 — Audit of 1,800+ AI training datasets finds "licence omission rates of more than 70% and error rates of more than 50%" on popular hosting sites. ↩
  9. Martin Kretschmer, Bartolomeo Meletti, Lionel Bently, Gabriele Cifrodelli, Magali Eben, Kristofer Erickson, Aline Iramina, Zihao Li, Luke McDonagh, Emma Perot, Luis Porangaba, Amy Thomas (2025) Copyright and AI in the UK: Opting-In or Opting-Out?, GRUR International. 10.1093/grurint/ikaf093 — Contends the UK opt-in/opt-out framing is a 'missed opportunity'; a broadened research exception plus market-entry transparency and creator remuneration would better serve both innovation and rightsholders. ↩
  10. Sarah Sterz, Kevin Baum, Sebastian Biewer, Holger Hermanns, Anne Lauber-Rönsberg, Philip Meinel, Markus Langer (2024) On the Quest for Effectiveness in Human Oversight: Interdisciplinary Perspectives, Proceedings of the 2024 ACM Conference on Fairness, Accounta. 10.1145/3630106.3659051 — Synthesises interdisciplinary evidence to argue that legally mandated human oversight of AI is often ineffective ('rubber-stamp') unless effectiveness conditions are explicitly designed for. ↩
Cite this article 8 formats · BibTeX, RIS, APA, Chicago, … · 1-click copy
Verify the year + paste-and-refine. Primary source linked in BibTeX/RIS note.
Permalink downloads.bib.ris.csl.json

Persistent identifier: https://policywindow.org/wiki/retrieval-augmented-generation · Current article. Its contents can change. Citation and reuse guidance.

Article tools — track changes, suggest an edit

View history — every captured revision of this article · What links here

Source: Edit on GitHub (search for `retrieval-augmented-generation`)

Drafting provenance: human-curated catalog entry — this article's prose is human-written, not LLM-generated. Per charter §7.9. Not externally peer-reviewed; the review methodology, source appraisal and PRISMA-ScR conformance are documented at /wiki/methodology.

Generated from the Policy Window catalog at · each claim cites the originating primary source. Save this article above to get notified when it changes.

Not legal advice. This article catalogues the text and structure of governance instruments; it is not legal advice, regulatory advice, or any other professional advice. For high-stakes decisions (court pleadings, regulatory submissions, contract design) verify claims against the cited primary sources and consult qualified counsel. See terms of service §5 and /wiki/methodology.

Corrections record — none recorded

No corrections have been recorded for this article. See the Wiki’s correction policy and public corrections ledger.

Report a problem privately. Include this page’s address, the claim or citation and a supporting source. Read how the Wiki handles corrections.