# What is retrieval augmented generation (RAG)? A plain explanation with a support example

Retrieval augmented generation lets AI look up your documents before it answers. See how RAG works, with a customer support example and its limits.

Published 2026-11-15. Updated 2026-11-15. Source: https://beereau.com/blog/what-is-rag

> **Short answer:** **Retrieval augmented generation (RAG)** is a technique where an AI first looks up the most relevant passages from your own documents, then writes its answer using those passages. It keeps answers tied to your real policies instead of the AI's general memory. For customer support, it is the difference between a vague reply and one that quotes your actual return window.

An AI language model knows a lot about the world and nothing about your business. It has never read your shipping policy or seen last week's price change. RAG is the bridge: it hands the model the right pages at the moment it needs them.

## What does retrieval augmented generation mean?

The name describes its three parts.

- **Retrieval:** searching your documents for the passages that relate to the question.
- **Augmented:** adding those passages to the question before the AI sees it.
- **Generation:** the AI writing the answer, now with the facts in front of it.

If you are new to the engine doing the writing, [what is a large language model](/blog/what-is-an-llm) gives the background.

## How does RAG work, step by step?

Here is the flow, using a customer question.

1. **A customer asks:** "Can I return a sale item after 30 days?"
2. **The system searches** your documents and finds the returns policy section on sale items and the section on return windows.
3. **It builds a prompt** that contains the question plus those two passages and an instruction: answer only from these passages, otherwise say you are unsure.
4. **The AI writes a reply** that reflects your policy.
5. **A person or reviewing agent checks it** when the topic is sensitive.

The search step usually works by meaning, not exact keywords. A question about "sending something back" still finds the section titled "Returns."

## What is a support example of RAG in practice?

Example: a small store keeps four documents: returns policy, shipping policy, sizing guide and warranty terms.

| Customer message | Passages retrieved | Safe reply behavior |
|---|---|---|
| "Do you ship to Canada?" | Shipping policy, international section | States the policy and delivery estimate from the document |
| "Does this jacket run small?" | Sizing guide | Quotes the sizing guidance |
| "My blender died after 14 months" | Warranty terms | Cites the warranty period and asks for an order number |
| "Can you give me 40% off?" | Nothing relevant | Says it cannot decide that and routes to the owner |

The last row matters most. A well-built RAG setup should recognize when nothing in the documents covers the question and escalate rather than guess.

## Why is RAG better than asking the AI directly?

Three reasons make it the default choice for business use.

### Answers come from your sources

Because the passages are placed in front of the model, the reply is built from your wording. That cuts down on invented details, a problem described in [what is AI hallucination](/blog/what-is-ai-hallucination).

### Updating is easy

Change the document and the next answer changes. There is no retraining. When you update your refund window on Monday, Tuesday's replies reflect it.

### You can check where an answer came from

Many setups can show which passage was used, so a reviewer can verify a claim in seconds instead of guessing why the AI said it.

## RAG or fine-tuning: which should you choose?

**Fine-tuning** means adjusting the model itself by training it on examples. It is better at teaching a consistent style or format. It is a poor way to teach changing facts, because the facts get baked in and are hard to update. The comparison is explained in [what is fine-tuning](/blog/what-is-fine-tuning).

For a small business, the practical rule is simple: facts go in documents (RAG), tone goes in written instructions. You rarely need to touch the model.

## What are the limits of RAG?

RAG is not magic. Plan for these problems.

- **Garbage in, garbage out.** If two documents disagree, the AI may quote either one. Clean up contradictions first.
- **Missing coverage.** If your policy has no answer, the system has nothing to retrieve. Add the answer or route it to a person.
- **Wrong passage retrieved.** Search can occasionally pull a related but irrelevant section. Short, focused documents help.
- **Misreading.** The AI can still paraphrase a rule incorrectly, especially with exceptions and conditions.
- **Stale documents.** The system is only as current as your files.

That is why money and policy exceptions should still wait for a person's approval; see [what does human in the loop mean](/blog/what-is-human-in-the-loop).

## How do you prepare documents for RAG?

Good source material does most of the work.

1. **Write one topic per section,** with a clear heading such as "Returns on sale items."
2. **State rules plainly,** including numbers and exceptions: "30 days from delivery, except final-sale items."
3. **Remove duplicates and old versions.** Keep one source of truth.
4. **Add approved example replies** for common questions so the tone stays consistent.
5. **Date your documents** so you know when each was last checked.

Our guide to [building an AI support knowledge base](/blog/ai-support-knowledge-base) walks through this in more detail, and [using your company website as a knowledge base](/blog/company-website-as-knowledge-base) shows a quick way to start.

## Does beereau use RAG?

beereau starts from your website: you share the address, the Head of the team reads it and drafts what you sell, who you serve and how you talk, and you check it. That brief is the grounding your agents work from, and you stay in control because every decision waits for your approval by default.

## How do you test a RAG setup?

Before trusting it, run a quick check.

1. Collect 20 real customer questions.
2. Ask the system each one and note whether the answer matches your policy.
3. Include five questions your documents do not cover. The right behavior is to say so and escalate.
4. Fix the documents where it failed, then rerun.

Repeat monthly, or whenever a policy changes.

## Next step

Pick the one document that causes the most customer questions, usually returns or shipping, and rewrite it as short, plain sections with exact numbers. That single cleanup improves any AI that uses your content. Then see how [AI agents for small business](/ai-agents-for-small-business) put those documents to work inside a team you supervise.

## Frequently asked questions

### What is RAG in AI?

RAG stands for retrieval augmented generation. The system first searches a set of your documents for the passages most relevant to a question, then gives those passages to the AI so it writes an answer based on them.

### Why is RAG used instead of just asking the AI?

A plain AI model answers from general training and can invent details about your company. RAG ties the answer to your real documents, which makes it more accurate and easier to keep current.

### Does RAG stop AI hallucinations completely?

No. It reduces them by grounding answers in your documents, but the AI can still misread a passage, or answer from a document that is outdated or wrong. Good source material and review still matter.

### What is the difference between RAG and fine-tuning?

RAG looks up information at the moment of the question, so updating a document updates the answers. Fine-tuning changes the model itself using examples, which suits style or format more than facts. Most small businesses start with RAG.

### What documents work best for RAG?

Clear, current, well-organized text works best: policies, help articles, product descriptions and approved past replies. Contradictory or outdated files lead to contradictory answers.

### Do I need a developer to use RAG?

Building it from scratch takes technical work, but many tools handle it for you. You usually only need to supply the documents and keep them up to date.

### Is RAG the same as a knowledge base?

A knowledge base is the collection of documents. RAG is the method an AI uses to search that collection and write an answer from it.
