Lotus LibreAI systems
Book audit
AI agents

RAG Knowledge Assistant: Architecture, Costs and Pitfalls

How to build a company knowledge assistant with RAG: reference architecture, permissions, evals, 2026 costs from €7k, EU hosting and pitfalls to avoid.

  • By the Lotus Libre team
  • 9 min read
On this page
  1. How RAG works, in plain language
  2. Reference architecture
  3. Permissions are the hard part
  4. Retrieval quality beats model choice
  5. Citations and “I don’t know”
  6. Connectors via MCP
  7. Use cases by team
  8. RAG or fine-tuning?
  9. Buy or build?
  10. What it costs in 2026
  11. Measuring quality with evals
  12. Data protection and hosting in Europe
  13. Common pitfalls
  14. A 6–8 week rollout
  15. Conclusion

Every company has the same problem in a different shape: the answer exists, but nobody can find it. The current price list is in a SharePoint folder, the exception policy in a Confluence page from 2024, the technical detail in a closed ticket and the real explanation in a colleague’s head. New employees ask the same questions; experienced ones answer them again and again.

A knowledge assistant built on retrieval-augmented generation (RAG) promises to fix this: ask in plain language, get an answer from your own documents with a link to the source. Demand is real — in Anthropic’s 2026 survey, 41% of technical leaders named knowledge-base management among the most effective uses of AI agents (Anthropic).

But the internal chatbot is also the AI project most likely to become shelfware. The demo impresses, then usage drops because answers are outdated, permissions leak or nobody can tell whether an answer is right. This guide explains the architecture that avoids those failures, what it costs in 2026 and how to roll it out.

How RAG works, in plain language

  1. Ingest. Connectors pull documents from your systems and keep them in sync, including updates and deletions.
  2. Parse and chunk. Documents are converted to clean text and split into passages that keep headings, tables and context together.
  3. Index. Each passage is stored with an embedding (a numerical representation of meaning) and with keywords and metadata such as source, date, language and access rights.
  4. Retrieve. When someone asks a question, the system finds the most relevant passages the user is allowed to see.
  5. Rerank. A second, more precise model reorders the candidates so the best evidence comes first.
  6. Generate. The language model writes an answer using only those passages and cites them.
  7. Log and evaluate. Questions, retrieved sources, answers, feedback, latency and cost are recorded so quality can be measured.

The model is only step six. Most of the quality — and most of the work — sits in the other six.

Reference architecture

Layer What it does Typical choices Key decision
Connectors Sync from Confluence, SharePoint, Google Drive, Notion, helpdesk, CRM Native APIs, MCP servers Incremental sync and propagation of deletions
Parsing and chunking Turns PDFs, slides and tables into clean passages Layout-aware parsers Keep tables and headings intact
Index Stores passages for search Postgres with pgvector, OpenSearch, Qdrant Hybrid search: semantic plus keyword
Permissions Filters results to what the user may see Sync of access lists, SSO groups Enforce at retrieval, never only in the prompt
Model Writes the answer Cloud models (OpenAI, Anthropic, Google) or EU and self-hosted (Mistral) Keep it swappable behind a gateway
Guardrails Answer only from sources, refuse otherwise System instructions, output checks A clear “I don’t know” path
Evaluation and observability Measures quality, cost and latency Langfuse, Helicone, custom dashboards Test set from day one
Interface Where people ask Teams, Slack, intranet, helpdesk sidebar Meet users where they already work

Permissions are the hard part

Integrations and access control typically consume 40–60% of a RAG project’s budget (ment.tech). The reason is simple: if the assistant can read HR files, board minutes or salary data, someone will eventually ask the question that surfaces them. Permissions must be enforced when passages are retrieved, based on the user’s real access in the source system. Telling the model “do not reveal confidential data” is not access control.

Retrieval quality beats model choice

Most wrong answers are not caused by a weak model but by the wrong passages. Proven improvements: hybrid search (semantic similarity plus exact keywords, which matter for product codes and names), reranking, metadata filters (country, product line, validity date) and chunking that keeps a table together with its heading.

Citations and “I don’t know”

Every answer should link to its sources so users can verify it in one click. Equally important: when retrieval finds nothing relevant, the assistant must say so and suggest who to ask, instead of improvising. An honest “I don’t know” builds more trust than a fluent guess.

Connectors via MCP

The Model Context Protocol has become the standard way to connect AI systems to company tools. Since December 2025 it has been governed by the Agentic AI Foundation under the Linux Foundation (MCP blog), and there are more than 10,000 public MCP servers (Digital Applied). That shortens connector work, but each server still needs a security review. Our article on MCP integrations explains how to connect them safely.

Use cases by team

The same architecture serves very different teams. What changes is the sources, the permission model and the definition of a good answer.

Team Typical questions Main sources What makes it work
Customer support “What is the warranty for model X in Austria?” Help centre, policies, product data, solved tickets Current policies, citations agents can paste
Sales and pre-sales “Do we support single sign-on? Which reference customers in logistics?” Product docs, security answers, case studies Approved wording, version dates
HR and onboarding “How do I request parental leave?” Handbook, policies, forms Strict separation from personal HR files
IT helpdesk “How do I connect to the VPN on a new laptop?” Runbooks, previous tickets Step-by-step answers, links to forms
Engineering and service “Torque value for this assembly? Maintenance interval?” Manuals, specifications, service reports Table-aware parsing, exact numbers, on-premise option

RAG or fine-tuning?

A common question in early conversations is whether to “train the model on our data” instead. For company knowledge, the answer is usually no. Fine-tuning changes how a model writes, classifies or follows a format; it does not reliably teach it facts, cannot cite a source and has to be repeated every time a document changes. Worse, it cannot respect permissions — whatever is trained into the model is available to everyone who uses it.

RAG keeps knowledge outside the model, current and attributable. Fine-tuning can still play a role later, for example to make a smaller, cheaper model follow your answer format, but it is an optimisation, not the foundation.

Buy or build?

Built-in assistants — Microsoft Copilot, assistants inside Confluence, Notion or your helpdesk — work well when almost all knowledge lives in one suite and its permission model. Microsoft Copilot Studio, for example, is priced at $200 per 25,000 credits (CloudZero).

A custom assistant makes sense when:

  • knowledge is spread across several systems that no single vendor covers;
  • permissions are complex, for example by country, client or project;
  • you need several languages with consistent quality;
  • data must stay in the EU or on your own servers;
  • answers should lead to actions, such as creating a ticket or updating a CRM record;
  • you need measurable accuracy per domain, not a general impression.

The basic “chat with our documents” bot is becoming a commodity. The value of a custom build lies in the parts a generic tool does not handle: your permissions, your sources, your quality measurement.

What it costs in 2026

Tier Typical scope Europe US Timeline
Starter 1–3 sources, citations, web or chat widget €7–14k plus €180–380 per month $15–30k Proof of concept in about 2 weeks
Business 5–10 sources, permissions, CRM integration €14–28k $40–75k Production in 4–8 weeks
Enterprise Multi-tenant, compliance, ERP or CRM actions €28–45k $80–150k+ 2–4 months with ERP or CRM

Sources: LSI Analytics for European prices, ment.tech for US prices.

Running costs for tokens and hosting are typically €180–700 per month (LSI Analytics); at scale an average agent spends $50–500 per month on models (Lets-Viz). You keep them predictable by routing simple questions to cheaper models, caching frequent answers and setting budgets with alerts. See our article on the LLM gateway and cost control.

Measuring quality with evals

Before launch, collect 100–200 real questions from the teams that will use the assistant, with the correct answer and the source document confirmed by the content owner. This test set is your quality contract.

Metric Question it answers
Retrieval hit rate Did the right document appear among the top results?
Answer correctness Is the answer factually right according to the owner?
Citation accuracy Do the cited passages actually support the answer?
Correct refusals Does the assistant say “I don’t know” when the answer is not in the sources?
Permission tests Does a user without access get no trace of restricted content?
Latency and cost per answer Is it fast and affordable enough for daily use?
Usage and feedback Do people come back, and what do they flag?

Re-run the set after every change to prompts, models, chunking or sources. Without it, every “improvement” is a guess. Our article on AI evals covers the method in detail.

Data protection and hosting in Europe

European buyers care where their AI comes from: according to Deloitte data, 77% of companies consider the AI vendor’s country of origin and 66% worry about dependence on foreign AI (DEV Community). In Germany, data protection requirements are the top barrier for 66% of companies already using AI (Bitkom).

You have three main options:

  1. Cloud model with EU data processing and a DPA — the quickest start, with the strongest models.
  2. EU-hosted model endpoints — the model runs in an EU region, with contractual guarantees on data use.
  3. Self-hosted open-weight models (for example Mistral) on your own or EU servers — maximum control, more operational work.

Whatever you choose: do not index everything (HR records and personal data often do not belong in a general assistant), define retention for logs, and make sure deletions in the source system reach the index — otherwise the right to erasure under the GDPR becomes a problem. For the self-hosted route, see private and on-prem LLMs.

Common pitfalls

  • Stale sources. If nobody owns the content, the assistant confidently repeats last year’s prices. Give every source an owner and a review date.
  • Permission leaks. Retrieval without access filtering is a data breach waiting for the right question.
  • Indexing everything. More documents do not mean better answers. Start with the sources people actually need and that are maintained.
  • Broken tables and scans. Price lists and specifications often live in tables; poor parsing turns them into noise.
  • No evaluation set. Without it, nobody can tell whether a change helped or hurt.
  • Prompt injection via documents. An uploaded file or web page can contain instructions aimed at the model. Treat content as data, restrict tools and keep sensitive actions behind human approval.
  • No adoption plan. Put the assistant where people work, train them in 30 minutes, and publish what it can and cannot answer.
  • Lock-in. Keep the index, prompts and test sets in your own accounts so you can change the model or vendor.

A 6–8 week rollout

  1. Weeks 1–2: scope. Choose one team and one domain (for example customer support or sales engineering), list the sources and owners, collect the test questions.
  2. Weeks 2–4: build. Connectors, parsing, hybrid index, permissions, first answers with citations; measure against the test set.
  3. Weeks 4–6: pilot. Ten to thirty real users, daily feedback, weekly evaluation runs, fixes to sources and chunking.
  4. Weeks 6–8: launch and handover. Open to the whole team, set up monitoring, cost alerts and a monthly content review.

Conclusion

A knowledge assistant succeeds or fails on unglamorous details: which sources it reads, who keeps them current, whether permissions are enforced and whether quality is measured. Get those right and the model choice becomes a detail you can change later. Get them wrong and even the best model will produce confident nonsense.

If you want a realistic estimate for your sources, permissions and hosting requirements, book a free 15-minute audit. We will tell you whether a built-in assistant is enough or where a custom RAG setup pays off. Learn more about our AI agents and systems integration work.

Frequently asked questions

What is a RAG knowledge assistant?

An assistant that retrieves relevant passages from your company’s documents, such as the wiki, SharePoint, shared drives or tickets, and lets a language model answer using only those passages, with links to the sources. RAG stands for retrieval-augmented generation.

How much does an internal RAG chatbot cost?

European benchmarks for 2026 are €7–14k for 1–3 sources, €14–28k for 5–10 sources with CRM integration and €28–45k for enterprise setups, plus €180–700 per month for tokens and hosting. US agencies quote $15–150k or more depending on scope.

Do I need RAG or fine-tuning?

For company knowledge, RAG is usually the right start: it uses current documents, cites sources and can respect access rights. Fine-tuning changes how a model writes or classifies, not what it knows today, and it does not handle permissions.

How do I stop a RAG assistant from hallucinating?

Retrieve well with hybrid search and reranking, instruct the model to answer only from retrieved sources and cite them, allow it to say it does not know, keep sources current with named owners and measure answers against a test set of real questions.

Can a RAG assistant run in the EU or on-premise?

Yes. The index and application can run in an EU data centre, and the model can be an EU-hosted endpoint or open-weight models such as Mistral on your own servers. The trade-off is operational effort versus control over data.

Want this working in your business?

Book a free 15-minute AI audit. We’ll tell you honestly whether it pays off — and where to start.

Book a 15-min AI audit

§Insights

Related articles