Retrieval-augmented generation (RAG) is a way of building an AI system so it looks up information in a chosen set of documents and uses what it finds to write its answer, instead of answering only from memory.
An AI model learns from a huge amount of text, and then its learning stops. After that, it knows nothing about your company's policies, last week's contract, or this morning's price list. Retrieval-augmented generation, or RAG, is the usual fix. When someone asks a question, the system first searches a set of documents the organization chooses, then gives what it finds to the model to use in its answer. The US National Institute of Standards and Technology (NIST) describes it as a model "paired with a separate information retrieval system."1
An everyday example: a new employee asked about the refund policy doesn't guess. They open the handbook, find the right page, and answer from it. IBM Research makes the same point with a picture from school: "It's the difference between an open-book and a closed-book exam."2
The term was coined in a 2020 research paper, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," first posted on May 22, 2020, by Patrick Lewis and eleven coauthors.3 Lewis's coauthors came "from the former Facebook AI Research (now Meta AI), University College London and New York University."4 The paper described "models which combine pre-trained parametric and non-parametric memory for language generation." In plain words, that means what the model learned in training, plus a library it can search. In the paper, that library was Wikipedia.3 The authors reported "more specific, diverse and factual language" than a model working from memory alone.3
Lewis has said he wishes the name were better: "We definitely would have put more thought into the name had we known our work would become so widespread." When it came time to write the paper, he said, "no one had a better idea."4 Since then the word has grown. It started as one specific research design. Now it covers almost any product that searches company documents before an AI writes an answer.
All four agree on the core idea: look something up first, then answer. They differ on what they stress. NIST is neutral and describes how the system is built. Its definition comes from a NIST publication on attacks against AI systems, a reminder that the library itself can be tampered with.1 IBM, AWS, and NVIDIA sell these products, and their definitions talk up the benefits: "most accurate, up-to-date," "authoritative," "accuracy and reliability."254
The strongest view against those benefit claims comes from Stanford researchers. They tested legal research tools that had been promoted as "eliminating" or "avoid[ing]" made-up answers.6 They found the tools "each hallucinate between 17% and 33% of the time" and concluded that "the providers' claims are overstated."6 (To hallucinate is to state something false with confidence; see [hallucination](/definitions/hallucination).) The fair reading: RAG can reduce errors, but it does not remove them. An answer is only as good as the documents found and how well the model reads them. We are confident in this reading, because the original paper, the vendors, and the critics all agree that grounding helps and none of them shows it is perfect.
Legal research tools, tested. In May 2024, the Stanford team tested AI research tools from LexisNexis and Thomson Reuters that rely on RAG.6 The result, quoted above, became a widely cited warning to lawyers and anyone else buying "grounded" AI. The tools tested were 2024 versions, and such products change over time.6
Agents need better retrieval. In January 2026, Fortune reported that Databricks had released a new retrieval design for AI agents. The article noted that "Since 2023, the standard way to do this has been with some kind of RAG, or retrieval augmented generation, process," and that "RAG is not a panacea."7 The accuracy gains Databricks reported came from the company's own tests, so treat them as claims, not independent findings.7
If a vendor tells you its AI is "grounded" in your documents, it almost certainly means RAG. That is good news, because answers can come from your current policies, and NIST notes the knowledge can be updated without retraining the model.1 But it moves the hard question somewhere else. Which documents can the AI search? Who keeps them current? Who checks the answers? An [AI agent](/definitions/ai-agent) that searches stale or wrong files will be confidently wrong, and the Stanford results show that even good sources don't guarantee good answers.6 Treat the document library as something people own and maintain, and keep a person checking answers that matter (see [human in the loop](/definitions/human-in-the-loop)).
One question to ask your team: Which documents can our AI tools search today, who is responsible for keeping them accurate, and how often do we check that the answers actually match them?![]()