Skip to main content
v2026.11,858 entries · CC-BY 4.0
Dictionary termTrack AStablev2026.2

Retrieval-augmented generation (RAG)

An AI architecture in which an LLM is augmented at inference time with documents retrieved from an external corpus (often via vector similarity search), so that the model's outputs are grounded in retrieved evidence rather than relying solely on parametric knowledge.

ByCASRAI Editorial Board
· Last updated 22 Aug 2026
Share this

Ask CASRAI · free to try

Ask about Retrieval-augmented generation (RAG)

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Examples

Worked examples

  • Is an instance

    A research assistant that retrieves PubMed abstracts via vector search and feeds them to GPT-4 to answer a clinical question

Counter-examples

Looks similar, but isn't

  • Not an instance

    A plain LLM that answers from its training corpus without retrieving any external documents is not RAG

Editorial commentary

Retrieval-augmented generation (RAG) is an AI architecture in which a language model is supplemented at inference time with documents retrieved from an external corpus — typically via vector-similarity search over an embedding index — so that its output is grounded in retrieved evidence rather than relying solely on knowledge encoded in its parameters during training. A RAG system therefore has two components a plain language model does not: a retrieval index (the corpus it searches) and a retrieval step (what was actually pulled back for a given query), both of which should be disclosed alongside any output.

What RAG does and does not fix

RAG reduces, but does not eliminate, hallucination: a model can still misread, misquote, or over-generalise from retrieved passages, and a poorly configured retrieval step can surface irrelevant or outdated documents that the model then treats as authoritative. Grounding in retrieved text is not the same as verified accuracy.

Disclosure expectations for scholarly use

Where RAG is used for literature search, evidence synthesis, or drafting assistance in research, the corpus searched (which database, what date range, what access restrictions), the retrieval method, and the underlying model version should all be recorded — the retrieved-document set is itself a form of methodology that affects reproducibility of the output, in the same way a search strategy is reported in a systematic review.

References

Also known as

RAG · Retrieval-augmented LLM

Machine-readable encodings

Use in your systems

JATS XML <role> element
xml
<role vocab="credit"
      vocab-identifier="https://casrai.org/dictionary/"
      vocab-term="Retrieval-augmented generation (RAG)"
      vocab-term-identifier="https://casrai.org/dictionary/term/retrieval-augmented-generation" />
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/retrieval-augmented-generation",
  "name": "Retrieval-augmented generation (RAG)",
  "identifier": "https://casrai.org/dictionary/term/retrieval-augmented-generation",
  "description": "An AI architecture in which an LLM is augmented at inference time with documents retrieved from an external corpus (often via vector similarity search), so that the model's outputs are grounded in retrieved evidence rather than relying solely on parametric knowledge.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/genai-disclosure#set",
  "url": "https://casrai.org/dictionary/term/retrieval-augmented-generation",
  "alternateName": [
    "RAG",
    "Retrieval-augmented LLM"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T01:57:21",
  "dateModified": "2026-08-22T15:44:00",
  "inLanguage": "en-GB",
  "isAccessibleForFree": true
}

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →

Ask CASRAI · Regulatory Radar

Research-admin question? Get an answer that links its sources.

An AI assistant specialized in research administration. Every answer links its sources to check before you act. 2 questions free, no account. $29/month after.

  • Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.
  • Every answer numbers its sources and links each one, so you can check the source yourself.