Skip to content
Giminger ConsultingDE

Practical guides · SMEs · Enterprises · Start-ups

AI Knowledge Assistant with RAG: Making Company Knowledge Accessible with AI

How a RAG-based AI knowledge assistant works: sources, permissions, evaluation, build vs buy, cost drivers and common pitfalls.

Short answer

An AI knowledge assistant answers questions from employees or customers based on your own company documents. Technically it usually uses retrieval-augmented generation (RAG): for each question, relevant passages are retrieved from manuals, policies, tickets or wikis and passed to a language model, which writes an answer with citations. Success depends on choosing and maintaining sources, correctly inheriting access permissions and systematic testing with real questions. Off-the-shelf tools cover standard cases; custom builds pay off for unusual sources, permissions or quality requirements.

Key takeaways

  • RAG combines search over your own documents with a language model that writes cited answers.
  • Quality depends more on sources, preparation and retrieval than on the model chosen.
  • Permissions must be inherited from source systems, or confidential content becomes visible.
  • A test set of real questions with expected answers is a prerequisite for going live.
  • Buy for standard sources; build for special requirements.

How does a RAG knowledge assistant work?

Language models do not know your company. They know nothing about internal processes, product details or current policies. Retrieval-augmented generation solves this without retraining the model: for each question your documents are searched first and the model receives the passages found as the basis for its answer.

Technically this happens in two phases. During ingestion, documents are read from source systems, split into meaningful chunks, tagged with metadata such as title, date and permissions, and stored in a search index. Vector search, which matches meaning, is often combined with classic keyword search. At query time, the most relevant chunks are retrieved, possibly re-ranked, and passed to the language model together with the question and clear instructions.

The model writes an answer and cites the sources used, so users can check where a statement comes from. If nothing relevant is found, the assistant should say so openly rather than give a plausible but invented answer.

  1. Ingest documents from source systems
  2. Split into chunks with metadata and permissions
  3. Store in a search index, often with vector and keyword search
  4. Retrieve and rank chunks relevant to the question
  5. Generate a cited answer with the language model
  6. Say so openly when information is missing

Which sources belong in a knowledge assistant?

It is tempting to connect every drive. That almost always produces worse answers. Outdated drafts, duplicates and conflicting versions confuse both retrieval and the model. Fewer, well-maintained sources give better results.

Start with a clearly scoped knowledge domain that has an owner, such as product documentation, IT help or HR policies. Clarify which documents are valid, who maintains them and how new versions reach the index.

  • Valid, current documents with clear ownership
  • Structured sources such as wikis, manuals and product data sheets
  • Resolved support tickets, if cleaned and approved
  • No drafts, duplicates or personal folders
  • No content whose use is legally or contractually unclear
  • Regular updates and removal of outdated content

A knowledge assistant is only as good as the knowledge you give it. Maintaining sources is the most important and most underestimated task.

How do you make sure the assistant respects permissions?

Every company has information not everyone may see: salaries, contract details, board papers, personnel files. A knowledge assistant must not erode those boundaries. If an employee cannot open a document in the file store, the assistant must not answer her from it either.

Technically, permissions from source systems are carried into the index and filtered on every search before content reaches the model. Changes must be synchronised reliably, for example when someone switches team. It is often simpler and safer to start with sources that are open to all users of the assistant.

There are also security issues typical of language models. Documents can contain instructions that push the model into unwanted behaviour, known as indirect prompt injection. A read-only assistant without further tools is far less exposed than one that may also take actions.

How do you test and evaluate answer quality?

Without systematic testing it remains unclear how good an assistant really is. A few impressive answers in a demo say little about how it handles difficult or unusual questions.

Build a test set before launch: 50 to 150 real questions from daily work, each with the expected answer and the correct source. Assess whether the right chunks were retrieved, whether the answer is correct, whether it relies only on the sources and whether the assistant stays honest when information is missing. Part of the grading can be automated; spot checks by domain experts remain important.

Re-run the tests on every change to sources, ingestion, retrieval or model. That shows whether a change is really an improvement.

Evaluation criteria for a knowledge assistant
CriterionQuestionTypical cause of weakness
Retrieval qualityWere the right chunks found?poor chunking, missing metadata, wrong search method
CorrectnessIs the answer factually right?outdated or conflicting sources
GroundednessDoes the answer rely only on the sources?unclear instructions to the model
Honesty about gapsDoes it say when it does not know?no rule for unanswerable questions
PermissionsDoes everyone see only what they may?permissions not inherited or not current

Build or buy: which knowledge assistant fits?

Many platforms now offer knowledge assistants. Office suites such as Microsoft 365 and Google Workspace include AI search across their own documents, wiki and help desk vendors have built-in assistants, and specialist vendors connect several sources. Alternatively you can build an assistant with models from various providers or open models on your own infrastructure.

The decision depends mainly on where your knowledge lives, how much control over data and models matters, and how demanding your quality and traceability requirements are.

Off-the-shelf tool vs custom build
CriterionOff-the-shelfCustom build
Time to startfast, often daysweeks to a few months
Sourcesmainly within the vendor's ecosystemany system, including specialist software
Customisationlimitedretrieval, ingestion and answers fully configurable
Control over data and modelset by the vendorfree choice, including self-hosted
Evaluationoften little visibilityfully controllable
Costlicence per userdevelopment plus operations and model usage
Best forstandard sources in one ecosystemscattered sources, special permissions, high quality bar

What drives the cost of a knowledge assistant?

No serious price can be given without knowing sources, user numbers and requirements. As rough orientation: a pilot for a clearly scoped domain with readable documents is often a project of a few weeks. Several source systems, complex permissions and high quality requirements extend the work considerably.

Running costs come from model usage, which grows with the number and length of queries, from the search index and hosting, and from maintaining sources and tests. Maintenance is often forgotten but decisive for lasting quality.

Cost and risk can be limited by expanding step by step: first one knowledge domain with clear sources and a small user group, then further domains once test results and usage convince. The expensive parts, such as complex permissions or additional integrations, are then built only once the value is proven.

  • Number and type of source systems and file formats
  • Document quality, e.g. scanned PDFs or tables
  • Complexity of permissions
  • Number of users and queries
  • Requirements on data location and model choice
  • Scope of the test set and quality assurance
  • Integration into existing interfaces such as Teams, Slack or the intranet

What does a knowledge assistant look like in practice?

Example 1, machinery: a manufacturer with 300 staff wants service technicians to find answers on error codes and maintenance steps faster. Sources are technical manuals, service bulletins and resolved tickets from recent years. Tickets are cleaned first and only included with approved solutions. The assistant answers with a reference to the manual page and bulletin. It is tested with 120 real questions from service work, graded by two experienced technicians.

Example 2, HR: a services firm with 80 staff answers many recurring questions about leave, travel expenses and remote work. The assistant uses only the valid policies open to everyone. For questions about individual cases it refers to HR. Confidential data stays out, and the permission question is solved simply.

What are the common pitfalls with RAG assistants?

Many projects start with enthusiasm and lose usage after a few weeks, usually because disappointing early answers cost trust. A careful pilot with a small group and clear boundaries prevents this.

A second pitfall is tables, images and scanned documents, which are harder for retrieval and models than running text and need their own preparation. A third is missing ownership of content: if nobody updates documents, the assistant goes stale with them.

  • Connecting every drive without filtering
  • Ignoring permissions or syncing them only once
  • Going live without a test set
  • Treating tables, scans and images like running text
  • No named owners for sources
  • Not telling users what the assistant can and cannot do

When is a knowledge assistant worth it, and when is it not?

A knowledge assistant pays off when many people regularly search extensive documents for information, when expertise is concentrated in a few people who constantly answer questions, or when new staff need to get up to speed faster.

It is usually not worth it when knowledge lives mostly in people's heads rather than documents, when sources are badly outdated and nobody has time to maintain them, or when there are only a handful of questions a week. Then documentation comes first, or a good classic search is enough.

Portrait of Eugen Giminger

Want to apply this to your business?

Eugen Giminger builds RAG knowledge assistants from source selection through ingestion, permissions and retrieval to a test set of real questions. He also helps decide whether an off-the-shelf tool is enough or a custom build makes sense. Feel free to discuss your knowledge domain in a non-binding conversation.

Frequently asked questions

What is RAG in simple terms?

RAG stands for retrieval-augmented generation. For each question, relevant passages are first retrieved from your documents and then passed to a language model, which writes an answer with citations. That lets the model use company knowledge without retraining.

Is RAG better than fine-tuning a model on our data?

For knowledge questions, usually yes. RAG is more current because new documents are available immediately, more traceable thanks to citations and easier to combine with permissions. Fine-tuning is better suited to improving style, format or specialised tasks.

Can a knowledge assistant be GDPR compliant?

Yes, if legal basis, processing agreements, data minimisation and permissions are settled. It is easiest with sources containing no personal data. Models can also run in the EU or on your own infrastructure. Coordinate with your data protection officer.

How do you stop the assistant from making things up?

With clear instructions to answer only from retrieved sources, citations in every answer, a rule for unanswerable questions and regular testing. Errors cannot be ruled out entirely, so users should check sources for important questions.

Which model is best for a RAG assistant?

It depends on language, quality requirements, data location and cost. Models from various providers and open models are all options. Sources, preparation and retrieval matter more than the model, along with an architecture where the model is swappable.

Sources and further reading

Providers, models and prices change quickly. Legal notes are orientation, not legal advice.