Skip to content

Retrieval-augmented generation

Retrieve external records for an input, condition a generative model on the selected context, and produce an output whose grounding remains auditable but not guaranteed.

Version
v1 · 2026-08-30 · History
Domain-specific #
2664
Origin domain
artificial intelligence
Subdomain
retrieval conditioned language generation
Aliases
RAG, Retrieval-augmented language generation, Retrieval-conditioned generation

Core Idea

Retrieval-augmented generation is an architecture in which an input triggers search over an external corpus or memory, selected records are supplied as conditioning context, and a generative model produces an output using both its parametric state and retrieved evidence. The identity lies in the ordered coupling of retrieval and generation at inference or model operation time. Ordinary search ends with ranked records; ordinary generation need not consult external records; a prompt containing manually pasted text is context provision but not necessarily a maintained retrieval architecture.

Scope of Application

The abstraction is literal wherever practitioners can identify the same constitutive roles, apply the same boundary tests, and obtain the same kind of output. The following habitats are uses of Retrieval-augmented generation itself, not metaphors based only on resemblance.

  • Open-domain question answering. Retrieving passages before composing an answer.
  • Enterprise knowledge assistance. Conditioning output on access-controlled internal records.
  • Scientific literature support. Retrieving papers while preserving citation and uncertainty checks.
  • Customer support. Grounding responses in current product documentation.
  • Model updating. Changing accessible knowledge by reindexing rather than retraining.
  • Evaluation research. Separating retriever, context, and generator failure contributions.

Clarity

A clear account of Retrieval-augmented generation must preserve the recognition invariant stated in the Core Idea rather than rely on the title alone. Name the corpus, query method, ranker, context budget, generator, and provenance behavior. Evaluate retrieval recall separately from generation faithfulness. Distinguish retrieved evidence from system instructions and other trusted control data. Treat citations as claims requiring entailment checks rather than decorative links. These declarations are not editorial extras: each changes what observations count, which transformations are licensed, and what conclusion can be drawn.

Manages Complexity

Retrieval-augmented generation manages complexity by replacing a diffuse field of observations or possible operations with a bounded role structure: user or task input supplies a request supplies the information need and generation objective.; external corpus supplies documents or records remain outside the generator's fixed parameters.; query representation supplies a lexical, dense, or hybrid form drives candidate search.; retriever and ranker supplies search selects a bounded evidence set.; context assembly supplies passages, metadata, and provenance enter the model's context..

Abstract Reasoning

  1. Define the information need and what external evidence should answer it. 2. Select an authorized corpus with provenance and update semantics. 3. Construct and test lexical, dense, or hybrid queries. 4. Rank and filter records under a declared context budget. 5. Assemble context with trust labels and source identifiers. 6. Generate while retaining uncertainty and instruction-data separation. 7. Audit recall, relevance, entailment, synthesis, latency, and adversarial robustness independently.

Knowledge Transfer

The strict upward abstraction is Search And Retrieval. Retrieval-Augmented Generation instantiates Search and Retrieval because an input-responsive search selects external records that become the evidence substrate for generation. Within retrieval conditioned language generation, the full mechanism transfers literally when the same roles and boundary tests recur. Beyond that domain, only the parent-level skeleton should travel. Reusing the label Retrieval-augmented generation after removing its constitutive vocabulary would hide a change of mechanism behind an analogy. The honest transfer rule is therefore two-stage: recognize the domain-specific pattern first, then lift only the parent relation that remains invariant under a substrate change.

Relationships to Other Abstractions

Local relationship map for Retrieval-augmented generationParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Retrieval-augmentedgenerationDOMAINPrime abstraction: Search and Retrieval — is a kind ofSearch andRetrievalPRIME

Current abstraction Retrieval-augmented generation Domain-specific

Parents (1) — more general patterns this builds on

  • Retrieval-augmented generation is a kind of Search and Retrieval Prime

    Retrieval-Augmented Generation instantiates Search and Retrieval because an input-responsive search selects external records that become the evidence substrate for generation.

Hierarchy paths (4) — routes to 3 parentless roots

Neighborhood in Abstraction Space

Retrieval-augmented generation sits in a sparse region of the domain-specific corpus (89th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (1565 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-09-08