What RAG is and which problem it solves
A language model does not know your company. It knows nothing about your contracts, manuals or price lists, and when in doubt it invents an answer that sounds plausible. RAG (retrieval-augmented generation) solves this: the system first finds the relevant passages in your documents and has the model write the answer from them, with sources.
The architecture in five building blocks
- Data connection: documents from file shares, wikis, ticket systems or databases are read in on a schedule.
- Preparation: the text is cleaned, split into sensible sections and tagged with metadata such as date, department and access rights.
- Index: each section is stored as a vector, so the system can search by meaning and not only by keyword.
- Retrieval: for a question, the best-matching sections are found, often by combining semantic and keyword search.
- Answer: the language model writes the answer only from the retrieved sections and names its sources.
There is a sixth building block that pilots usually lack: evaluation. A fixed set of test questions with known answers shows after every change whether the system got better or worse.
Examples from practice
- Internal knowledge search: staff ask in plain language about policies, processes or technical documentation.
- Customer service: an assistant answers enquiries from manuals and past tickets, and hands over to a person when the sources are not enough.
- Sales: quotes and tender responses are drafted from approved text blocks and product data.
- Field service: technicians find the right passage in a maintenance manual while standing at the machine.
Why RAG projects fail
- Poor data: outdated and duplicate documents lead to contradictory answers. Cleaning up is part of the project.
- Missing access rights: the system may only show a user what they could see in the source system.
- No measurement: without test questions, quality is a matter of feeling and improvements are luck.
- Answers without a source: users only trust a system when they can check where the answer came from.
RAG, fine-tuning or an agent?
RAG is the right choice when the subject is knowledge that changes. Fine-tuning a model is more useful for tone of voice or a fixed output format. If the system should also act, for example by opening a ticket, the RAG system becomes one building block of an AI agent.
Effort and next step
We plan a RAG or knowledge system at four to eight weeks to production, billed by fixed milestones. The details of how we work are on the Services page.
Frequently asked questions
What does RAG stand for?
RAG stands for retrieval-augmented generation. The system first finds the relevant passages in your documents and passes them to the language model as the basis for its answer.
Do I have to train my own model for RAG?
No. RAG needs no training. The model stays as it is and your documents are pulled in at query time. New content is therefore available as soon as it is in the index.
Does my data stay inside the company with a RAG system?
That is a question of architecture. Documents and index can sit on your own infrastructure. If you also do not want to use a language model from an external provider, open-weight models can run locally or in our datacenter.