Skip to content
Hendez
← All guides

Guides

How a company knowledge assistant (RAG) works — and when it is the right choice

Last updated

Short answer

A company knowledge assistant built with retrieval-augmented generation (RAG) answers staff questions from your own documents. When a question comes in, the system first searches an index of your approved documents, passes the most relevant passages to a language model, and the model writes an answer that cites those passages. The model is not retrained on your data, so documents can be added, updated or removed the same day, and access rules can follow your existing permissions.

How RAG works, step by step

1. Collect: agree which sources are in scope (procedures, contracts, technical specifications, product sheets, tickets) and who owns each. 2. Prepare: convert files to text, split them into passages, attach metadata (department, date, access level, language). 3. Index: create embeddings and store them in a vector index next to a keyword index.

4. Retrieve: for each question, find the passages the user is allowed to see. 5. Generate: the language model is instructed to answer only from those passages and to show the sources; a "not found" rule reduces, but does not eliminate, wrong answers. 6. Check: log questions, answers and sources, and review unanswered or wrong answers weekly.

Where RAG assistants fail, and how to prevent it

Poor source files (scans without OCR, outdated duplicates) → a source inventory and an owner for each document before indexing. Wrong passage retrieved → hybrid search (keyword + vector), metadata filters and a test set of real questions from your teams.

Answers beyond the sources → the assistant says "not found in the documents" and every answer shows citations. Permission leaks → access control applied at retrieval time, not only in the interface. Nobody maintains it → a named owner, a weekly log review and a re-index routine.

Where the assistant runs, and which rules apply

The model and index can run on your own servers, in a private cloud tenant in your region, or through an API with contractual data terms. The choice depends on data classification and cross-border transfer rules; see on-premise or cloud AI.

Under the EU AI Act (Regulation (EU) 2024/1689, as amended by Regulation (EU) 2026/1744), an internal knowledge assistant is usually not a high-risk system, but that depends on the use: it changes if it is used in Annex III areas such as recruitment or credit decisions. Article 50 transparency duties apply where people interact with it. Personal data rules (KVKK, GDPR, Saudi or Oman PDPL) depend on whose data the documents contain. If you run an ISO/IEC 42001 management system, the assistant belongs in its AI inventory.

How Hendez delivers it

1. Two-week scoping: sources, users, 30–50 real test questions, hosting decision. 2. A prototype on a limited document set, measured against the test questions. 3. Rollout with permissions, logging, training for users and document owners, and handover documentation.

Related: private company AI model (service, with a detailed RAG vs fine-tuning comparison) · AI vendor due diligence · EU AI Act timeline

This page is general information, not legal advice. Last updated: 28 September 2026.

Scope, deliverables and what we need from you: RAG consulting.

RAG assistant vs fine-tuned model vs general chatbot

General chatbotFine-tuned modelRAG assistant
Knows your documentsNoPartly, frozen at training timeYes, from the live index
When a document changesNot applicableRetrainRe-index the document
Shows its sourcesNoNoYes
Respects document permissionsNoNoYes, when built into retrieval

Frequently asked

Frequently asked

What is RAG in simple terms?

A method where the AI first looks up the relevant parts of your documents and then answers from them, showing the sources.

Does RAG train the model on our data?

No. The documents stay in a separate index; the model reads only the passages retrieved for each question.

Can it work in Turkish and Arabic?

Yes, if the embedding and language models chosen support those languages. We test with real questions in each language before rollout.

Can different departments see different documents?

Yes, when access control is applied at retrieval time, so users only get answers from documents they are allowed to open.

How long does a first prototype take?

It depends on the number and condition of the documents; the scope is fixed in the first two weeks, before any build.

Sources

  1. Lewis et al. (2020), Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  2. Regulation (EU) 2024/1689 (AI Act) — EUR-Lex
  3. Regulation (EU) 2026/1744 (Digital Omnibus on AI) — EUR-Lex
  4. ISO/IEC 42001:2023

Let us begin

Let us discuss this on your own operation. The first session is free.