Document intelligence with RAG and IAM
Employees ask in plain language and get answers from the company's own documents. With sources, and only from documents they are allowed to see.
Case study 01
- RAG
- IAM
- Hybrid search
A knowledge platform that automatically ingests, structures and indexes large document collections. Employees ask questions in plain language and get answers straight from the company's documents, each with a traceable source. Integrated identity and access management ensures that every person only receives answers from information they are authorised to see.
- Documents
- PDF, Office and other formats
- Search
- Exact terms and meaning
- Access
- Via the existing identity provider
How much time does searching cost you?
This much working time goes into searching today.
This is exactly where the system comes in: one question in plain language replaces the trip through folders, drives and inboxes.
Quality comes with it: every answer names its source and comes from the current version.
Based on 220 working days of 8 hours each. The calculation runs only in your browser.
What the system achieves.
A company's knowledge sits in work instructions, manuals, policies and product documents, spread across drives, folders and inboxes. Whoever needs an answer hunts for the current version or asks a colleague. AI search only solves this if it masters two things: it shows where every answer comes from, and it only shows what the person asking is allowed to see.
Answers instead of searching.
A question in plain language is enough. The system finds the relevant passages in the documents and writes the answer from them.
Every answer can be checked.
For every answer, the system names the documents and passages it relies on. Without a matching source there is no answer, just a clear notice.
Confidential stays confidential.
Permissions come from the existing identity provider. Whoever may not open a document gets no answer from it either.
Knowledge stays current and accessible.
New versions replace old ones, and deleted documents disappear from the answers. Even large collections become systematically usable.
Why not just an AI chat with your documents?
For a single document, a general AI chat is enough. Once it is about the knowledge of an entire company, permissions, freshness and sources decide.
- Permissions
- AI chat with uploaded filesUploaded copies do not know the permissions of your file storage.
- This systemPermissions come from your identity provider and apply before any content reaches the model.
- Freshness
- AI chat with uploaded filesFiles are snapshots. If the original changes, the copy stays old.
- This systemNew versions replace old ones; deleted documents disappear from the index and the answers.
- Sources
- AI chat with uploaded filesThe model can answer without evidence, from its general knowledge.
- This systemNo answer without a source. If there is no matching passage, the system says so.
- Scope
- AI chat with uploaded filesFiles are uploaded one by one.
- This systemEntire collections are ingested, structured and made searchable automatically.
- Data
- AI chat with uploaded filesData and model sit with the chat service provider.
- This systemServers in Germany, models in the EU or self-hosted. The model is exchangeable.
How it works.
The system works in two phases. Up front, it prepares the documents. With every question, it searches only what is permitted and answers with sources.
Up front
With every question
Up front: preparation
01
Ingest.
PDFs, Office files and other formats are imported automatically.
Technical: Import pipeline with text and structure extraction per format.
02
Structure and enrich.
Every document is split into meaningful sections and enriched with metadata such as origin and version.
Technical: Semantic chunking, metadata per section.
03
Index.
Every section becomes findable twice: by its terms and by its meaning.
Technical: Term index for exact matches, vector index of embeddings for semantic search; data, documents and indexes logically separated.
With every question
04
Ask.
Employees ask their question in plain language. The system knows who is asking.
Technical: Sign-in via the existing identity provider; groups and roles define the permission context.
05
Search only what is permitted.
The search runs only over sections this person may see. If the permission status is unclear, the source stays locked.
Technical: Hybrid term and vector search within the permitted context; non-released sections never appear in a result list; fail-closed when permissions are unclear.
06
Write the answer.
The language model bases the answer on the sections found. Instructions written inside documents are treated as content, not as commands.
Technical: Retrieval-augmented generation; context only from permitted sections; document text is handled as data (prompt injection protection).
07
Answer with sources.
Every answer names the documents and passages it relies on. If no passage fits, the system says so instead of guessing.
Technical: Source references per answer; no answer without evidence; queries, retrieved sections and processing steps can be logged.
The engineering behind it.
Two systems in one: a RAG pipeline that unlocks knowledge, and identity and access management that limits access. What matters is where they meet: before any content reaches the language model.
Architecture in layers
Access
- Sign-in via the identity provider
- Groups and roles
- Revoked rights take effect
Application
- Questions in plain language
- Answers with source references
Retrieval
- Permission context per query
- Term search
- Vector search
- Context selection
Generation
- Language model, exchangeable
- Answers from evidence
- Document text as data
Knowledge base
- Sections with metadata
- Term and vector index
- Logically separated data
Preparation
- Import of PDF, Office and other formats
- Extraction and structuring
- Updates and deletions
Across all layers
Permissions
They apply in search, result lists and answers, not just in the interface.
Logging
Queries, retrieved information and processing steps can be logged traceably.
Key decisions
01
Permissions before the model, not in the prompt.
Telling a language model to only output what is allowed is not access control. What the model never receives, it cannot reveal.
02
Fail closed instead of guessing.
If a source's permission status is unclear, it stays locked. A missing hit is better than an answer from the wrong document.
03
Hybrid search.
People ask in their own words, yet technical terms, names and numbers still have to be found exactly. Combining term and vector search delivers both.
04
No answer without a source.
An answer without evidence cannot be checked in day-to-day work. So the system either cites sources or says there is no basis.
05
Documents are data, not commands.
A document can contain text that looks like an instruction. The system treats it as content. It grants no rights and triggers no actions.
06
Freshness is part of security.
A deleted document must not live on in an old index, and a revoked right must not linger. New versions replace old ones; deletions and revoked rights take effect in the index.
07
Exchangeable model.
Language models evolve quickly. The architecture separates model and logic so a better model can be used without rebuilding the system.
08
Tested, not claimed.
Testing uses a question catalogue of answerable and deliberately unanswerable questions plus permission tests: does each person get only what they may see?
Building blocks
- Import pipeline
- Text and structure extraction
- Semantic chunking
- Metadata
- Embeddings
- Vector index
- Term index
- Hybrid search
- Identity provider
- Groups and roles
- Permission filter
- Language model (exchangeable)
- Source references
- Logging
- Question catalogue and permission tests
Where it runs and which rules apply.
Anyone who entrusts a system with their company's knowledge wants to know where data and models run, how they are protected and which rules apply. Here are the answers.
Models and servers
For demanding reasoning, we rely on Claude by Anthropic, run via AWS Bedrock in the EU. Alongside it, we use European models such as Mistral and run open-weight models on our own servers when data sovereignty requires it.
What we see: European models still trail the leading American ones, but they keep getting better. We like to use them and want to help move AI from Europe forward.
- Reasoning
- Claude by Anthropic, via AWS Bedrock in the EU
- European models
- Mistral and other models from Europe
- Open-weight
- Self-hosted on our own servers
- Servers
- Data centre in Germany, ISO/IEC 27001
- Operation
- In containers, also on-premise in your own data centre
- Model changes
- Without rebuilding the architecture
Data protection under the GDPR
When we operate the system, we sign a data processing agreement under Art. 28 GDPR, with documented technical and organisational measures.
Data stays in the EU.
Documents, queries and answers do not leave the EU, not even when a model is called.
Only what is needed.
Content without permission never reaches the model.
Deletion reaches the index.
Deleted documents disappear from the index and the answers.
No training on your data.
Your data is not used to train AI models.
Sub-processors named.
We name every sub-processor in advance, such as AWS and the data centre.
Clear deletion periods.
Logs and caches are deleted after defined periods.
Input for your records.
For your record of processing activities and data protection impact assessment, we provide all technical details.
Without US providers, too.
If data must not reach a US provider even in an EU region, European or self-hosted models take over.
IT security
Isolated network.
Databases, search indexes and self-hosted models are not publicly reachable.
Sign-in via your identity provider.
With your accounts, groups and roles. Revoked rights also apply in the index.
Prompt injection protection.
Instructions inside documents are treated as data. They grant no rights and trigger no actions.
Encrypted.
Data is encrypted in transit and at rest.
Certified data centre.
The servers are in Germany, in a data centre certified to ISO/IEC 27001.
Secrets in a vault.
Credentials and keys live in a secrets manager, never in the code.
Backups with a way back.
Regular backups and a tested recovery path.
Checked before launch.
No system goes live without a security check. Where required or requested, specialised partners run penetration tests.
EU AI Act
The EU AI Act classifies AI systems by their purpose. Internal knowledge search is not among the high-risk areas listed in Annex III. It is different when a system helps decide on staff, credit or insurance. That is why we assess every deployment individually.
Recognisable as AI.
The interface shows that answers come from an AI, as Art. 50 provides.
People decide.
The system answers questions. People make the decisions, based on verifiable sources.
Traceable.
Queries, retrieved information and processing steps can be logged.
Models documented.
It is recorded which model, in which version, handles which task.
AI literacy in the team.
Onboarding your team is part of every handover. It builds the AI literacy that Art. 4 is about.
Binding assessment.
Where a legal assessment is required, a specialised law firm provides it. We supply the technical basis.
For industries with strict requirements
In finance, healthcare, law firms or critical infrastructure, three questions count: Where is the data? Who sees what? Can every step be proven? The architecture answers them with servers in Germany or in-house, permissions before the model and traceable logs.
Confidentiality.
Everyone working on a project is bound to confidentiality in writing. This matters for professions bound by secrecy under Section 203 of the German Criminal Code.
Works council.
Logs can be configured so they do not allow monitoring of performance or behaviour. That makes alignment with the works council easier.
German law.
Contracts under German law, with jurisdiction in Germany.
No lock-in.
Code and data belong to you. The system can be moved into your own data centre.
Legal and security with partners
RedBeards builds and runs the systems. Where German law requires it or you want it, we bring in specialised partners and give them the technical basis. Law firms provide legal assessments; security specialists run penetration tests.
- Legal assessment under the GDPR and the EU AI Act
- Data protection impact assessment
- Penetration tests and extended security testing
- Reports on AI governance and regulation
A similar process in your company?
In a free first call, we look at where your team loses time and what a system for it looks like.
Book a free first call