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.
Key numbers
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?
Who invented RAG?
Why is RAG used?
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.