#AI
AI on your own documents: how retrieval-based assistants work
How an AI assistant answers from your company's own files, what it takes to set one up, and the limits to expect.
A retrieval-based assistant answers questions using your company's own files instead of the general knowledge a language model was trained on. It finds the relevant passages first, then writes an answer from them and shows its sources. It is only as good as the documents behind it.
The mechanism in four steps
- Your documents are split into passages and indexed so they can be searched by meaning, not only by exact words.
- When someone asks a question, the system retrieves the passages most likely to contain the answer.
- Those passages are handed to a language model together with the question.
- The model writes a reply based on them, ideally citing which document each point came from.
The model is not retrained on your files. It reads the retrieved text at the moment of answering.
Uses that suit it
- Staff questions about policies, procedures and product specifications.
- Finding the relevant clause across many contracts or manuals.
Limits to understand
- If retrieval misses the right passage, the answer will be wrong or empty, however capable the model.
- Contradictory or outdated documents produce contradictory or outdated answers.
- Questions that require reading everything, such as "summarise all complaints this year", are a poor fit for passage search.
- The model can still misread a passage or blend two sources. Citations let users check.
Document hygiene comes first
Remove superseded versions, give files clear titles and dates, and decide which source wins when two disagree. This unglamorous work has more effect on answer quality than the choice of model.
Permissions
The assistant must respect who is allowed to see what. An index built from every folder can expose salary files or board papers to anyone who asks the right question. Access rules need to be applied at retrieval time, per user.
Checking quality before rollout
Write a set of real questions with known correct answers and test against it. Rerun the test whenever the documents, the settings or the model change. Give users an easy way to flag bad answers.
When simpler tools are enough
If the need is finding a file, better folder structure and ordinary search may do. If the knowledge is not written down anywhere, no assistant can retrieve it.
Treat the assistant as a well-read colleague who always shows the page. Trust it where the sources are good, and verify where the decision matters.