RAG (retrieval-augmented generation) is a technique where an AI first retrieves relevant passages or records from your own sources, then writes its answer from them, usually with citations. It is the standard way to get an AI to answer from your own documents, policies and past work, rather than only from what it absorbed during training.

Why it matters

Left to itself, a language model answers from a general pattern of everything it was trained on, which does not include your company’s policies, contracts or last quarter’s figures. RAG closes that gap without retraining the model: at the moment a question is asked, the system searches your own material, hands the most relevant passages to the model, and asks it to answer from those specifically. The result is an answer grounded in something checkable, with a citation, rather than a fluent guess.

This is also the practical foundation of an AI knowledge base: the useful part is rarely the model, it is having your documents properly indexed, searchable and permission-aware so RAG has something reliable to retrieve from in the first place.

How it works

A production RAG system generally runs five steps: documents are parsed and split into sensible chunks; each chunk is turned into an embedding and stored in a vector database (often alongside plain keyword search, known as hybrid search); a question is embedded the same way and matched against the closest chunks; those chunks are handed to the model as context; and the model writes an answer from them, ideally citing which passage it used. Permissions are checked at query time, so a person only ever gets an answer built from documents they are allowed to see.

Examples

A knowledge base that answers “what’s our policy on X?” from your own handbook, with the specific paragraph cited. A proposal-drafting agent that finds similar past bids via MCP and drafts sections grounded in what actually worked before, rather than inventing plausible-sounding boilerplate.

RAG versus fine-tuning

A common early question is whether to use RAG or fine-tune a model on your own data instead. They solve different problems and are often used together.

RAG compared with fine-tuning
QuestionRAGFine-tuning
What it changesWhat the model is shown at question time.The model's own weights, via extra training.
Keeping it currentUpdate the source documents; the next question sees them.Requires retraining or further fine-tuning.
Can it cite its source?Yes, naturally, since it retrieved a specific passage.No; the knowledge is baked in and unattributable.
Best forAnswering from a changing body of documents or data.Teaching a consistent style, format or specialised skill.

Most business knowledge bases need RAG, not fine-tuning, because the material (policies, past work, current figures) changes constantly and answers need to be traceable to a source.

RAG versus GraphRAG

Plain RAG retrieves chunks of text based on similarity. GraphRAG adds a knowledge graph, so an AI can also follow relationships between things rather than only matching wording. Independent benchmark work (GraphRAG-Bench, February 2026) found plain RAG “comparable to or outperforms GraphRAG” on simple, single-passage lookups, while GraphRAG showed a clear advantage on complex, multi-step reasoning and summarising across many sources, at meaningfully higher cost. The practical rule: start with RAG, and only add a graph once your questions genuinely depend on following connections.

Common mistakes

Treating RAG as a single tool rather than a pipeline. Weak results are usually a chunking, indexing or permissions problem, not a model problem.

No permission filtering at query time. Retrieval that ignores who is asking will happily surface a document the person should never have seen.

Skipping citations. An answer with no visible source is much harder to trust and to check, and removes the main advantage RAG has over an ungrounded answer.

Reaching for GraphRAG by default. A graph adds real cost and complexity. Most “look up the right paragraph” questions are answered well by plain or hybrid search.

Frequently asked questions

Can RAG answer from our own documents without making things up?

That is exactly what it is for: it retrieves the relevant passage first and asks the model to answer from it, with a citation, rather than answering from memory alone. It substantially reduces, but does not eliminate, the chance of a wrong answer, which is why citations and permission checks matter.

Does a RAG system show its sources?

A well-built one does, on every answer, because it retrieved a specific passage before writing the answer. If a system cannot show its source, that is usually a sign the retrieval and generation steps have not been wired together properly.

Will it respect document permissions?

Only if permissions are checked at query time, using the identity of the person asking. This is a design decision, not something RAG guarantees automatically, so it is worth confirming explicitly with anyone building one for you.

How is a RAG-based knowledge base kept up to date?

By re-indexing documents as they change, ideally automatically. Because RAG retrieves from the current document set rather than from the model’s training, an updated policy is reflected in answers as soon as it is re-indexed, with no retraining required.

How this connects

Retrieval-augmented generation (RAG) and 4 related terms A small map with Retrieval-augmented generation (RAG) at the centre, linked to Grounding, Vector database, Hybrid search, GraphRAG. Retrieval-augmented generation (RAG)GroundingVector databaseHybrid searchGraphRAG
Illustrative interface

Which approach fits?

Is the data it needs in reasonable order?
Not yet, nobody could tell you where it all is

Fix the data first

Almost every approach below depends on knowing what data you have, where it lives and who owns it. Start there.

Once a short inventory exists, with an owner named for each system that matters, come back and answer again.

Yes, roughly, we know where the key data lives
What do you want AI to do?
Answer questions from documents
Do answers depend on how things connect, who, which, what's affected?
Yes, the connections are the point
Do different people see different documents?
Yes, access varies by person or team

GraphRAG, with permission-aware retrieval

The connections are the point, and different people are allowed to see different documents: the graph and the retrieval layer both need to respect that.

If access is the same for everyone who would plausibly ask, the governance layer adds cost without changing an answer. Use plain GraphRAG.

No, access is roughly the same for everyone who’d ask

GraphRAG on a knowledge graph

Your questions follow connections, who is affected, what links these records, what changes if this policy changes.

If the corpus is mostly "find the right paragraph", a knowledge graph is more than the question needs. Start with RAG.

No, it's mostly the right paragraph
Do different people see different documents?
Yes, access varies by person or team

RAG, with permission-aware retrieval

Retrieval over documents is enough, but different people are allowed to see different documents, so the retrieval layer has to filter by who is asking.

If access is roughly the same for everyone, the permission layer is unneeded complexity. Use plain RAG.

No, access is roughly the same for everyone who’d ask

RAG: retrieval over your documents

The question is answerable from the right paragraph, once it is found, and connections between records rarely matter.

If people keep asking "who else is affected" or "what does this link to", the answers need a graph, not a better search index.

Answer questions about numbers
Do your key numbers have one agreed definition?
No, finance and sales would give different answers

Semantic layer first

Finance, sales and marketing would each give a different number for the same name. Agree the definition once, before automating anything on top of it.

If every team already reads a number the same way, skip straight to governed text-to-SQL.

Yes, we already agree what they mean

Semantic layer + governed text-to-SQL

Definitions are already agreed: the remaining work is letting people ask in plain English against a model that always uses the certified metric.

If the definitions themselves are still contested between teams, text-to-SQL will just automate the disagreement. Settle the definitions first.

Take actions across tools
Are the steps predictable and easy to review?
Yes, a person could check each step in seconds

An agent with MCP connections and a human checkpoint

The steps are predictable enough that a person can review each one in seconds, a genuinely useful place for an agent to act, with a checkpoint before anything leaves draft.

If a reviewer can't tell whether a step is right without redoing the work themselves, the checkpoint is theatre. Start with drafts instead.

No, it varies a lot case to case

Start with an assistant that drafts, not acts

The steps vary a lot case to case, so a person needs to be making the real decisions for now, with AI preparing the draft.

Once the same handful of steps repeat predictably and a reviewer can check them at a glance, an agent with a human checkpoint is worth revisiting.

Write consistently in a house style
Would a tested prompt library with examples do it?
Probably, the style is fairly consistent already

A tested prompt library

The house style is fairly consistent already: a small library of tested prompts and examples, kept up to date, is the cheapest way to get it reliably.

If the style still drifts badly after a genuinely tested prompt library, that is the signal to consider fine-tuning, not the first move.

No, we’ve tried prompting and it still drifts

Fine-tuning: rarely the first step

A genuinely tested prompt library still drifts from the house style, and the cost of fine-tuning and keeping a tuned model current is worth it for the volume involved.

Most style problems are prompt and example problems, not model problems. Try a tested prompt library properly before this.

Sources

  1. GraphRAG-Bench: evaluating GraphRAG against vector RAG. arXiv (2506.05690), February 2026.