Knowledge & RAG
What Is RAG? Retrieval-Augmented Generation for Business (and RAG vs Fine-Tuning)
Retrieval-augmented generation explained for business leaders: how RAG works, when to use it instead of fine-tuning, its limits, and how to measure accuracy.
Quick answer
What is RAG (retrieval-augmented generation)?
Retrieval-augmented generation (RAG) is a technique in which an AI system first searches a trusted set of documents for passages relevant to a question, then uses a language model to write an answer grounded in those passages — ideally citing them. It keeps answers current and specific to your organisation without retraining the model.
Key takeaways
- RAG = retrieve relevant passages from your sources, then generate an answer grounded in them.
- Use RAG when answers must reflect your own, changing knowledge; use fine-tuning to change a model's style or behaviour.
- Retrieval quality and document permissions matter more than the choice of model.
- Measure accuracy on real questions before launch, and let the assistant say 'I don't know'.
How does retrieval-augmented generation work?
A RAG system has two phases.
Preparing the knowledge (once, then kept fresh):
- Collect authoritative sources — policies, procedures, product documentation, past answers.
- Split them into passages and index them for search, usually with embeddings (numeric representations of meaning) plus keyword search.
- Attach permissions so each passage carries the same access rules as its source.
Answering a question (every time):
- Retrieve the most relevant passages the user is allowed to see.
- Augment the model's prompt with those passages and clear instructions.
- Generate an answer that uses only the supplied material and cites it.
The approach was formalised in research by Lewis et al. (2020) and is now the standard way to build an AI knowledge assistant.
RAG vs fine-tuning: which should you use?
| RAG | Fine-tuning | |
|---|---|---|
| What it changes | What the model knows at answer time | How the model behaves (style, format, task skill) |
| Keeping knowledge current | Update the documents — immediate | Retrain — slower and costlier |
| Citations to sources | Natural | Not inherent |
| Respecting document permissions | Yes, at retrieval | Hard — knowledge is baked into the model |
| Best for | Policies, product info, procedures, case knowledge | Consistent tone, specialised formats, narrow classification |
For most business knowledge assistants, RAG is the right starting point. Fine-tuning can complement it later, for example to enforce a house writing style.
Why use RAG? The business benefits
- Grounded answers — responses are tied to your approved sources, which reduces fabricated answers.
- Traceability — citations let staff check the source before relying on an answer.
- Freshness — update a document and the next answer reflects it.
- Access control — people only receive answers from documents they are allowed to read.
- Lower cost of change — no model retraining when knowledge changes.
What are the limitations of RAG?
RAG reduces but does not eliminate errors. Answers can still be wrong when:
- the right passage is not retrieved (poor search, badly structured documents);
- sources conflict or are out of date;
- the model over-generalises from a passage.
Retrieved content can also carry prompt injection — hidden instructions in a document — a risk listed in the OWASP Top 10 for LLM Applications. Good systems filter sources, constrain the model to the supplied context, and decline to answer when the evidence is missing.
How to build a RAG assistant that people trust
- 01
Choose authoritative content
Agree which sources count, who owns them and how they are kept current.
- 02
Engineer retrieval
Combine semantic and keyword search, tune passage size, and enforce permissions.
- 03
Build an evaluation set
Collect real staff questions with approved answers and score accuracy and citation quality.
- 04
Design for 'I don't know'
Instruct the assistant to say when the sources don't support an answer.
- 05
Launch and monitor
Sample answers, collect feedback and track content gaps to fix at source.
What is an AI knowledge base?
An AI knowledge base is a curated, searchable collection of an organisation's documents that an AI assistant uses to answer questions — in practice, the content layer of a RAG system. The difference from a traditional intranet is that staff ask questions in plain language and receive a direct answer with links to the source passages, rather than a list of files to read.
The quality of the knowledge base decides the quality of the answers. Before building, agree which documents are authoritative, who owns each one, and how often it is reviewed — and retire outdated duplicates that would otherwise compete with the current version.
How do you measure RAG accuracy?
Measure the two halves — retrieval and generation — separately, using a test set of real questions with agreed answers:
| Metric | Question it answers | How to check |
|---|---|---|
| Retrieval hit rate | Did search return the passage containing the answer? | Compare retrieved passages with the known source |
| Faithfulness | Is every claim in the answer supported by the retrieved passages? | Reviewer or automated check against the passages |
| Answer correctness | Does the answer match the approved answer? | Reviewer scoring on a simple scale |
| Citation accuracy | Do the citations point to the passages actually used? | Spot-check citations |
| Appropriate refusal | Does it decline when the sources don't contain the answer? | Include unanswerable questions in the test set |
Run the test set before launch and after every change to content, retrieval settings or model.
RAG use cases by team
- Operations — answer process questions from SOPs and policies.
- Customer service — draft replies grounded in product documentation and policy.
- Finance and accountancy — answer questions from firm procedures and guidance; see AI for accountants.
- Legal and professional services — search precedents and internal know-how with matter-level permissions; see AI for professional services and our guide to AI for law firms.
- Healthcare administration — help staff find the right protocol or form quickly; see AI for healthcare.
Connecting the assistant to SharePoint, Google Drive or line-of-business systems is an AI integration task; we build the full assistant as part of our RAG and knowledge assistant service.
Where RAG fits in a wider AI strategy
RAG is often the first production AI capability an organisation deploys, and it becomes a building block for AI agents that need to look things up before acting. If personal data is involved, assess it under UK GDPR first — see our AI governance framework.
Frequently asked questions
Does RAG stop AI hallucinations?
It reduces them by grounding answers in retrieved sources, but does not eliminate them. Evaluation, citations and the ability to decline to answer are still needed.
Is RAG expensive to run?
Costs depend on document volume, how often content changes and how many questions are asked. They are typically estimated during design and scale with usage.
Can RAG work with SharePoint, Google Drive or our intranet?
Yes. Content is connected through those platforms' integration routes, and retrieval should enforce the same permissions as the source.
What is the difference between RAG and a search engine?
Search returns a list of documents. RAG reads the most relevant passages and writes a direct answer grounded in them, with citations.
Sources and further reading
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020) — arXiv
- OWASP Top 10 for Large Language Model Applications — OWASP
- Guidance on AI and data protection — Information Commissioner's Office (ICO)
- Guidelines for secure AI system development — National Cyber Security Centre (NCSC)
Cite this guide
You're welcome to quote or reference this guide with a link to the original:
Lexington Chipunza (2026). What Is RAG? Retrieval-Augmented Generation for Business (and RAG vs Fine-Tuning). Marketbotics. https://marketbotics.co.uk/insights/what-is-rag/
Lexington Chipunza
Lexington writes on AI strategy, AI agents, automation and governance for Marketbotics, drawing on the platforms the team designs and delivers for UK organisations.
Related guides
- AI agents
What Is an AI Agent? A Practical Guide for UK Businesses
A plain-English guide to AI agents: how they work, how they differ from chatbots and RPA, where they deliver value, and how to deploy one safely.
- AI agents
Agentic AI Explained: How It Works, Examples and Risks
What agentic AI is, how agents plan and act with tools, real business examples, orchestration patterns, and the controls UK organisations need to use it safely.
- Governance
AI Governance Framework: A Practical UK Guide and Checklist
A practical AI governance framework for UK organisations: principles, roles, risk tiers, UK GDPR, ISO 42001 and NIST alignment, plus a ready-to-use checklist.
See where AI will pay back first
Book a 30-minute AI ROI consultation. We'll review your priority workflows and estimate the return — no obligation.
