Key term
- Published 22 November 2026
- Last reviewed 22 November 2026
- 3 min read
What is RAG, in plain terms?
RAG, short for retrieval-augmented generation, makes an AI assistant look up passages from your own documents first and then write its answer from them. It lets a general model answer from material it was never trained on.

AWS describes it as having a model reference an authoritative knowledge base before it responds, without retraining the model. The idea was set out in a 2020 research paper that paired a language model with an external search index.
How does RAG work?
Four steps, in the order AWS describes them. The first two happen once and are repeated when documents change. The last two happen at every question.
- 1
Collect
Your documents, databases or other sources are gathered, in AWS’s words external data outside the model’s training.
- 2
Index
An embedding model turns the text into numbers, which are stored in a vector database that can be searched by meaning.
- 3
Retrieve
The question is converted the same way and matched against the index. The best passages are added to the prompt.
- 4
Answer
The model writes a reply from those passages. A good system also shows which documents it used.
Why does RAG decide a purchase or a risk?
Three things separate a useful system from a risky one.
- Permissions. Microsoft says opening private content to LLMs requires granular access control, with the example that finance data should stay with the finance team even when an executive asks the chatbot. Ask whether the system checks each person’s existing access.
- Retrieval quality. Google Cloud notes that if the retrieved information is irrelevant, the answer could be grounded but off-topic or incorrect. Providing facts to the model can mitigate made-up answers, in its words; it does not claim to eliminate them.
- Where the data goes. The NCSC’s secure AI development guidelines aim for systems that work without revealing sensitive data to unauthorised parties. If documents hold personal data, UK GDPR applies. This is not legal advice.
RAG does not retrain the model and does not check that your documents are right. If a policy exists in three versions, the assistant can quote the wrong one. We think tidying the source documents is the cheapest improvement available. A file can also carry hidden instructions, known as indirect prompt injection.
What should you ask a supplier?
| Ask | A good answer sounds like | Why it matters |
|---|---|---|
| Does it respect our existing permissions? | Yes, per user, and here is how it is tested. | Stops a junior seeing a director’s files. |
| Does every answer cite its source documents? | Yes, with a link to the passage used. | Lets a person check before acting. |
| Which documents are indexed, and how often is the index updated? | A list we control, refreshed on a stated schedule. | Old documents produce old answers. |
| Where are documents and the index stored? | Named locations and a data processing agreement. | It decides your UK GDPR position. |
| What does it do when it finds nothing relevant? | It says so, rather than guessing. | A confident wrong answer is the main risk. |
A fuller explanation, with a worked setup, is in AI that answers from your own documents. The risk of wrong answers is covered in AI hallucinations at work.
How can you test one before you buy?
The wider question of what staff paste into AI tools is covered in what leaves your building when staff use an AI tool.
Questions people ask
It is an AI assistant that looks things up before it answers. When you ask a question, the system searches your documents for the most relevant passages and gives them to the language model, which writes a reply from them. It is why such an assistant can answer questions about your own policies and files.
No. Training changes the model itself. RAG leaves the model unchanged and supplies your documents at the moment of the question. That makes it easier to update, since you change the documents rather than the model, and it lets answers point back to the source.
It reduces the problem but does not remove it. Google Cloud says providing facts can mitigate made-up answers. If retrieval picks the wrong passage, or the documents are out of date, the answer can still be wrong. Ask for citations so a person can check.
It depends on the supplier and set-up. Check where documents and the search index are stored, who can access them, and whether answers respect each person’s existing permissions. If the documents contain personal data, you need a data processing agreement with the supplier.
Further reading
- AWS: What is Retrieval-Augmented Generation?
Definition, benefits and the collect, embed, store flow. Supplier documentation. Free.
- Lewis et al.: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
The 2020 paper that named RAG. Research paper, revised April 2021. Free.
- Microsoft Learn: Retrieval-augmented generation overview (Azure AI Search)
Definition, access control and citation tracking. Supplier documentation. Free.
- Google Cloud: Retrieval-augmented generation
Definition, grounding and the effect of retrieval quality. Supplier documentation. Free.
- NCSC: Guidelines for secure AI system development
Security as a requirement across the system life cycle, 27 November 2023. Free.
AIforCompanies · https://aiforcompanies.co.uk/insights/what-is-rag-in-plain-terms
Have a problem this does not solve?
Book a discovery call. Tell us what is slowing the business down, and we will say what we would build and whether it is worth doing.