An assistant that answers from internal documents and cites the source
This is not a description of a client project.
Situation
A company keeps procedures, specifications and internal policies in shared folders and a wiki. New employees and the support team lose time searching or asking colleagues. The answer often exists, but in a document nobody finds in time, or in an outdated version.
How we would approach it
What we would clarify first
- Which documents are the source, what languages are they in, and how often do they change?
- Does the assistant need to respect document access permissions?
- What questions do people ask today? We collect real examples, not invented ones.
- Can the content be sent to an external model provider?
- Would better search solve most cases without a language model?
Possible solution
An assistant that searches the documents and answers only from the passages it finds, citing the source – so every answer can be checked. This approach is called RAG. When there is no answer, the assistant says so instead of guessing, and each employee gets answers only from documents they are allowed to see. Whether the model is used through an API or runs in the company's own environment depends on data sensitivity, cost and quality. A layer between the app and the model makes it possible to switch models. Before launch we measure quality against a set of test questions and repeat the check after every change.
- Employee
- Assistant question
- Assistant
- Search
- Search
- Language model passages
- Documents
- Search indexing
- Access permissions
- Search filter
- Language model
- Assistant answer with source
Left out of the first version
Actions in other systems, answers to external users and a voice interface. The first version is for employees and only answers questions.
Risks and how we manage them
- Risk: A confident but wrong answer.
- How we handle it: Answers come only from retrieved passages, always with a source, and are checked against the test set.
- Risk: Outdated or contradictory documents.
- How we handle it: We review the sources at the start, and unanswered questions show what needs updating.
- Risk: Monthly model costs grow with usage.
- How we handle it: We estimate the cost before launch, monitor it and set limits.
When we would recommend something else
If there are few documents and they are well organized, better search often solves the problem without a language model. See also when AI makes sense.