Since 2010, we have helped companies design, develop, and launch strong digital products and solutions.

Monthly news you actually want to read

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…

What is RAG, and should your AI answer from your own documents?

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 RAG

RAG (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 sourcesFine-tuningRAG
Where does the knowledge come from?Training data from before the model was finishedTraining data plus your examples, built into the modelYour sources, retrieved at the moment the question is asked
How quickly can knowledge be updated?Only with a new modelOnly when the model is trained againAs soon as the source is corrected
Can the answer be traced back to a source?NoNoYes, if the solution shows which passages it used
What is it good for?General questions and writing tasksA specific tone, a format or a fixed type of taskAnswering 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.

RAG: three steps from question to answer
Your sources: product sheets, returns policy, FAQ Starting point
1. Retrieve: find passages that match the question Most errors occur here
2. Augment: add the passages together with the question
3. Generate: the language model writes the answer based on them

Answer with source citation

never better than the passage that was retrieved

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.

  1. Which questions need answering? Write down the 20 to 30 questions customers or colleagues ask most often. Use emails, chat logs and support tickets.
  2. Are the answers written down? If the answer only exists in an employee’s head, RAG has nothing to retrieve.
  3. Who owns and updates the sources? Each document needs a named person who corrects it when something changes.
  4. Can outdated versions be removed? If old product sheets and policies sit side by side with the new ones, the system retrieves both.
  5. 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?

Related posts

Company brain: hvad er det, og hvornår har din virksomhed brug for en?

Company brain: what is it, and when does your business need one? How to tell if it solves your problem

Test your AI maturity: Is your company ahead or falling behind?

Related posts

Company brain: hvad er det, og hvornår har din virksomhed brug for en?

Company brain: what is it, and when does your business need one? How to tell if it solves your problem

Test your AI maturity: Is your company ahead or falling behind?

Get in contact

First step in your business development

We are already just waiting in suspense to hear from you! We love helping passionate companies that also have great digital potential.

Rugårdsvej 55A 1. floor
5000 Odense C
Nyhavn 16, 4. floor
1051 Copenhagen K
Write us
Book a meeting
Job og Karriere
Find contact
Write us

First step in your business development

[contact-form-7 id="bdbbcfd" title="Write us"]
You are a star

Thank you for your message

You should now have received a confirmation email.
We are reviewing your inquiry and will get back to you as soon as possible.

Have a great day! ☀️

Book a meeting

Talk with us, when it suits you

Hvornår?

Vælg dato

Ledige tider

Book a meeting

Thank you! - We need to know a bit more about you

[contact-form-7 id="5a05104" title="Book a meeting"]
You are a star

Thank you for your request

You should now have received a confirmation email.
We are reviewing your inquiry and will get back to you as soon as possible.

Have a great day! ☀️