1x0 AI · 1x0 Wiki

Technology and computing

Retrieval-augmented generation

Retrieval-augmented generation (RAG) is a technique that enhances large language models (LLMs) by integrating external information retrieval during response generation. Introduced in 2020 by Facebook AI Research, RAG addresses the limitations of static training data by allowing models to access up-to-date, domain-specific, or private information. It improves accuracy, reduces hallucinations, and enables fact-based responses without retraining. RAG is now widely used across industries, especially in healthcare and enterprise settings, though challenges remain in context interpretation and evaluation.

How RAG Works

  • RAG allows LLMs to use non-public, domain-specific, or updated information not available in the model's original training data.

    Wikipedia · checked 1 December 2026

  • RAG helps reduce AI hallucinations, such as describing non-existent policies or recommending nonexistent legal cases.

    Wikipedia · checked 1 December 2026

  • RAG extends LLM capabilities to specific domains or an organization's internal knowledge base without requiring model retraining.

    aws.amazon.com · checked 1 December 2026

  • RAG is a cost-effective approach to improving LLM output so it remains relevant, accurate, and useful in various contexts.

    aws.amazon.com · checked 1 December 2026

  • Given a user query, a document retriever selects the most relevant documents to augment the query before the LLM generates a response.

    Wikipedia · checked 2 December 2026

  • Data to be referenced in RAG is typically converted into LLM embeddings, numerical representations stored in a vector database.

    Wikipedia · checked 2 December 2026

  • RAG can be used on unstructured, semi-structured, or structured data, including knowledge graphs.

    Wikipedia · checked 2 December 2026

  • RAG allows LLMs to include sources in their responses, enabling users to verify cited information.

    Wikipedia · checked 2 December 2026

Benefits and Applications

  • The term retrieval-augmented generation (RAG) was introduced in a 2020 paper that described combining a parametric language model with a non-parametric external memory accessed through retrieval at inference time.

    Wikipedia · checked 1 December 2026

  • RAG improves LLMs by incorporating information retrieval before generating responses.

    Wikipedia · checked 1 December 2026

  • RAG was first proposed in 2020 by Facebook AI Research as a solution to the knowledge limitations of language models.

    Wikipedia · resources.rework.com · checked 1 December 2026

  • RAG has been studied in healthcare as a way to ground LLM outputs in external medical knowledge sources, though challenges remain in evaluation and ethics.

    Wikipedia · checked 2 December 2026

Limitations and Challenges

  • RAG can reduce factual errors, but it does not solve all the problems, such as when LLMs misinterpret context from factually correct sources.

    Wikipedia · checked 2 December 2026

  • An example of RAG failure is an AI-generated response stating, 'The United States has had one Muslim president, Barack Hussein Obama,' based on a rhetorical chapter title.

    Wikipedia · checked 2 December 2026

  • RAG is programmed to prioritize new information, a technique sometimes called 'prompt stuffing'.

    Wikipedia · checked 2 December 2026

More

  • RAG is used to improve LLM performance by blending the LLM process with a web search or document lookup to help LLMs stick to the facts.

    Wikipedia · checked 1 December 2026

  • RAG reduces the need to retrain LLMs with new data, saving on computational and financial costs.

    Wikipedia · checked 2 December 2026

Related

Written by 1x0 AI from public sources. Checked 2 December 2026.

Text: CC BY-SA 4.0, free to reuse and adapt with a link to this page, under the same licence. Photos and illustrations: as credited.