AI
1. December 2026 7 min
What is RAG, and should your AI answer from your own documents? How to decide if your sources are ready
RAG (Retrieval-Augmented Generation) is a technique where a language model first retrieves relevant passages from selected sources and then writes its answer based on them. Here you can see how RAG differs from training and fine-tuning, where answers typically go wrong, and how to check whether your own documents are ready to be used as…

Indhold
Why does RAG matter, and what is it confused with? How does RAG work step by step? What does RAG mean for your website when AI search retrieves answers? How do you find out if RAG is right for you? Frequently asked questions about RAGRAG (Retrieval-Augmented Generation)
RAG is an AI technique where a language model first retrieves relevant passages from selected sources, such as documents, databases or a knowledge base, and then writes its answer based on those passages rather than only on what it learned during training.
Also called: Retrieval-augmented generation (Danish: hentningsforstærket generering)
A language model, also called an LLM (large language model), is the part of an AI service that understands a question and writes the answer in plain language.
Why does RAG matter, and what is it confused with?
RAG lets a language model use current and internal knowledge without the model being retrained. RAG is most often confused with training and fine-tuning, but RAG does not change the model: the model looks things up in your sources every time it gets a question.
A language model only knows what it saw during training. It knows nothing about your returns policy, your prices or the product you launched last month. If a customer asks about it, the model guesses, and a guess stated with confidence is called a hallucination.
Take a Danish heat pump retailer with around 40 product sheets, a returns policy and an FAQ. If the retailer changes the returns policy, the new version works in a RAG chatbot as soon as the document has been replaced. No training, no waiting. With fine-tuning, the model would have to be trained again to learn the new rule.
| Language model without sources | Fine-tuning | RAG | |
|---|---|---|---|
| Where does the knowledge come from? | Training data from before the model was finished | Training data plus your examples, built into the model | Your sources, retrieved at the moment the question is asked |
| How quickly can knowledge be updated? | Only with a new model | Only when the model is trained again | As soon as the source is corrected |
| Can the answer be traced back to a source? | No | No | Yes, if the solution shows which passages it used |
| What is it good for? | General questions and writing tasks | A specific tone, a format or a fixed type of task | Answering questions about facts that change or are internal |
Fine-tuning and RAG do not rule each other out. Fine-tuning changes how the model writes. RAG changes what it knows when it writes.
How does RAG work step by step?
RAG has three steps: retrieve, augment and generate. The system searches your sources for passages that match the question, adds them together with the question and lets the language model write the answer based on them.
Retrieval works like a search. The sources have been split into smaller passages in advance and stored, so the system can find the ones that are similar to the question in meaning, not just in wording.
At the heat pump retailer, a customer asks: How long is the warranty? Retrieval finds the section on warranty in the returns policy. The language model answers based on it and shows where the answer comes from.
If there is an outdated product sheet with an old warranty period, retrieval may find that instead. Then the answer is wrong, even though the language model does everything right. It reproduced the source correctly. The source was just wrong.
That is why most errors occur in retrieval and in the sources, not in the model. Source citations make errors easier to spot, because you can see which document the answer is based on. RAG gives fewer hallucinations, not none: if retrieval finds nothing useful, the model can still guess.
What does RAG mean for your website when AI search retrieves answers?
AI search uses the same principle as RAG: the tool retrieves current pages from the web and writes an answer based on them. Your website is therefore a possible source, and the same quality requirements for sources apply.
There are two different situations. If you build your own RAG system, you decide which sources can be retrieved from. When AI search answers, your website is one source among many, and you do not decide whether it is chosen.
So the heat pump retailer can both let its own chatbot answer from the returns policy and be retrieved when someone asks an AI search about heat pump warranties. Both depend on the page giving a clear and current answer.
This makes a page easier to retrieve and cite:
- The answer comes early. The most important point is in the first sentences under a heading, not after a long introduction.
- One topic per page. One page about warranty, another about installation. Mixed pages produce passages that match a specific question poorly.
- Headings as questions. They resemble what people actually ask.
- Up-to-date information. Old prices, rules and product data are retrieved just as easily as new ones.
- Sections that can stand alone. A passage without phrases like “as mentioned above” makes sense when it is lifted out.
None of this guarantees that a page will be retrieved. It only removes the most common reasons for it being passed over.
How do you find out if RAG is right for you?
RAG makes sense when you have sources that answer the questions people ask, and when someone keeps them up to date. If you cannot point to an owner of the sources, the next step is to clean up the content, not to build a chatbot.
Go through the checklist in this order. Stop at the first no, because that is where the work is.
- Which questions need answering? Write down the 20 to 30 questions customers or colleagues ask most often. Use emails, chat logs and support tickets.
- Are the answers written down? If the answer only exists in an employee’s head, RAG has nothing to retrieve.
- Who owns and updates the sources? Each document needs a named person who corrects it when something changes.
- Can outdated versions be removed? If old product sheets and policies sit side by side with the new ones, the system retrieves both.
- Does the answer need to be traceable to a source? If yes, for example for warranty, legal or safety matters, the solution must show which document the answer is based on.
If you can answer yes to all five, a RAG solution is a realistic next step. If you get stuck at point 2, 3 or 4, the content needs sorting out first. That work also helps when AI search retrieves from your website.
This advice does not apply if you have few questions and the answers rarely change. Ten stable questions are often better handled by a regular FAQ page, which is easier to maintain and cannot give a wrong answer about something it does not contain.
Frequently asked questions about RAG
Is RAG the same as training an AI on my data?
Can RAG still hallucinate?
Do my documents need to be public to use RAG?
What is a knowledge base in the context of RAG?
Does RAG require a specific language model?
What to remember about RAG
RAG is lookup before answering, not training: the language model retrieves passages from your sources every time it gets a question, and the model itself does not change.
A RAG answer is never better than the source that is retrieved, so an outdated document gives a wrong answer, even if the language model does everything right.
RAG gives fewer hallucinations, not none, and source citations make the remaining errors easier to spot.
AI search follows the same principle and retrieves from websites, so clear, current pages with one topic each are a precondition for being used as a source.
Review of your content as an AI source
See if your content is ready to be retrieved by AI
Enter your name, your website and your email. We will review your content and send you an assessment of whether it can be used as a source in your own RAG solution or by AI search.
- Which pages give a clear answer early, and which do not
- Where outdated or duplicate information could lead to wrong answers
- Whether the next step is to clean up the content or to build a solution
You will hear from us within five working days. No strings attached, and what you do with it is up to you.
Would you rather talk it over a cup of coffee?