RAG system for chatbots on your own documents

A RAG system answers questions from your documents and names the source. We develop it from data preparation to the chatbot and anonymise personal data before indexing.

Today

  • Your knowledge is scattered across PDFs, Office files, wikis and drives
  • People search for a long time and find outdated versions
  • Domain questions go to colleagues by word of mouth
  • A language model on its own does not know your content

With a RAG system

  • Every answer rests on your documents and names the source
  • Project A replaces personal data before indexing
  • Azure Cognitive Search finds the relevant passages
  • Your users' feedback flows into the next sprints

Approach

A chatbot that knows your documents

  1. Step 1

    Questions

    Clarify which questions the system should answer and which documents exist

  2. Step 2

    Anonymise

    Prepare the data, replace personal data with Project A before indexing

  3. Step 3

    Search index

    Index on Azure Cognitive Search, PDFs via Azure Document Intelligence

  4. Step 4

    RAG pipeline

    Connect Azure OpenAI and LangChain, developed in sprints

  5. Step 5

    Operations

    Tests, deployment via Azure DevOps, then evaluate user feedback

Services

What we develop for you

Focus

RAG pipeline

Search and language model connected with Azure OpenAI and LangChain, every answer with its source.

  • Every answer from your documents, with its source
  • Personal data replaced before indexing
  • PDFs processed via Azure Document Intelligence
  • User feedback feeds into the next sprints

Azure OpenAI · LangChain · Python

Anonymisation before indexing

Project A detects personal data with NER and transformer models and replaces it.

Project A (Anonymisierung)

Search index

An index on Azure Cognitive Search, connected to your document base.

Azure Cognitive Search · Azure Document Intelligence

Chatbot and knowledge management

A chatbot that answers from your documents, tested and improved based on user feedback.

pytest · Azure DevOps

References

From a project

  • Microsoft Azure
  • OpenAI

An IT services provider in the SAP space

RAG chatbot on the existing document base

Challenge

Generative AI was to answer questions from the existing document base in knowledge management.

What we did

A RAG chatbot combining Azure OpenAI, Azure Cognitive Search and Azure Document Intelligence. We coordinated the project, developed the backend logic and connected the models.

Outcome

The chatbot has been piloted and user feedback evaluated.

  • Azure OpenAI
  • Azure Cognitive Search
  • Azure Document Intelligence

Technologies we use

  • Azure OpenAI
  • Azure Cognitive Search
  • LangChain
  • Python
  • Azure Document Intelligence
  • Azure ML
  • Streamlit
  • pytest
  • Azure DevOps
  • Project A (anonymisation)

FAQ

RAG system, FAQ

What is a RAG system?

RAG stands for retrieval-augmented generation. A RAG system connects a language model to your own documents. For each question it first finds the relevant passages and passes them to the model as context. The answer therefore rests on your content and names its sources.

How does a RAG chatbot stay GDPR-compliant?

We handle personal data before indexing. Our product Project A detects it with NER and transformer models and anonymises or pseudonymises it. Only then does the content enter the search index. Detected personal data therefore does not reach the language model.

Which technologies does ainovi use for RAG?

In the reference project we used Azure OpenAI for answers, Azure Cognitive Search for search and Azure Document Intelligence for documents, connected with LangChain in Python. For operation we rely on pytest and Azure DevOps. On AWS and Google Cloud we support the same setup with the services available there.

Does ainovi develop production systems or only prototypes?

Our RAG reference project was a pilot. We support the path into operation with tests, CI/CD and monitoring from our machine learning projects. After a go-live we evaluate user feedback and improve the system in sprints.

Get started

A RAG system for your documents

In an initial conversation we clarify the use case, documents and data protection.