What is RAG? Retrieval augmented generation explained for businesses
Checked against official sources on · How we verify
Checked against official sources on · How we verify
In short: RAG (retrieval augmented generation) is a way of making an AI model answer from your own documents. Before replying, the system searches your manuals, policies or contracts, picks the relevant passages and asks the model to answer using only those, with references. It's the standard approach for company assistants because your documents can change without retraining anything.
The term comes from a 2020 research paper by Lewis and colleagues at Facebook AI Research. Since then it has become the most common way businesses connect large language models to their own knowledge. This guide explains it without jargon, from the point of view of someone deciding whether to invest in it.
In short: think of an open-book exam. A model on its own answers from memory, which is general and sometimes wrong. With RAG it first looks things up in your documents, then answers, and can tell you which page it used.
In short: documents are split into short passages, indexed by meaning, searched for each question, and the best passages are given to the model to write the answer. Most of the quality is decided in the first two steps, not by the model.
In short: use RAG when the AI must know your facts, fine-tuning when it must adopt a style or format, and a plain tool when general knowledge is enough. For most SME use cases, RAG is the right first step.
| ChatGPT as it is | RAG | Fine-tuning | |
|---|---|---|---|
| What it solves | General writing and reasoning | Answers based on your documents | A specific style, format or narrow task |
| Knows your company's facts | No | Yes, from the documents it can reach | Partly, and goes stale |
| Updating information | Not applicable | Update the document | Retrain the model |
| Shows sources | No | Yes | No |
| Typical effort | Low | Medium: mostly document work | High: training data and retraining |
A common misconception is that you need to "train the AI on your data". For facts that change, such as prices, policies or procedures, that's usually the wrong tool: RAG keeps the facts in documents you control.
In short: RAG works best where people waste time looking for answers that already exist somewhere in the company. The four patterns below cover most SME projects.
In short: almost never because of the model. They fail because of the documents: outdated versions, scanned PDFs nobody can read, access rights ignored, and no one checking whether the answers are right.
In short: build a test set of 50–100 real questions with the correct answers, written by the people who know the subject. Run it before launch and after every change, and track three numbers.
| Metric | What it checks | How to read it |
|---|---|---|
| Correct answers | Share of test questions answered correctly and completely | The main number; agree the target before starting |
| Correct sources | Share of answers citing the right document | If this is low, fix retrieval before touching the model |
| Honest "I don't know" | Share of out-of-scope questions where the assistant declines | A good sign: it means it isn't inventing |
An assistant that says "I can't find this in the documents" is doing its job. An assistant that always has an answer is the one to worry about.
In short: in the example below, an internal RAG assistant for a 20-person team saves about 880 hours a year. At €40 an hour that's €35,200, against one-off costs of €15,200 and running costs of €2,400 a year: payback in about 6 months.
The setup (hypothetical, not a quote). A 20-person team spends on average 30 minutes a day looking for information in manuals, shared folders and old emails: measure your own figure, this is an assumption. The assistant cuts that time by 40%. 220 working days, €40 average hourly cost.
| Item | Calculation | Result |
|---|---|---|
| Time saved per person | 30 min × 40% | 12 min/day |
| Time saved, whole team | 12 min × 20 people × 220 days ÷ 60 | 880 hours/year |
| Value of time saved | 880 h × €40 | €35,200/year |
| Build (assumed) | supplier quote | €12,000 |
| Document clean-up | 80 internal hours × €40 | €3,200 |
| One-off costs | €12,000 + €3,200 | €15,200 |
| Running costs (assumed) | model usage + hosting + maintenance, €200 × 12 | €2,400/year |
| Payback | €15,200 ÷ (€35,200 − €2,400) × 12 | about 6 months |
The number that matters most is the share of search time actually saved. At 20% instead of 40%, the value halves to €17,600 a year and payback stretches to about 12 months. Measure today's search time first: our guide to AI implementation costs and ROI explains how.
In short: with RAG your documents are sent, a passage at a time, to the model that writes the answers. Choose where that happens, keep access rights per user, and treat any personal data in the documents under GDPR.
In short: an internal assistant over your own documents is a custom build, so the relevant support is usually Digital Process Innovation, with Digital Discovery to scope it first. A ready-made tool with document search can fit the Grow Digital Voucher instead.
With a grant. If the €15,200 one-off cost in our example is approved for 50% funding before you start, your cost falls to €7,600 and payback from about 6 to under 3 months.
Eligibility, sequence and mistakes to avoid in our guide to AI grants for Irish SMEs.
In short: one use case, a curated set of documents with an owner, a test set of real questions and a clear rule for what the assistant does when it doesn't know.
Retrieval augmented generation: the system retrieves relevant passages from your documents and uses them to generate the answer, usually with references to the sources.
RAG gives the model your documents at the moment it answers, so updating a document updates the answers. Fine-tuning changes the model itself, which suits style or format but goes stale for facts that change.
It greatly reduces the problem but doesn't eliminate it. Instructing the model to answer only from the retrieved passages, showing sources and testing with real questions are what keep errors low.
Scanned PDFs must be converted to text first (OCR), and tables need checking after conversion. Spreadsheets usually work better when queried as data than when treated as text.
It depends on the setup. Check where the vendor processes data, whether it's used for training, and make sure the assistant respects the same access rights as your document storage.
Every rule, date and figure in this guide was checked against these sources on 26 November 2026.
This article is for information only and is not legal advice.