25.02.2025
Blog
Data & AI

RAG: Tailor-made AI responses through intelligent knowledge integration

Retrieval Augmented Generation (RAG) expands the knowledge base of language models. Application- or situation-specific information is incorporated into the response generation process, making results more personalised and precise – without the need to incorporate this knowledge through time-consuming training. Materna and the platform provider Elastic offer solutions that enable internal, non-publicly accessible knowledge to be queried in natural language using a RAG system. In this article, you will learn about the potential of RAG-based AI language models, particularly for public authorities.

Stefan Reinke
Content Editor

Working with generative AI such as ChatGPT has now become part of everyday life. A person submits a query, and the AI produces a response. The more precise the query, the better the result. In the process, the AI is constantly learning, whether through user feedback or through operator-led training of the Large Language Model (LLM) on which the AI is based. 

For use in public authorities, such generative AI has three drawbacks: Firstly, it derives its knowledge through training from sources available on the internet – and in a very generalised manner. Secondly, it does not forget knowledge once it has been trained, which has particularly negative consequences when that knowledge quickly becomes outdated. Thirdly, the AI can only provide very general answers to a question if it does not have access to specific context – such as agency-specific working instructions or legal interpretations. The knowledge it has been trained on is sufficient for providing superficial answers to enquiries, but not for more detailed information or even decision-making support for case officers. 

RAG: AI incorporates non-public data into its response

This is not the case with a RAG system. With this, the AI also accesses knowledge with which it was not trained, because the underlying data is not publicly accessible, or only to a limited extent. This may include laws, regulations, procedural guidelines, fee schedules or pre-formulated sentence modules – or even particularly sensitive, personal data. Furthermore, the AI does not ‘learn’ from this data, nor does it subsequently incorporate it into its model. 

The solution offered by Materna and Elastic ensures that non-public data remains under the control of its owner, whilst still being used primarily to generate a specific response. 

RAG thus combines publicly available or pre-trained knowledge with non-public data. 

Benefits of RAG for public authorities and citizens 

An example: ChatGPT receives the following query: ‘What is the property tax rate?’ The AI would then either engage in a dialogue and ask for more precise information (property tax rate for which town?) or it would generate a result at random. However, if the AI is instructed in advance to access only RAG data (current tables, predefined sentence modules, etc.) from the City of Dortmund when handling enquiries about the property tax assessment rate, it will always generate its response based on this data. This ensures that the information provided is accurate and legally sound. A system running on the City of Dortmund’s server would therefore always take the City of Dortmund’s assessment rate into account, even if the question does not mention the city’s name at all. 

When using RAG systems, it is therefore essential to ensure that the underlying data is actually protected and is not made public or used for the general training of the Large Language Model (LLM). This is for data protection reasons, but also for procedural ones. This is because the quality of the RAG-generated responses depends heavily on how well the data is maintained. The datasets must always be up to date. The solution from Materna and Elastic can also be deployed on-premises, i.e. installed and operated entirely within the authority’s secure environment. 

Generative AI with RAG could therefore revolutionise communication between public authorities or quasi-governmental bodies such as health insurance providers, as a chatbot on the homepage could already answer enquiries from citizens or customers very precisely and, depending on the data available, even in a personalised manner.  

Faster responses, more time for advice

Communication with public authorities is often difficult: long response times, limited opening hours and complicated correspondence are just some of the hurdles. If a public authority automates its communication using RAG, citizens can submit enquiries regardless of opening hours and receive well-founded and legally compliant information immediately. 

This benefits both sides: case officers can focus on complex cases and provide personalised advice, whilst applicants with standard enquiries receive their decisions more quickly.  

If you would like to find out more about our RAG solutions, please send an email to [email protected]. We will then provide you with a recording of our webcast ‘It’s RAG-Time: Confidently integrating internal government knowledge into generative AI solutions’.

Stefan Reinke
Content Editor

Stefan Reinke works as a content editor in the corporate communications department at Materna. His main areas of focus are energy, insurance and AI.

Related articles

Event
Data & AI
Public Sector
Online
28.01.2027
Webcast: “Act, complete, find, anticipate: Sovereign AI for public administration”

From AI assistants with faces and voices to the automation of application processes and digital situational awareness: In our webcast on January 28, 2027, from 12:00 p.m. to 1:00 p.m., we’ll showcase a variety of our AI solutions for the public…

Read more
Short News
Verwaltung Digital
Data & AI
Public Sector
03.12.2026
KIPITZ is set to become the federal administration’s central AI platform

The federal government intends to centralise the use of generative AI across its agencies. Through KIPITZ, staff can, for example, summarise…

Read more
Short News
Europe
Regulatory
Data & AI
02.12.2026
EU AI Act: One year to go until the next key deadline

The countdown is on: from 2 December 2027, new requirements under the EU AI Act will apply to certain high-risk AI systems. These include, for…

Read more
Short News
Regulatory
Data & AI
01.12.2026
Bitkom: Legal uncertainties are holding back data-driven innovation

According to Bitkom, six out of ten German companies have already abandoned data-driven innovation projects due to legal requirements or…

Read more
Monitor
Data & AI
23.11.2026
Bringing AI under control

How consistent governance paves the way for the controlled and scalable deployment of AI

Read more
Monitor
Data & AI
23.11.2026
Materna Symphony

Digital humans are becoming trusted team members

Read more
Monitor
Data & AI
23.11.2026
Sovereign AI made in Germany

In this interview, Milos Rusic, co-founder and CEO of deepset, discusses how businesses and public authorities can use AI securely and…

Read more
Short News
Corporate
Data & AI
23.11.2026
Deutsche Telekom is investing 100 million euros in Mistral AI

Deutsche Telekom is investing 100 million euros in the French AI company Mistral AI. A planned partnership aims to make European AI technologies…

Read more
Short News
Data & AI
Enterprise Service Management
18.11.2026
New podcast episode: Who controls AI?

Who oversees AI within a company? With its ‘AI Control Tower as a Service’, Materna subsidiary agineo offers a solution for transparency, security and…

Read more
Short News
Data & AI
Energy & Utilities
17.11.2026
Not enough smart meters: Federal Network Agency threatens to impose penalty payments

72 meter operators have been ordered to pay penalty charges for failing to meet their installation targets during the smart meter roll-out. Yet smart…

Read more