Skip to main content
NexPatch
Glossary3 min read

Retrieval augmented generation explained: RAG in practice

Retrieval augmented generation, RAG for short, is a method in which a language model retrieves relevant passages from a defined document collection before each answer and bases its answer on what it found. This lets it answer with current, company specific knowledge and cite the source, without retraining the model itself.

Illustration: a person writes in a notebook in an armchair, next to a laptop showing a chat interface.

Retrieval augmented generation explained: RAG in practice

Retrieval augmented generation, RAG for short, is a method in which a language model retrieves relevant passages from a defined document collection before each answer and bases its answer on what it found. This lets it answer with current, company specific knowledge and cite the source, without retraining the model itself.

Illustration: a person writes in a notebook in an armchair, next to a laptop showing a chat interface.
Image: Fabrizio Matarese / Distant Writing / Licenced by CC-BY 4.0

How retrieval augmented generation works

The method has three steps. First, the documents are split into sections and prepared so that they can be searched by meaning. When someone asks a question, the system picks out the most relevant sections, which is the retrieval step. The language model then receives the question and the passages together and formulates the answer from them. The model therefore knows no more than before, it is simply given the right excerpt for every question.

How it differs from fine tuning and a plain language model

FeaturePlain language modelFine tuningRetrieval augmented generation
Where the knowledge comes fromgeneral training knowledgetraining knowledge plus your own retrained datayour own document collection, retrieved at runtime
Updatingnot without a new modelonly by retraining againreplace the document, done
Source citationnonoyes, for every answer
Permissions per usercannot be mappedcannot be mappedcontrollable through retrieval
Well suited togeneral textsstyle, technical language, fixed formatsquestions about manuals, standards, incident history

Fine tuning changes how a model behaves, RAG changes the material it works with. The two can be combined. For knowledge questions within a company, RAG is usually the simpler route, because knowledge changes daily and every answer should remain verifiable.

Practical example: knowledge and assistance in manufacturing

In our industry report, RAG is the core of use case field E, knowledge and assistance. The maintenance technician asks in natural language and gets the answer with its source, instead of working through 400 pages of PDF. One documented case from industry is Covestro: the company runs its company wide assistant COVA on its own infrastructure and reports 4,500 weekly users at operating costs of one tenth of a standard solution (company statement, Covestro 2025). This is not a project of ours.

The report names four prerequisites:

  • Documents in machine readable form. Scanned PDFs without text recognition are the most common blocker.
  • An access control concept, because not everyone may see every cost calculation or design drawing.
  • Answers with source citations, otherwise the workforce will not trust them.
  • A maintenance routine, so that outdated documents do not keep feeding into answers.

No other field touches as much sensitive material. 77 % of companies name data protection requirements as the biggest obstacle (Bitkom 2026, the German digital industry association). That is why we prefer to run RAG on AI in your own data centre. When the answer turns into a process, such as a ticket, RAG moves into the territory of AI agents for companies. The classification of all fields is set out in our article on AI use cases in manufacturing.

Frequently asked questions

Full-Stack Development

From Idea to Production in Weeks

Next.js, React, TypeScript - co-founded products with government funding support.

See Our Work

Related Articles

RETURN TO BLOG
Paper collage: an Art Deco swimming pool filled with rows of servers instead of water.
Glossary3 min read

MLOps explained: what AI needs once it is in live operation

MLOps, short for machine learning operations, covers every task that keeps an AI model working reliably after go-live: monitoring model quality, retraining, versioning, release, the shutdown decision and documentation. It answers the question of who makes sure a model still delivers correct results a year from now.

December 4, 2026
Diagram: colourful geometric nodes connected by dotted lines, like a network of weights.
Glossary3 min read

Open model weights explained: what they are and why they matter

Model weights are the numerical values a language model learned during training, and they determine how it calculates an answer from an input. Open model weights means that the developer publishes these values as a file, so you can run the model on your own hardware, subject to the terms of its licence.

October 16, 2026
Demand forecasting: definition, methods and data needs
Glossary7 min read

Demand forecasting: definition, methods and data needs

**Demand forecasting is the estimate of how much of a product, spare part or service will be needed in a future period. It combines past sales or consumption with known drivers such as seasonality, open orders, prices and promotions. Companies use it to plan purchasing, production and stock levels.**

October 8, 2026
Private AI: definition, distinctions and when it pays off
Glossary7 min read

Private AI: definition, distinctions and when it pays off

Private AI refers to AI systems whose models, data and logs run in an environment the company controls itself: its own data centre, a German hosting provider or a dedicated environment. It differs from cloud AI in three points: a known location, the company's own access control and verifiable evidence.

October 8, 2026
Model drift explained: why AI systems get worse after a few months
Glossary7 min read

Model drift explained: why AI systems get worse after a few months

Model drift is the gradual loss of quality in an AI model because the data and conditions it works under change while the model itself stays the same. Typical causes are new products, changing customer behavior, new document templates and changes in upstream systems. The remedies are continuous measurement against a baseline, alert thresholds and planned retraining.

October 8, 2026

We use cookies and similar technologies to enhance your browsing experience, analyze site traffic, and personalize content. You can choose which categories to accept.

Learn more in our Privacy Policy and Imprint.