· 2 min read

What is RAG?
Short answer: retrieval augmented generation (RAG) means the software searches your documents for the passages that fit your question, and gives them to the model to write the answer from.
The idea was named in a 2020 research paper by Patrick Lewis and others, which combined a language model with a searchable index of text (there, Wikipedia). Many tools that let you "chat with your files" work along these lines.
Why not just ask the chat?
A model on its own knows what it was trained on. It does not know your warranty terms, your rate card or last week's notice. RAG brings those to it at the moment you ask.
What is it good for?
- Finding a clause in your service agreement.
- Answering "what is our warranty on this part?" from your own policy.
- Helping a new helper find the right procedure.
Where does it fail?
- The answer is not in the documents, and the model fills the gap.
- Two versions of a price list exist and it picks the old one.
- Tables and scanned pages are read wrongly.
- Someone sees a document they should not.
How to start with your own documents
- Pick one small set of documents that you trust, such as current policies.
- Remove old versions and copies first.
- Check that the tool's terms allow your use and say how your files are stored.
- Leave out customer personal data unless you are sure you may include it.
- Ask ten questions you already know the answers to.
- Ask it to quote the passage and name the file each time.
- Decide who updates the documents when something changes.
Do I need RAG at all?
If you have five pages, you can paste the relevant page into a chat. If your question is "which jobs are due today?", that is not a document question: a list or an application answers it exactly. See moving off paper and spreadsheets.


