AI engineeringData
When can you rely on an AI knowledge assistant?
Getting an assistant to answer questions over your own files makes an impressive demonstration; getting people to trust it takes longer. Trust rests on five properties that can be designed in and checked continuously: access rights, traceable sources, currency, honest gaps and quality that is measured.
- By
- FromNine editorial team
- Published
- Reading time
- 6 min read
Key takeaways
- Apply access rights when passages are retrieved, for the individual user and as the source systems define them. Do not count on the model to hold back a passage once it has seen it.
- Whatever the assistant states should link to a passage a reader can open and check in seconds, with its date and status in view.
- Test retrieval and answers on real questions before going live, and keep testing afterwards, because documents and models keep changing.
Contents
Why the demonstration misleads
Most knowledge assistants are built on the approach called retrieval-augmented generation (opens external site): look up the passages relevant to a question, then let a language model compose an answer based on them. Give it a tidy folder of fifty documents and you will have a persuasive demonstration within a week.
Real use is another matter. A Government department may hold years of circulars, procedures, minutes and case notes; a pharmaceutical plant thousands of SOPs in several versions; a bank compliance manuals that are revised every quarter. Much of it is duplicated, out of date or restricted. There the assistant can fail twice over. It answers wrongly and staff abandon it. Or, worse, it answers wrongly with assurance and staff act on what it said.
Whether such an assistant deserves trust depends less on the model than on five qualities of the system that surrounds it. Each one can be designed and, just as important, tested.
Access rights: retrieve only what this user may read
The principle is straightforward: the assistant must never show anyone a passage that the original system would refuse to open for them. What counts is where the rule is enforced. Assume that any passage handed to the model may turn up in its answer. Access rights therefore have to be applied before the answer is written, when passages are retrieved, for the person asking.
Two risks on the OWASP list for language model applications apply here: sensitive information disclosure (opens external site) and vector and embedding weaknesses (opens external site), which includes leaks across permission boundaries. Four requirements follow.
- Keep each source document’s access rights on every chunk in the index, copied from the source system and not rebuilt by hand.
- Filter on those rights at the moment of the query, using the identity of the person signed in, before anything is ranked or generated.
- Pass changes in permissions through at least as fast as changes in content, and agree how quickly a withdrawn right must take effect.
- Test with the real roles. A test that checks whether a new recruit can see the pay scales belongs in your suite before go-live, not in a review after the leak.
Sources: citations a reader can verify
Whatever the answer claims should be traceable to its passage: the document title, its version or date, its owner, and a link that opens at the right spot. Show the passage itself and not just the file name, so the reader sees at a glance whether it supports the sentence.
Shape the answer so that unsupported text is obvious. Where no retrieved passage backs a sentence, the system should drop it or flag it. Check this automatically too: hold each cited passage against the claim it is supposed to support, and send a sample of the results to a person for review. Citations that exist but do not back up the claim are a frequent failure that is easy to miss.
Currency and the authoritative source
Knowledge inside an organisation comes in versions. Last year’s circular and the one that replaced it both match a question about the procedure for a refund, and they give opposite answers. Index the metadata that separates them: the date from which a document applies, its status (draft, approved, superseded) and its owner. Put current, approved documents first, leave out superseded ones unless the user asks for the history, and show the date in every citation.
Settle per subject which source has the final word. HR rules come from the HR portal, not from an email quoting an earlier version. Decide how often each source is indexed again, from close to real time for case data to once a day for an intranet, and monitor it: an index that has gone stale yields answers that look correct and are not.
Honest gaps: saying “I could not find this”
Frequently the most useful reply is an admission that nothing reliable was found. Language models can write smooth statements that nothing supports, which NIST calls confabulation (opens external site) in its profile for generative AI. Basing the answer on retrieved passages makes this rarer but does not rule it out. OWASP treats the knock-on effect, people acting on false output, as a separate risk under misinformation (opens external site).
Fix a relevance threshold below which the assistant says it has no reliable source and points to where the user can ask instead. On questions about policy, entitlements or obligations, do not allow the model to fill gaps from general knowledge. Then follow the rate of unanswered questions per subject. In the first months that list is often the most valuable result of the project, because it shows document owners exactly where guidance is missing.
How the system is put together
You do not need unusual technology for any of this. You need access rights, metadata and checks to be built into the pipeline from the start, not bolted on once the demonstration is over.
Figure 1
Illustrative workflowRead the diagram as text
Documents are taken from the source systems with their access rights and metadata such as date, status and owner, and then indexed.
A question comes in together with the identity of the person signed in. A permission filter removes each passage that person may not read, before the model sees anything.
The model writes a draft answer that cites the passages left over. A grounding check holds each statement against its cited passage. The user gets either an answer with citations or a plain statement that no reliable source was found.
Personal data needs deliberate attention. Indexing documents still counts as processing the personal data inside them, so the GDPR principles of purpose limitation and data minimisation (opens external site) (Article 5) apply, under the supervision of the Information and Data Protection Commissioner (IDPC) in Malta. Exclude sources the use case does not need, make sure deletions in a source system reach the index, and cover the index when you reply to a subject access request.
Quality measured before go-live and after
Trying a handful of questions in a meeting tells you nothing about trustworthiness. Agree quality criteria with the owners of the documents and measure each layer on its own, so that you know where a fault lies.
| Layer | What you want to know | How you measure it |
|---|---|---|
| Retrieval | Were the right passages found? | Recall and precision on a labelled set of genuine questions |
| Grounding | Does its citation back every statement? | Automatic checks of claim against passage, with a reviewed sample |
| Answer | Is it correct, complete and of use? | Subject experts score a sample against agreed criteria |
| Access | Did anybody see what they should not? | A permission test suite for each role, rerun whenever the index or a connector changes |
| Use | Do staff depend on it, and where does it break down? | Feedback, unanswered questions per subject, follow-up questions, escalations |
Assemble the test set from questions people really ask: search logs, helpdesk tickets, what new colleagues want to know in their first weeks. A few hundred questions with answers agreed by the document owners is a workable start. Run the whole set after every change, be it a new model, a new way of chunking or a new source. Quality slips without warning when content changes, and only a fixed test set brings the slip to light.
What a user notices when it works
For the public officer, the quality manager or the compliance analyst using it, all of this comes down to a few things they can observe. The assistant answers only from documents they are entitled to read. Every claim carries a citation they can open. They can see how recent a source is. They hear plainly when no reliable answer exists. And they know quality is being watched, because they can flag a wrong answer and see it corrected.
An AI answer can still be wrong, and some questions call for a person rather than a search. Being open about that is no weakness in the design. It is the reason people are prepared to depend on the assistant for everything else.
Sources
- arXiv. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020) (accessed )
- OWASP GenAI Security Project. LLM02:2025 Sensitive Information Disclosure (accessed )
- OWASP GenAI Security Project. LLM08:2025 Vector and Embedding Weaknesses (accessed )
- OWASP GenAI Security Project. LLM09:2025 Misinformation (accessed )
- National Institute of Standards and Technology. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) (accessed )
- EUR-Lex. Regulation (EU) 2016/679 (General Data Protection Regulation), Article 5 (accessed )
Continue reading
- ServiceAI Engineering & GenAIGenerative AI that keeps working after go-live: retrieval, choice of models, evaluation and LLMOps.
- SolutionEnterprise knowledgeAn assistant that answers from your circulars, manuals and procedures, respects who may read what, and cites the passage behind each statement.
- InsightAI agents and the approval step: when a person has to say yesAn agent can prepare nearly any action. A workable method, with examples from a local council and an investment services firm, for deciding what it may finish alone and what a person approves.
- InsightThe AI Act in Malta: what ministries and public entities should prepare by December 2027Malta has designated the MDIA and the IDPC under the AI Act. The high-risk rules start in December 2027, yet several duties already apply. A dated plan for Government ministries, departments and public entities.
Want staff to find answers in your own documents?
We build knowledge assistants on the sources you already have, with access rights, citations and a test set agreed with your document owners from the first sprint onwards.