
RAG for Companies: AI Assistants on Your Own Data
In short: RAG (retrieval-augmented generation) connects a language model to your own company knowledge: before every answer, the system searches approved documents for relevant passages and formulates its answer on that basis, citing its sources. You get current, traceable answers without retraining a model. Whether RAG works depends mainly on data quality, access rights and regular checks of the answers.
A language model does not know your company. It knows nothing about your current prices, your product variants, your service reports or your internal policies. Ask it anyway, and it will produce a plausible-sounding answer that may be wrong. Retrieval-augmented generation solves exactly this problem, which is why it is the basis of almost every knowledge assistant and many AI agents in companies.
The approach was described in 2020 in a research paper by Lewis and colleagues and has since become a standard tool. How relevant it is for mid-sized companies is shown by a Bitkom survey from September 2026: 22 % of German companies with 20 or more employees use AI in internal knowledge management, up from 11 % the year before. This guide explains how RAG works, what it is suitable for and what to watch out for when introducing it.
What is RAG, simply explained?
RAG adds a search step to a language model. Instead of answering from memory, the system looks things up first:
- The question is translated into a search across your knowledge base.
- The most relevant passages from manuals, contracts, wiki, tickets or price lists are retrieved.
- The language model writes the answer based on these passages and names the sources.
- If the system finds no suitable passage, it says so instead of guessing.
Think of RAG as a good new colleague who does not know everything but knows exactly where to look things up, and tells you where the answer came from.
How RAG works technically
Behind the simple principle are a few building blocks that determine quality:
- Preparation: documents are imported, cleaned and split into meaningful sections. Tables, scans and drawings need special handling.
- Index: each section is stored as a vector that represents its meaning. This allows search by content rather than by keywords alone.
- Hybrid search: combining semantic vector search with classic full-text search has proven effective. Full-text search finds item numbers, standards and proper names that pure vector search easily misses.
- Permission check: before answering, the system checks whether the person asking is allowed to see the documents found.
- Answer with source: the model only receives the retrieved sections as context and must base its answer on them.
Terms such as vector, embedding or context window are explained in our AI glossary.
RAG, fine-tuning or simply chatting with documents?
| Approach | What it does | Suitable for | Limits |
|---|---|---|---|
| Uploading a document into the chat | Questions about a single document | occasional one-off cases | no permissions, not current, does not scale |
| RAG | Answers from many, continuously updated sources | knowledge assistants, service, sales, agents | stands or falls with data quality |
| Fine-tuning | Model learns style, format or technical language | consistent output formats, specialist language | expensive to update, no source citations |
For company knowledge that changes, RAG is almost always the right choice. Fine-tuning can complement it but does not replace it.
Typical use cases in mid-sized companies
| Area | Application | Benefit |
|---|---|---|
| Sales | Product and pricing questions with current price lists | faster, consistent answers |
| Service | Assistant based on manuals and service history | faster resolution, fewer follow-up questions |
| Back office | Answers on delivery terms, contracts and processes | less searching, shorter onboarding |
| Engineering | Questions on standards, drawings and test reports | preserving knowledge |
| HR | Questions on policies, leave, travel expenses | relief for the HR team |
RAG is also the knowledge foundation for AI agents that do not just answer but complete tasks. More on this in our guide AI agents for mid-sized companies.
Introduction in six steps
- Define the use case: who asks which questions, and how are they answered today? A clearly defined area is better than "all company knowledge".
- Select sources: only include current, approved documents. Remove outdated versions and drafts.
- Map permissions: take over access rights from file storage, wiki or ERP so that nobody sees more through the assistant than before.
- Collect test questions: build a test set of 30 to 50 real questions with the expected answer and source.
- Pilot with experts: a small group uses the assistant and flags wrong answers and missing sources.
- Organise maintenance: decide who updates sources, approves new documents and reruns the test set regularly.
How to measure quality
A RAG system often looks convincing in the first test because its answers read fluently. Whether they are correct only shows in a systematic check. Four questions, answered regularly with your test set, have proven useful:
- Does the system find the right source? Is the relevant passage among the retrieved sections?
- Is the answer based on the source? Or does the model add details that are not there?
- Is the answer complete and understandable? Would a specialist pass it on like this?
- Does the system honestly say "I don't know"? For questions without a matching source, it must not guess.
What stays with people: experts decide which answer is correct, approve new sources and decide when the assistant is opened up to a further area. The AI delivers hits and drafts; responsibility for the content stays with the department.
Data protection and security
A RAG system has access to a lot of company knowledge, often including personal data and trade secrets. Make sure you have a data processing agreement with the provider, processing in the EU, no use of your data for training and a proper permission check. How to choose the right operating model, from EU cloud to your own servers, is described in Sovereign AI and the GDPR.
Common mistakes in RAG projects
- Connecting everything at once: large, disorganised file stores produce contradictory answers. Start with a well-maintained area.
- No source citations: without sources, users cannot check answers and lose trust.
- Forgetting permissions: an assistant that reveals salary data or contract details to unauthorised people is a data protection incident.
- No measurement: without a test set you will not notice when quality drops after an update.
- Nobody responsible: knowledge goes out of date. Without a responsible person, the assistant becomes useless within a year.
RAG in the company cockpit
At mysoftwarelab, RAG is part of every AI specialist in the company cockpit: each role only accesses the sources approved for its task and states what its answer is based on. mysoftwarelab builds and runs this cockpit as an external AI department for businesses with five or more employees; your team steers and approves. If you are planning a knowledge assistant or an agent on your own data, you can book an appointment.
Frequently asked questions about RAG in companies
What does RAG mean in AI?
RAG stands for retrieval-augmented generation. Before answering, a language model searches a knowledge base, such as company documents, for relevant passages and formulates its answer on that basis, usually citing its sources.
What is the difference between RAG and fine-tuning?
With RAG, the model stays unchanged and looks up current documents for every question. With fine-tuning, the model itself is retrained, for example on style or technical language. For company knowledge that changes, RAG is usually the better choice.
Does RAG prevent hallucinations?
RAG significantly reduces wrong answers but does not rule them out. What matters are good sources, a citation in every answer, the instruction not to guess when information is missing, and regular tests with a test set.
Is RAG GDPR-compliant?
RAG can be operated in compliance with the GDPR if there is a data processing agreement, processing takes place in the EU or on your own premises, data is not used for training and access rights are properly mapped.
Which data is suitable for a RAG system?
Well-maintained text sources such as manuals, policies, product data, price lists, service reports and FAQs are well suited. Outdated versions, drafts and contradictory documents should be removed beforehand.
Conclusion: RAG is the foundation for trustworthy AI in companies
RAG turns a general language model into an assistant that knows your company and cites its sources. The technical setup is well under control today; the difference lies in source selection, permissions, measurement and maintenance. Clarify these four points and you lay the groundwork for knowledge assistants and for AI agents that work reliably with company knowledge.
Sources:
Who builds your company cockpit
Benefit from over 20 years of enterprise experience
Andreas Indorf
Managing Director, mysoftwarelab GmbH
Qualification: Founder of mysoftwarelab GmbH; with his team, builds company cockpits with AI agents for SMEs
Expertise: Over 20 years of developing and implementing IT systems for DAX companies and international corporations. Specialized in AI automation for mid-sized businesses since 2021.
Hands-on Experience: mysoftwarelab is a model company: around 80% of its recurring tasks are done by AI agents from its own cockpit. This hands-on experience flows directly into our client consulting.
Focus: Company cockpits in which AI agents take over recurring tasks – for companies with 5+ employees, built and run by us.
More articles on AI transformation
AI Agents for SMEs: A Practical Guide
AI agents for mid-sized companies: suitable tasks, five phases of introduction, cost guide values, approval rules, legal framework and common mistakes.
Org Chart with AI Agents: Decide Role by Role
How to build an org chart with AI agents: three levels, five questions per task, an example org chart and common mistakes.
Calculating AI ROI: Formula, Example and Pitfalls
How to calculate the ROI of AI per task: formula, measurable benefits, full costs including review time, an example calculation and common mistakes.
Which of your tasks belong in the cockpit?
In a free callback we clarify whether a company cockpit with AI agents fits your business – for companies with 5+ employees.
- An individual company cockpit instead of single AI tools
- AI agents take over recurring tasks, your team approves
- Built and run by us – from EUR 2,990/month
From the lab
The most important AI news of the week – as a comic.
Every Wednesday, ByteUndGlitch explains one real AI story in eight panels. Satirical, accessible, free.
Read the latest episode