01
Why it matters in a business
RAG matters because it lets an AI assistant answer using your documents (manuals, policies, catalogue) instead of making things up. It first retrieves the relevant passages and then writes the answer based on them, and can cite where each fact came from.
02
How it works
Documents are split into pieces and turned into numerical representations (embeddings) that allow searching by meaning. When someone asks a question, the most similar fragments are retrieved and passed to the model together with the question.
Done well, the system cites which document and page each fact comes from and recognises when the answer is not in the documents, instead of inventing it. That last part is what most needs testing.
03
Understanding it in depth
RAG stands for retrieval-augmented generation. It is a technique that lets an AI assistant answer using your own documents and not only what it learned in training. Before answering, the system searches for the most relevant fragments of your documentation, passes them to the model with the question and asks it to answer using only that information.
This solves two problems at once. The first is that the model does not know your manuals, your warranty terms or your catalogue. The second is that, without a source in front of it, models tend to fill gaps with answers that sound good but may be false. With RAG, each answer rests on a specific text that can be cited and checked.
The quality of a RAG system depends more on the documents than on the model. If the manuals are out of date, scanned without text or mix versions, the assistant will answer badly even if the technology is good. That is why serious work starts by organising the documentation and ends by measuring with real questions, including those with no answer in the documents, where the right reply is that it is not stated.
04
The pieces, one by one
Document preparation
They are cleaned, split into fragments and labelled with their source and version.
Search
Given a question, the most related fragments are located, by meaning and by exact words.
Generation
The model writes the answer using only those fragments and points to where each fact comes from.
Evaluation
It is tested with real questions and measured: does it answer well, cite well and admit when it does not know.
05
An example in a business
A chatbot for a workshop team that is given the manuals for each model: the mechanic asks about a tightening torque and the answer includes the manual and the page it comes from.
06
When yes and when no
It makes sense when…
- You have documentation (manuals, policies, procedures) that people consult again and again.
- Answers must be verifiable in a specific source.
- Someone is responsible for keeping the documents up to date.
Better not when…
- The information changes hourly and there is no stable document to consult.
- The documents are scarce or contradictory: they must be organised first.
- The answer needs professional judgement that is not in any text.
07
Common mistakes
- Loading messy, duplicated or out-of-date documents.
- Not requiring it to cite the source or to say "not stated" when it does not know.
- Not testing it with real customer questions before launch.
08
How to start
- Gather the reliable, up-to-date documents it must know.
- Split them into meaningful passages and organise versions.
- Configure it to answer only from that material and cite the source.
- Test it with your most frequent questions and fix the gaps.
09
Frequently asked questions
Does RAG remove AI invention?
It reduces it a lot, but not to zero: that is why it is measured with real questions and must cite sources.
Which documents can I use?
Manuals, FAQs, policies, catalogues or notes, as long as you have the right to use them.
Is it the same as training a model?
No. RAG consults your documents at the moment; it does not modify the model.
Does RAG eliminate invented answers?
It reduces them a lot but does not eliminate them entirely. That is why it is designed to cite the source, to say it is not stated when it finds nothing and to be measured with real cases before use.
Do my documents leave my company?
It depends on how it is built. It is worth knowing where the documents are stored, which fragments are sent to the model and under what privacy terms, and deciding that before starting.
How long does it take to update if I change a manual?
If the system is well built, the new document is reprocessed and replaces the old one. What matters is having a clear procedure to retire obsolete versions.
10
Quick glossary
- Chunk
- A piece of a document that is stored and searched separately.
- Retrieval
- Searching for the most useful fragments for a question.
- Citation
- An indication of the document and page an answer comes from.
11
Go deeper
To see how it is applied in practice, read the guide AI agents for business: what they are, what they do and how to start.
Related concepts