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 chatbot | Fine-tuned model | RAG assistant | |
|---|---|---|---|
| Knows your documents | No | Partly, frozen at training time | Yes, from the live index |
| When a document changes | Not applicable | Retrain | Re-index the document |
| Shows its sources | No | No | Yes |
| Respects document permissions | No | No | Yes, when built into retrieval |