Retrieval-augmented generation for document teams, explained
Many AI writing tools now search a set of documents before they answer. The technique behind this is called retrieval-augmented generation, usually shortened to RAG. Vendors describe it as the answer to invented content. Retrieval-augmented generation for document teams, explained in plain terms, shows what the technique does, where it helps, and why review is still needed.
Where the idea came from
The term comes from a 2020 paper by Patrick Lewis and colleagues, presented at the NeurIPS conference. The authors noted that large pre-trained models store a great deal of knowledge, but “their ability to access and precisely manipulate knowledge is still limited.”1 Their solution was to pair a model with a searchable store of documents.
They described RAG as “models which combine pre-trained parametric and non-parametric memory for language generation.”1 The parametric memory is what the model learned in training. The non-parametric memory, in their experiments, was “a dense vector index of Wikipedia, accessed with a pre-trained neural retriever.” The authors reported that RAG models “generate more specific, diverse and factual language” than a comparable model working from memory alone.
Retrieval-augmented generation for document teams: how it works
In practice, a RAG tool has three steps. First, it takes the user’s question and searches a collection of documents for passages that seem relevant. Second, it places those passages in front of the model along with the question. Third, the model writes an answer that draws on the passages, often with citations to them.
For a document team, the collection might be the organization’s policies, past reports, product manuals, or a set of approved sources. The tool then answers from that collection rather than from whatever the model absorbed in training. That is a real improvement, because the sources are known and can be checked. It also means the tool can answer questions about the organization’s own material, which a general model has never seen.
What RAG does not guarantee
Retrieval can find the wrong passage. Search returns what seems relevant, not necessarily what is correct or current. If the collection contains an outdated policy alongside the current one, the tool may draw on either. It has no way to know which version the organization now follows. Our article on keeping AI-assisted help content current explains why the collection itself needs maintenance.
The model can misuse the right passage. A Stanford study tested legal research tools that retrieve real case law before generating answers. It found that the tools “each hallucinate between 17% and 33% of the time.”2 The cases were real, but the answers built on them were not always right.
The model can overstate what a passage says. Uwe Peters and Benjamin Chin-Yee gave models the text of research to summarize. The summaries “were twice as likely to contain generalized conclusions compared to the original abstracts.”3 Having the source in front of the model does not stop it from stretching the source.
Citations can mislead. The Tow Center for Digital Journalism tested AI search tools that ground answers in live web results. In one test, ChatGPT Search answered incorrectly 134 times out of 200, and it “never declined to provide an answer.”4 A citation beside a wrong answer looks like evidence, which can make the error harder to spot.
Using RAG tools well
Control the collection. Include only current, approved documents, and remove superseded versions. Record what is in the collection and when it was last reviewed. A RAG tool is only as reliable as the documents it searches.
Ask for quoted passages. When the tool answers, ask it to quote the passage it relied on and name its location. A reviewer can then confirm the claim in seconds. Our article on prompts that request citations to supplied sources only describes how to word the request.
Review every answer that matters. RAG reduces invention, but it does not remove it, and it adds the risk of confident answers built on the wrong passage. Our article on grounded generation covers the same limits from a different angle.
Our Editorial AI Assessment tests RAG tools on a client’s own document collections and reports where they can be relied on. Client documents go only into tools the client has approved, and decisions on content remain with the client. A well-kept collection and a steady review habit are what make RAG worth using.
Notes
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela, “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,” Advances in Neural Information Processing Systems 33 (NeurIPS 2020). https://arxiv.org/abs/2005.11401
- Varun Magesh, Faiz Surani, Matthew Dahl, Mirac Suzgun, Christopher D. Manning, and Daniel E. Ho, “Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools,” Journal of Empirical Legal Studies 22 (2025): 216–242. https://law.stanford.edu/publications/hallucination-free-assessing-the-reliability-of-leading-ai-legal-research-tools
- Uwe Peters and Benjamin Chin-Yee, “Generalization Bias in Large Language Model Summarization of Scientific Research,” arXiv:2504.00025, March 28, 2025; penultimate draft of a paper forthcoming in Royal Society Open Science. https://arxiv.org/abs/2504.00025
- Klaudia Jaźwińska and Aisvarya Chandrasekar, “AI Search Has a Citation Problem,” Columbia Journalism Review, Tow Center for Digital Journalism, March 6, 2025. https://www.cjr.org/tow_center/we-compared-eight-ai-search-engines-theyre-all-bad-at-citing-news.php