MethodScaling up

Retrieval-Augmented Generation (2020): looking facts up first

Event date

Patrick Lewis and colleagues proposed retrieval-augmented generation, usually shortened to RAG. A generator model reads passages fetched by a trained retriever before it answers, so that knowledge can be looked up rather than stored only in the model's weights.

Milestone 11 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Open domain QA tasks where RAG set a new best result, per the authors
3arxiv.org
arXiv v1 submission date
22 May 2020arxiv.org

The problem it addressed

Large pretrained language models keep factual knowledge inside their parameters. The paper points out that this makes it hard to access that knowledge precisely, hard to show where an answer came from, and hard to update the model when facts change. As a result, such models lagged behind task specific systems on knowledge intensive tasks.

Earlier work had added retrievable memory to models, but only for extractive tasks, where the answer is a span copied from a document. The authors framed the goal as giving a model differentiable access to explicit memory, so that retrieval and generation could be trained together.

Sources: arxiv.org

How RAG works

RAG combines two parts. The parametric memory is a pretrained sequence to sequence model, which writes the answer. The non-parametric memory is a dense vector index of Wikipedia, searched by a pretrained neural retriever. Given a question, the retriever finds relevant passages and the generator conditions on them while producing text.

The authors compared two variants. One uses the same retrieved passages for the whole output. The other can draw on different passages for each token it generates. A pretrained neural retriever scores passages from the index against the question, which means the knowledge base can be swapped or refreshed independently of the generator.

Sources: arxiv.org

Results and what followed

The paper reported state of the art results on three open domain question answering tasks, ahead of parametric only sequence to sequence models and of task specific retrieve and extract systems. On language generation tasks, its output was judged more specific, diverse and factual than a parametric only baseline. The work was accepted at NeurIPS 2020.

The pattern of fetching documents and placing them in the model's input became a standard way to ground answers in current or private data. Modern systems typically use a vector database and embeddings for the retrieval step, and many add reranking or hybrid search. The paper's own evaluation covered both question answering and language generation, so the method was tested as a general text generator and not only as a search tool.

Sources: arxiv.org

Why it mattered

  • It separated what a model knows how to do from what it knows, so facts could be updated by changing an index instead of retraining.
  • It gave answers a visible source, which supports citation and checking.
  • It named a pattern that later products used to reduce hallucination and to connect models to company documents.

Questions

What is retrieval-augmented generation?
It is a method in which a model first retrieves relevant passages from an external collection and then generates an answer using them. The term comes from a 2020 paper by Patrick Lewis and colleagues.
Who invented RAG?
The paper that introduced the term was written by Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni and eight co-authors, and was posted to arXiv on 22 May 2020.
Why is RAG used?
The authors framed it as a way to give a model precise access to knowledge, to provide provenance for outputs and to make knowledge easier to update.

About this page

Part of our LLM history timeline. The event happened on 22 May 2020; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.