Guide Data, integration, automation
Can staff trust AI answers from your files?
Staff can rely on AI answers from company documents when the search is measured, every answer shows its source and each person sees only what they may see.
- Published
- Reading time
- 7 min read
- Editor
- David Lahuta
In short
- An AI that answers from company documents first searches them for the passages that fit the question, and then writes its answer from those passages.2
- Whether the answer can be trusted depends above all on that search. In its own tests of September 2024, one AI company cut the share of relevant passages its search missed from 5.7% to 1.9%.2
- Answers become dependable when the search is measured on your own questions, every answer shows its source and each person sees only what they may see.14
- A planted or outdated document can turn the answer. In one researcher's test, three planted documents changed the answer in 19 of 20 runs.3
- Who may add and change documents therefore matters as much as who may read them.4
How does an AI answer from your company's documents?
On 28 May 2026 the AI company Mistral AI released Search Toolkit as an open source public preview, a framework for building search for AI applications, made for companies.1 Its announcement put the problem in two sentences, "Most organisations don't have a search problem. They have a dozen search problems."1 The sources it names include internal wikis, support ticket systems, document repositories and file storage.1
The method behind most such answers is called retrieval augmented generation (RAG). In plain words, the system first looks up the passages in your documents that fit the question, then hands them to the AI model together with the question, and the model writes its answer from them.2 The documents are cut into short passages beforehand, so that the search can find the one paragraph that matters rather than a whole manual.2
Cutting has a cost. The AI company Anthropic noted in September 2024 that the usual approach strips each passage of its context.2 Its example is a passage that says only "The company's revenue grew by 3% over the previous quarter", with no word of which company or which quarter.2 The same company notes that a collection smaller than about 500 pages can be given to the model whole, with no search at all.2
Company manuals, procedures and tickets usually run to far more, so the search decides what the model sees. If it brings the wrong paragraph, the answer may read just as fluently and still be wrong. The OWASP GenAI Security Project, an open security community, warns in its list of risks for AI applications that people tend to treat fluent, confident answers as authoritative.4
How do you know the search finds the right passage?
You measure it. Anthropic measured how often a relevant passage was missing from the 20 passages handed to the model, on collections of program code, fiction and scientific papers.2 It then gave every passage a short note of context, added search for exact words and a second step that reorders the results.2
| What the search did | Relevant passages missed | Fewer misses than at the start |
|---|---|---|
| Search by meaning alone | 5.7% | the starting point |
| Each passage given its context first | 3.7% | 35% |
| The same, plus search for exact words | 2.9% | 49% |
| The same, plus a second ranking step | 1.9% | 67% |
These are Anthropic's own measurements on its test collections, not on company manuals.2 What carries over is that the quality of the search can be improved and measured.
The same can be measured on your own documents. Mistral's toolkit measures the search separately from the answer, against a company's own test sets, with standard measures such as recall, the share of the right passages the search finds, and precision, the share of what it finds that is right.1 A test set is simply a list of real questions your people ask, each with the passage that answers it. Run before staff rely on the answers and after larger changes, it shows whether the search still finds what it should.
Why should every answer show its source?
The same list, in its version of 2026, names misinformation as one of the risks, an answer that is wrong or incomplete but credible enough to be acted on.4 It names overreliance as a key factor and advises that claims be grounded in authoritative and current sources, with verified facts kept apart from assumptions.4
For staff this means one habit the system must make easy. Every answer names the document and passage it comes from. An answer without its source asks to be believed. An answer with it can be checked in seconds, before an order is changed or a customer is told something.
Can the AI show a person what they may not see?
It can, if permissions are applied in the wrong place. OWASP advises applying access control at the level of the passage, because a mostly public document can contain a confidential paragraph.4 The permission belongs inside the search itself, not in a filter applied after the results come back.4 OWASP describes a search shared by several organisations that runs across everything before the check, where a user can infer that the others' documents exist and roughly what they are about without ever seeing them.4 By the same logic, the risk can arise between departments of one company. Material of different trust, such as outside web content, confidential internal documents and partner data, should not share one index without firm separation.4
A simple test shows whether this holds. Two people with different rights ask the same question, and the answers should differ exactly where their rights do.
What makes the answers unreliable?
Amine Raji, a researcher, published an experiment on this in March 2026 and updated it in August.3 He built a small system on his own computer with five clean documents, among them results for the fourth quarter of 2025 showing revenue of $24.7 million.3 He then added three documents of his own making, a "correction" presented as issued by the finance director's office, a notice of restated results and notes from an emergency board meeting.3
Asked about the results, the system gave invented revenue of $8.3 million, down 47% on the year, in 19 of 20 runs.3 The true document was among the passages the model received, so it had both figures and chose the correction.3 The planted texts presented the true figure as superseded, and in his words "The LLM treated the correction narrative as more authoritative than the original source."3
He also tested five defences, each alone and then all together.3
| Defence in his test | Runs in which the attack still succeeded |
|---|---|
| No defence | 95% |
| Cleaning documents when they are added | 95% |
| Access control on documents | 70% |
| Stricter instructions to the model | 85% |
| Checking answers for known patterns | 60% |
| Spotting unusual new passages in the index | 20% |
| All five together | 10% |
These are his own results, with limits he states himself. His collection of five documents is, in his words, "a best case for the attacker", and he used a small model on his own computer.3 They are no rate to expect in a company, but they show the mechanism. OWASP adds that published attacks reach high success rates with a handful of planted documents even in collections of millions.4 Anyone who can write to the collection, through file uploads, partner feeds or a compromised internal source, can place such content.4
An outdated document works the same way without any attacker. OWASP lists stale context among the causes of wrong answers.4 An old price list still in the collection can be quoted as readily as the current one. OWASP also advises deleting a document's searchable copies when the document is deleted, and recording for every passage where it came from and when it was added, so that a bad batch can be withdrawn.4
What should be in place before staff rely on it?
Before you decide
- A test set of real questions from your people, each with the passage that answers it, and the search measured on it before use and after larger changes.
- Every answer names its document and passage, and the person can open the source in a moment.
- Permissions applied inside the search, down to the paragraph, and tested by two people of different rights.
- A named owner for each collection of documents, who decides what goes in and what is withdrawn.
- Only approved people and systems may add or change documents, and every addition records its source and date.
- Outdated versions withdrawn, and their searchable copies deleted when the document is deleted.
- Every question and answer recorded together with the passages used, so that a wrong answer can be traced.
- For a decision with consequences, a person checks the source before acting on the answer.
Next step
If it would help, we are glad to try one real question your people ask against your own documents in a short meeting, to see what comes back and from where. The AI Business Harness answers from company data with a link to the source and works with each user's permissions, so what a person may not see, it does not see either. What you do with the result is entirely your decision.
Sources
- 1. Mistral AI, Introducing Search Toolkit, 28 May 2026. Read on 20 November 2026
- 2. Anthropic, Introducing Contextual Retrieval, 19 September 2024. Read on 20 November 2026
- 3. Amine Raji, RAG poisoning. How attackers corrupt your AI's knowledge base, 12 March 2026, updated 5 August 2026. Read on 20 November 2026
- 4. OWASP GenAI Security Project, OWASP Top 10 for LLM Applications 2026, version of 4 August 2026, LLM02 Sensitive Information Disclosure, LLM07 Misinformation and LLM09 Vector and Embedding Weaknesses. Read on 20 November 2026
Change log
- Published.