Skip to content
FoorintoDev, back to the home page

RAG: an AI assistant that answers from your own documents

An AI model like ChatGPT knows nothing about your prices, your opening hours or your internal procedures. RAG gives it access to your documents when it answers. It is the technique behind most serious business assistants.

In brief

  • RAG stands for “retrieval-augmented generation”: the AI first searches your documents, then answers from what it found.
  • Answers stay up to date: you just edit the document, without retraining a model.
  • The assistant can cite its sources, so its answers can be checked.
  • Quality depends mainly on your documents: if they are incomplete or contradictory, so are the answers.

The problem: an AI that does not know you

Large language models have learned from huge amounts of public text, up to a certain date. They know nothing about what was not in that text: this year’s prices, your new service, your practice’s procedures.

When asked about these topics, they tend to produce a plausible but wrong answer. For an assistant aimed at your customers or your team, that is not acceptable.

The principle of RAG

RAG (retrieval-augmented generation) was described in 2020 by researchers from Facebook AI Research and University College London. The idea is simple: before answering, the assistant fetches the relevant passages from a set of documents, then writes its answer from those passages.

It is the difference between an employee who answers from memory and one who opens the binder before answering.

How it works, step by step

  1. Gather the documents: frequent questions, terms and conditions, product sheets, procedures, minutes.
  2. Split them into passages of a few paragraphs, so the information can be found precisely.
  3. Index them: each passage receives a kind of fingerprint of its meaning, which makes it possible to find passages close to a question even when they use different words.
  4. Search: when a question comes in, the assistant finds the most relevant passages.
  5. Answer: the model writes the answer based on those passages, and can say where the information comes from.

What it changes

  • Up-to-date answers. Your prices change? You edit the document, and the assistant answers with the new ones.
  • Verifiable sources. The assistant can point to the passage or page its answer comes from.
  • Fewer inventions. The model relies on your text rather than its memory. The risk does not disappear completely, hence the value of testing and reviewing.
  • A controlled scope. If the answer is not in the documents, the assistant can say so and hand over.

The limits to know

  • Good documents. An outdated document, or two documents that contradict each other, give wrong or hesitant answers. The main work is often putting your documents in order.
  • Confidentiality. Only put into the base what the assistant may show to the person asking. A public assistant must not have access to your internal documents.
  • Cost. Each question uses computing power at the model’s provider. For a small business this cost generally stays modest, but it needs to be planned for.

RAG or training a model?

People sometimes think they need to “train an AI” on their data. To answer from documents, this is almost never necessary. Training changes how the model expresses itself; it does not guarantee that it remembers your prices, and it has to be redone with every change. RAG leaves your information in your documents, where you can edit and check it.

Two uses for a small business

An assistant for your customers, on your website, that answers frequent questions from your pages and your terms. See the article AI chatbots.

An assistant for your team, that finds a procedure, a contract clause or a technical sheet in seconds, instead of searching through shared folders.

In both cases, I can help you choose the tools and prepare your documents: see the AI and automation page.

Sources

Sources consulted on 9 October 2026. This article gives general information: it does not replace the advice of the Chamber, a lawyer or the relevant authority.

Written with the help of AI, reviewed by a human.

Find out more

My packs and prices

More articles

All articles

Let’s talk about your website.

Ask for your mockup, ask a question or book a call. I answer personally, Monday to Friday, 8:00 to 18:00.

Phone
+352 661 204 623
Email
contact@foorintodev.com