All Glossary Terms

Retrieval-augmented generation

Fetching relevant documents from an external data store at query time and injecting them into the prompt to provide the language model accurate context.

Listen to this definition

Uses a voice available on your device

Audio options
On this page 5 sections
Related concepts 4 concepts

What it is

When a user submits a query, your system first converts it into a vector embedding and queries a vector database to find the top three to ten most relevant text chunks. These retrieved chunks are then concatenated directly into the prompt template alongside the original user query before hitting the language model inference endpoint. This architecture allows a model with static training data to access millions of private records or live internal documents without altering its underlying parameter weights. The entire fetch and augment cycle typically adds between 50 to 200 milliseconds of latency and incurs minimal token overhead compared to fine-tuning.

Why it matters

You should use retrieval-augmented generation whenever your application needs to answer questions over private, frequently changing, or domain-specific data that the base model has never seen. If you ignore this pattern and rely solely on parametric memory, your model will hallucinate plausible sounding facts when asked about internal APIs or company policies. Knowing this distinction stops you from wasting budget and compute cycles on expensive model fine-tuning jobs when the real bottleneck is simply missing context in the prompt.

In practice

In production, you will spend most of your time tuning chunk size, overlap parameters, and the top-k retrieval count to balance recall against context window limits. You will observe that retrieval quality directly bounds output quality, meaning poor vector search results guarantee bad model answers regardless of model size. Popular libraries like LangChain or LlamaIndex manage these pipelines, while vector databases like Pinecone, pgvector, or Milvus store the embeddings.

The tradeoff

The core tradeoff is that adding retrieved context increases token counts and inference costs, while poor retrieval precision will actively distract the model and degrade output quality.

Where it appears

Research summaries that use Retrieval-augmented generation, each linked to its source paper.

  • Agentic Framework for Traffic Anomaly Understanding
    TAU-Agent: An Agentic Retrieval-Augmented Framework for Traffic Anomaly Understanding

    TAU-Agent is an agentic framework designed to improve traffic anomaly detection by using retrieval-augmented generation to integrate video descriptions and object trajectories.

  • Optimizing LLM Agents for Competitive Programming
    MARS: Multi-Specialist LLM Relay System for Competitive Programming

    The Multi-Specialist LLM Relay System improves coding agent performance by using specialized agents and a staged pipeline to solve complex programming tasks.

  • Structuring Entities for Better Document Retrieval
    EnSI-RAG: Entity-Structure-Indexed Retrieval-Augmented Generation for Long-Document Question Answering

    EnSI-RAG improves long-document question answering by indexing documents based on structured entity relationships rather than simple text chunks.

  • Detecting Misinformation in Generative AI Systems
    Trustworthy RAG: An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems

    The paper introduces an agent that evaluates Retrieval-Augmented Generation outputs by combining document screening and factual verification to block poisoned data and instruction injection.

  • Benchmarking Cognitive Bias in LLMs
    AnchorBench: A Multi-Pathway Benchmark for the Anchoring Effect in LLMs

    The paper introduces AnchorBench to evaluate the anchoring effect in large language models across multiple pathways and relevance conditions.

  • Automating Complex System Diagnostics With Knowledge Graphs
    Constructing Dynamic Master Logic Models as Knowledge Graphs for Complex System Diagnostics Using Retrieval-Augmented Large Language Models

    The authors developed an automated framework using Retrieval-Augmented Generation and Large Language Models to construct Dynamic Master Logic models as Knowledge Graphs, overcoming the scalability limits of manual expert interpretation.

  • Curated RAG Systems Outperform Frontier LLMs
    A corpus-specific clinical RAG system matches or outperforms newer frontier LLMs on HealthBench

    Researchers developed VITA, a domain-specific retrieval-augmented generation system that achieves superior performance on clinical tasks by prioritizing curated local data over generic model scale.

  • Detecting Poisoned RAG Content via Attention
    When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse

    The researchers developed D-SCAN, a method to detect malicious documents injected into RAG pipelines by identifying specific anomalies in how the model distributes its attention.

  • Traceable Scientific Question Answering Benchmark
    LitTraceQA: A Benchmark for Multi-Stage Grounding and Verification in Scientific Question Answering

    LitTraceQA provides a new benchmark designed to force scientific AI agents to retrieve and cite specific evidence from papers to verify their answers.

  • Mapping Open Source AI Risk Tools
    Taxonomy-Driven Analysis of Open-Source AI Risk Mitigation Tools

    The paper classifies 21 open-source AI security tools against the MIT AI Risk Mitigation and Response Taxonomy to identify gaps in existing risk coverage.

  • Automating Civil Engineering Plan Compliance Checking
    PlanSightRAG: A Visual-First Multimodal RAG for Automating Question Answering and Compliance Checking for Civil Standard Plans

    PlanSightRAG leverages a vision-first multimodal framework to automate compliance checking for complex civil engineering drawings.

  • Testing Automated Fact Checking System Robustness
    How Robust Are Automated Fact-Checking Systems? A Cross-Benchmark Evaluation

    Researchers evaluated automated fact checking systems across four datasets to reveal how domain differences and retrieval performance impact overall accuracy.

  • Building Industrial Datasets from Technical Reports
    Industrial-Instruction: An End-to-End Framework for Building Instruction-Tuning and Benchmark Datasets from Industrial Technical Reports

    The authors present an end-to-end framework to automatically generate instruction-tuning and benchmark datasets from complex industrial technical documents.

  • Multi-hop RAG Amplifies Transcription Errors
    Better Retrieval, Worse Robustness:How Multi-hop RAG Amplifies Upstream ASR Errors

    This research demonstrates that advanced multi-hop retrieval systems significantly increase the performance degradation caused by upstream automatic speech recognition errors compared to simpler retrieval methods.

  • Automated Analog Circuit Design Using LLMs
    AaLLM: An End-to-End Analog Circuit Design Framework from Topology Generation to Sizing Using Large Language Models

    AaLLM is an end-to-end framework that uses a chain of LLM agents to automatically generate and size analog circuits from user specifications.

  • Improving Retrieval Accuracy with SQL Hyperedges
    SAG: SQL-Retrieval Augmented Generation with Query-Time Dynamic Hyperedges

    The paper introduces SAG, a retrieval system that improves RAG performance by using SQL joins to dynamically discover cross-document associations through event-based hyperedges.

  • Efficient Caching for Multimodal LLM Serving
    QV-PIC: Query-Aware Visual Position-Independent Caching for Efficient RAG Serving

    QV-PIC is a query-aware caching framework that recovers lost textual details in visual inputs to improve RAG latency and quality.

  • Improving Complex Question Answering with Graphs
    KGCaRe: Explainable Complex Conditional Question Answering using Automatic Knowledge Graph Construction and Context Retrieval with LLMs

    KGCaRe enhances complex conditional reasoning in language models by combining structured knowledge graph lookups with traditional document retrieval.

  • Improving Agent Memory with Affective Awareness
    PsychoAgent: An Affect-Sensitive Cognitive Architecture for Conflict-Aware Memory in LLM Agents

    PsychoAgent introduces an affect-aware memory architecture that helps LLM agents retrieve contextually relevant experiences for better decision-making under conflict.

  • Optimizing RAG Latency via Cached Information Nuggets
    CoinRAG: Contextualized Information Nugget KV Cache Reuse for Long-Context RAG

    CoinRAG reduces RAG latency and computational redundancy by precomputing and reusing specific information nugget representations within the model KV cache.

  • Using RAG for Better Action Selection
    Vector Search As Nearest Neighbor Matching: RAG-based Policy Learning in Causal Inference

    The paper introduces a causal inference framework to improve how RAG systems select actions by treating vector search as a nearest neighbor matching process.

  • Search Agents Directly Querying Raw Text
    GrepSeek: Training Search Agents for Direct Corpus Interaction

    GrepSeek replaces traditional vector-based search indices with an agent that interacts directly with raw corpus files using shell commands.

  • Comparing Multimodal Pipelines for Document Retrieval
    Evaluating Modern RAG: Textual, Multimodal, Dense, and Late Interaction Pipelines

    The paper evaluates various retrieval-augmented generation pipelines, finding that multimodal vision-based approaches significantly outperform text-based methods despite introducing higher latency and storage costs.

  • A Bayesian Model for RAG Evaluation
    The RAT: A Unified Bayesian Model for RAG Evaluation

    The researchers developed a Bayesian framework that decomposes RAG system performance into distinct stages to reveal hidden behavioral differences between configurations.

  • Attributing Failure Points in Agentic RAG
    When Failures Propagate: Causal Failure Attribution in Agentic Retrieval-Augmented Generation

    The paper introduces an interventional benchmark to pinpoint the specific hop in a multi-hop agentic retrieval chain where a failure originated.

  • Structuring Entities for Better Document Retrieval
    EnSI-RAG: Entity-Structure-Indexed Retrieval-Augmented Generation for Long-Document Question Answering

    EnSI-RAG improves long-document question answering by indexing documents based on structured entity relationships rather than simple text chunks.

  • Detecting Misinformation in Generative AI Systems
    Trustworthy RAG: An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems

    The paper introduces an agent that evaluates Retrieval-Augmented Generation outputs by combining document screening and factual verification to block poisoned data and instruction injection.

  • Authority Aware RAG for Parliamentary Transcripts
    Who Speaks Matters: Authority-Aware Multi-View RAG over Italian Parliamentary Proceedings

    The paper introduces ParliamentRAG, a system that improves retrieval accuracy in parliamentary transcripts by weighting speaker authority based on query relevance and professional background.

  • Curated RAG Systems Outperform Frontier LLMs
    A corpus-specific clinical RAG system matches or outperforms newer frontier LLMs on HealthBench

    Researchers developed VITA, a domain-specific retrieval-augmented generation system that achieves superior performance on clinical tasks by prioritizing curated local data over generic model scale.

  • Detecting Poisoned RAG Content via Attention
    When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse

    The researchers developed D-SCAN, a method to detect malicious documents injected into RAG pipelines by identifying specific anomalies in how the model distributes its attention.

  • Automated Risk Assessment for IT Changes
    SENTRY: Deterministic, Intelligent Risk Assessment for IT Change Management

    SENTRY replaces subjective change management questionnaires with a machine learning pipeline that uses gradient boosted trees and retrieval augmented generation to predict risk.

  • Attributing Failure Points in Agentic RAG
    When Failures Propagate: Causal Failure Attribution in Agentic Retrieval-Augmented Generation

    The paper introduces an interventional benchmark to pinpoint the specific hop in a multi-hop agentic retrieval chain where a failure originated.

  • Structuring Entities for Better Document Retrieval
    EnSI-RAG: Entity-Structure-Indexed Retrieval-Augmented Generation for Long-Document Question Answering

    EnSI-RAG improves long-document question answering by indexing documents based on structured entity relationships rather than simple text chunks.

  • Improving Retrieval Accuracy with SQL Hyperedges
    SAG: SQL-Retrieval Augmented Generation with Query-Time Dynamic Hyperedges

    The paper introduces SAG, a retrieval system that improves RAG performance by using SQL joins to dynamically discover cross-document associations through event-based hyperedges.

  • Improving Patent Matching with Self-Knowledge Extraction
    Self-Knowledge Retrieval Augmented Generation Framework for Patent Matching

    The paper introduces a framework that improves patent matching accuracy by using an LLM-driven process to mine technical entities and construct hierarchical ontologies for enhanced query retrieval.