# Retrieval-augmented generation (RAG)

> A method where an AI system first searches a collection of documents for relevant passages, then writes its answer from what it found.

- Who uses it: Power users
- How settled: Still settling (agreement score 58/100, higher means more agreement). Anthropic, Google and Microsoft use the term the same way while OpenAI says retrieval or file search, and it overlaps heavily with grounding and with the searches agents run on their own.
- Last updated: 2026-11-12

## What it is

Retrieval-augmented generation answers in two steps, **search first, then write**: the tool searches a collection of documents for passages that match the question, then hands those passages to a [Large language model](https://www.olmstedlabs.com/dictionary/large-language-model) (LLM) to write the answer from. It's like an assistant who pulls the five relevant files from the archive instead of reading the whole archive, which lets a tool work with far more material than fits in its [Context window](https://www.olmstedlabs.com/dictionary/context-window). It is one common way to achieve [Grounding](https://www.olmstedlabs.com/dictionary/grounding), and most "ask questions about our internal docs" tools work this way.

## Keeping it straight

### How you'll hear it

"Their demo says the chatbot uses RAG over our help center, so it should only answer from our articles."

People also say RAG or knowledge retrieval.

### Not to be confused with

[Grounding](https://www.olmstedlabs.com/dictionary/grounding): Grounding is the goal of tying an answer to sources you can check. Retrieval-augmented generation is one method for getting there, by searching a document collection before answering; grounding can also come from a web search or a file you attach directly.

## The honest part

A vendor saying "RAG" tells you the shape of the system, not how good its search is. It can retrieve the wrong passage or miss the right one, then answer confidently from what it got, and it is only as current as the documents behind it, so outdated docs mean outdated answers. It's a builder's term: most employees will never need to say it, but they will hear it in vendor demos, and the useful follow-up questions are what it searches, how fresh that is and whether it cites.

## Your move

What this looks like in your work, and how to handle it.

### People and HR

When HR rolls out a policy chatbot that searches the handbook, test it with five questions you know the answers to, including one covered only by last month's update. You learn whether it retrieves the current page or an old one before employees rely on it.

### Finance

In a tool that searches your finance policy library, ask about the expense approval threshold and check which document it cites. If it pulls a superseded policy, the fix is removing the old file from the library, not rewording your question.

### Sales

When trialing a "chat with your sales content" tool, ask it about a pricing change that is only in last week's deck. It should search the library, find that deck and return the new price with a citation; if it cites an old deck instead, ask the vendor how often the content is refreshed.

### Marketing

Ask your team's knowledge base how the logo may be used on partner materials. It searches the brand folder and returns rules with a citation; if the citation is the 2022 guide, remove that file so future answers come only from the current one.

### Operations

When a project's files outgrow what the AI can read at once and the tool switches to searching them, ask about a specific procedure and have it quote the passage it used. If the quote comes from the wrong section, name the document in your question.

### Legal

In a tool that searches your contract repository, ask which agreements contain a particular clause and request the clause text with each result. Spot-check two against the originals, since a search can miss a contract that phrases it differently.

### Customer Support

When the help-center bot gives a wrong answer, find the article it retrieved. Usually that article is outdated or conflicts with another one, and fixing the article fixes every future answer that draws on it.

## In your tools

- Claude: [RAG for Projects](https://support.claude.com/en/articles/11473015-retrieval-augmented-generation-rag-for-projects)
- ChatGPT: [Retrieval and file search (OpenAI API)](https://developers.openai.com/api/docs/guides/retrieval) (closest equivalent)
- Gemini: [File Search (Gemini API)](https://aistudio.google.com/docs/file-search)
- Google Cloud: [RAG Engine](https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/rag-engine/rag-overview)
- Microsoft: [RAG in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/retrieval-augmented-generation-overview)

## Read next

- [Grounding](https://www.olmstedlabs.com/dictionary/grounding): Connecting an AI's answers to specific trusted sources, such as search results or your company's documents, so they can be checked.
- [Agentic](https://www.olmstedlabs.com/dictionary/agentic): Describes AI that can take some steps toward a goal on its own, rather than only answering. It comes in degrees, not yes or no.
- [Connector](https://www.olmstedlabs.com/dictionary/connector): A ready-made link that lets an AI tool read from, or act in, another app such as your email, shared drive or sales system.

## How we scored it

- Vendor alignment: 17/25
- Usage consistency: 14/25
- Definition stability: 14/25
- Clear boundaries: 13/25
- Total: 58/100
- Trend: Holding steady
- Method: https://www.olmstedlabs.com/dictionary/methodology

Missing a word? Suggest one: https://www.olmstedlabs.com/dictionary/suggest

## What changed

- 2026-11-12: Entry created.

Source: https://www.olmstedlabs.com/dictionary/retrieval-augmented-generation
