Skip to main content

What is a RAG system?

Retrieval-Augmented Generation: AI that gets the answer from your own content, not from what the model once learned.

Developer working with code at a large screen

Short answer

A RAG system (Retrieval-Augmented Generation) connects a language model to your company's own documents and data. Instead of answering from what the model learned during training, the system retrieves the relevant excerpts from your sources and answers based on them, with a reference to where the answer comes from.

Why a regular language model is not enough

A language model knows what was in its training data, not what your company does: the procedures, the product manuals, the contracts, or what a customer said yesterday. Without access to the sources, it guesses, or says it does not know. A RAG system gives the model the right sources at the moment the question is asked.

How RAG works, step by step

  1. Your documents are split up and indexed, and the index is kept up to date when the sources change.
  2. When someone asks a question, the system searches for the most relevant excerpts.
  3. The language model writes the answer based on the excerpts, not from memory.
  4. The answer shows which documents it is based on, so it can be checked.

What a good RAG system has

  • An index that is updated when the documents change
  • Hybrid search, so both exact terms and approximate meaning find a match
  • Good support for Norwegian, both Bokmål and Nynorsk
  • Source references in every answer
  • Access control, so no one gets answers from documents they are not allowed to see
  • A log of questions and answers, so quality can be tracked

Typical use cases

  • An internal knowledge base for new and experienced employees
  • Customer service that answers based on manuals, terms, and FAQs
  • Salespeople who quickly find history and contract terms
  • Legal teams that search contracts and correspondence

RAG or training your own model?

For most companies, RAG is the right choice. It is faster to build, the sources can be updated without retraining, and the answers can be traced. Training your own model is rarely necessary, and rarely solves the problem of up-to-date knowledge.

Questions and answers

Do we need to train our own model?

Usually not. A RAG system gives the model access to your sources without training, and can be updated every time the documents change.

How much documentation is needed?

There is no lower limit. What matters most is that the documents are correct and up to date, not that there are many of them.

Can employees get answers from documents they do not have access to?

Not if the system is built correctly. The search follows the same access rights the documents have today.

The services this applies to

Articles are one thing.
Your situation is another.

In the Discovery Call, we go through your situation. Afterward you get a written proposal with scope, timeline, and price.