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-Redakteur

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-Redakteur

Stefan Reinke arbeitet als Content-Redakteur in der Unternehmenskommunikation bei Materna. Seine Schwerpunkt-Themen sind die Bereiche Energy, Insurance und KI.

Related articles

Event
Frankfurt am Main
18.11.2026
BMC Helix Roadshow 2026

Meet Materna at the BMC Helix Roadshow 2026 on 18 November in Frankfurt and discover how modern service management, Agentic AI and compliance requirements work together successfully. Look forward to exclusive insights into the BMC Helix roadmap, the…

Read more
Event
Dortmund
05.11.2026
XCS Day (Xchange in Cyber Security)

At XCS Day, experts from the business and public sectors will once again come together to discuss current challenges and strategies relating to cyber security and regulation. Find out how organisations are strengthening their resilience to cyber…

Read more
Event
Dortmund
03.11.2026
FMS Information Day

On 3 November 2026, we will update you on the latest developments relating to the Federal Government’s FMS and encourage mutual exchange. The keen interest you show in every issue demonstrates that the FMS is, and will remain, a key element of…

Read more
Event
Wien
13.10.2026
Agentic AI Roundtable in Vienna

How does Agentic AI deliver real added value for IT and service organisations? At the Agentic AI Roundtable in Vienna, Materna, BMC Helix and other experts will discuss specific use cases, current challenges and next steps for businesses. Look…

Read more
Event
Berlin
13.10.2026 - 15.10.2026
Smart Country Convention (SCCON)

Come and meet us in Hall 27 at Stand 206 at the leading event for the digital state and public services. SCCON is a must-attend event for all stakeholders actively driving and shaping digital transformation. At our stand, you’ll find a use case…

Read more
Event
Amsterdam
06.10.2026 - 08.10.2026
Atlassian Team ’26 Europe

From 6 to 8 October 2026, Atlassian will be bringing the community together for ‘Team ’26 Europe’ in Amsterdam. Look forward to hands-on sessions covering AI, new products and features, live demos and certification opportunities. You’ll also have the…

Read more
Event
Berlin
01.10.2026
Open Insurance Dialog 4.0 (#OID4.0)

Open Insurance Dialog 4.0: FiDA, Identity and New Opportunities for Insurers

The insurance industry is facing a profound transformation: FiDA (Financial Data Access) and Open Insurance are creating new opportunities for data-driven services,…

Read more
Event
Online
30.09.2026
Webcast: ‘Understanding the mainframe, accelerating migration: How banks and insurers are harnessing hidden knowledge’

Mainframe and legacy systems contain decades of business logic – often inadequately documented and difficult to access. From 10.00 to 11.30, Materna and Nomain will demonstrate how AI-powered analyses can make business logic, dependencies and…

Read more
Event
Düsseldorf
30.09.2026
27th NRW ÖV Symposium

Artificial intelligence, digital sovereignty, the cloud, the data economy and cyber security form the framework for the digital transformation of public administration in North Rhine-Westphalia. This popular platform for information and dialogue on…

Read more
Event
Public Sector
Online
24.09.2026
Webcast: ‘From a jungle of registers to a digital ecosystem.’

How register modernisation, the ‘once-only’ principle and NOOTS are bringing about lasting change in public administration. Find out what challenges public authorities face, which strategies are proving effective, and how a future-proof register…

Read more