Answers from your own documents: what is RAG?
RAG lets AI answer from your own documents and point to its sources. Here is how it works and where it falls short.
A generic chatbot knows nothing about your business. It has not read your handbook, your contracts or your price list. It can still answer with confidence, and then the answer may be wrong.
RAG is one way to fix that. The abbreviation stands for retrieval-augmented generation. In plain words: answers from your own documents, with sources.
How does it work?
It happens in two steps:
- Search. You ask a question. The system searches your documents and finds the passages related to it.
- Answer. The AI receives your question together with those passages and writes an answer based on them. It should point to the document and the section the answer came from.
It is a bit like asking a colleague who looks it up in the folder first, instead of guessing.
An example from a small business
You run a guesthouse in Akureyri. A new employee asks: "What do we do if a guest wants to cancel two days before arrival?"
Without RAG, a generic chatbot might describe how guesthouses usually handle cancellations. That is not what you want to know.
With RAG, the system finds the cancellation section in your own terms and answers from it. Next to the answer it says something like: "From the document Terms, section 4." The employee can open that section and check that the answer is right.
The same idea works for handbooks, procedures, job descriptions, contracts and old emails.
Why is it better than a generic chatbot?
- The answer rests on your data. Not on general knowledge that may not apply to you.
- You see the sources. You do not have to trust blindly. You can check whether the answer holds up.
- Documents can change. If you update your terms, the system can pick up the new version. The AI does not need to be trained again.
- Fewer guesses. The AI is asked to stick to what the documents say and to tell you when the answer is not there. That does not always work perfectly.
Where does it fall short?
RAG is useful, but it is not magic. Good to know:
- The answer can still be wrong. AI can misread a text or pick the wrong part of it. The source lets you see that, but only if someone looks at it.
- The search can miss the right passage. If your question is worded very differently from the text, the system may not find what you are after. You then get a poor answer or none.
- Your documents need to be in order. If the handbook is out of date or two documents contradict each other, the answer will reflect that. The system does not fix your documents for you.
- Scanned images and poorly readable files are hard. Text the system cannot read well does not come through correctly.
- Icelandic is not flawless. AI sometimes makes mistakes in Icelandic, especially in word endings and legal wording.
- It does not replace an expert. Where mistakes cost, for example in contracts or legal matters, a person should check the answer.
That is why we test the AI on your own data and measure quality before it goes live. Where mistakes cost, a person checks before anything goes out.
What about data security?
Your documents may contain sensitive information. With us, data is stored in the EU and never used to train AI. The assistant sees only what it needs, and everything it does is logged.
When does it make sense?
RAG suits a business where staff keep asking the same questions and the answers sit in documents nobody wants to page through. Examples: an onboarding handbook, kitchen procedures, supplier contracts or technical guides.
It suits less well if you only have a few short documents. Then it is simpler to just read them.
This is one of the things an AI assistant can take on: finding answers in documents. You ask the way you would ask a colleague.
Want to see if this fits your business? Book a free first chat.