DefinitionAn AI assistant that answers from your documents is a chat tool in which a language model answers questions using a company’s own materials, such as its FAQ, price lists, policies or manuals. For each question it finds the most relevant passages and builds the answer from them, instead of relying on what the model learned in general.
How does an assistant that answers from your documents work?
It searches first and writes second. Your documents are split into short passages and indexed so they can be searched by meaning, not just by exact words. When someone asks a question, the assistant finds the passages that match best, gives them to the language model together with the question, and the model writes an answer from them.
This approach is called RAG (retrieval-augmented generation). The model is not retrained on your documents; it reads the relevant pages each time, like an employee looking something up in a binder. That is good news: when a document changes, the assistant can use the new version as soon as it is indexed again.
Which documents should it answer from?
From the ones you would happily give a new employee as the official answer. Good candidates are an FAQ, service and product descriptions, price lists, terms and returns policies, help articles, manuals and internal procedures.
- Leave out drafts and old versions. If two documents say different things, the assistant may quote either.
- Leave out what the audience must not see. A customer-facing assistant should never have access to internal pricing notes, HR files or contracts with personal data.
- Prefer text over scans. A scanned PDF or a table pasted as an image is hard to search; convert it to text first.
How should the documents be prepared?
So that each passage makes sense on its own. The assistant reads fragments, not whole files, so a passage that says “as mentioned above” loses its meaning.
- One topic per section, with a clear heading, ideally phrased as the question people ask.
- Remove contradictions. One current price list, one returns policy, one set of opening hours.
- Name things the way customers do. If people say “refund” and your policy says “reimbursement procedure”, add both words.
- Add a date or version to documents that change, so it is clear which one is current.
This work pays off twice: the same tidy documents make your website and your team’s answers better too.
How do you keep the answers current?
By giving the documents an owner. Someone has to know that when prices, hours or terms change, the source document changes too and the index is refreshed. Ideally the assistant reads from the same place your team already maintains, such as your help centre or website, so there is only one copy to update.
It also helps to review the conversations regularly. Questions the assistant could not answer show you what is missing from your documents.
What will the assistant not know?
Anything that is not written down in the documents it was given. That includes knowledge that lives only in people’s heads, decisions that need judgement, and live data such as stock levels, order status or free appointment slots, unless the assistant is connected to the system that holds them. Once it has to look things up in other systems or take actions, it is closer to an AI agent; the difference is explained in Chatbot or AI agent?
A good assistant says when it does not know instead of guessing. Ask for that behaviour explicitly, and check it in testing.
How do you test the answers before launch?
- Collect real questions. Take them from emails, chats and calls, in the words people actually use.
- Write down the expected answer and the document it should come from.
- Check the source, not just the wording. A fluent answer is not the same as a correct one; see whether it quotes the right passage.
- Ask what it should not answer. Questions outside your business, requests for advice, attempts to make it promise discounts.
- Repeat after changes. Keep the question set and run it again whenever documents or settings change.
When should it hand over to a person?
When it finds nothing relevant, when the question needs a decision (a quote, an exception, a complaint), when the customer is frustrated, and whenever someone asks for a person. The handover should be easy: a visible button, a form or a phone number, ideally with a summary of the conversation so nobody has to repeat themselves.
For an internal assistant used by your team, there is one more question: who may see what. If documents have different access rights, the assistant should respect them and only search what the person asking is allowed to read.
What drives the cost of such an assistant?
Four things, and no single price covers them all:
- Preparing the documents. Work that is easy to underestimate, and much of it is yours: gathering, cleaning and organising the knowledge.
- Usage. The model provider charges per use, which grows with the number of questions and the amount of text sent with each one. A daily limit keeps it predictable.
- Setup and hosting. The chat itself, the index of your documents, and connecting it to your website or tools.
- Upkeep. Updating documents, reviewing conversations and re-testing after changes.
Whether you run the chat yourself or rent it as a service changes how these costs are split; the trade-offs are in Open-source chat widget or chatbot subscription? For how the assistant fits on your website, see An AI chatbot on your website.
Before you build one
- Which documents should it answer from, and are they current and consistent?
- Who owns those documents and refreshes the assistant when they change?
- What should it do when it does not find an answer?
- Which real questions will we test it on before launch?
- Who may see which documents, and does the assistant respect that?
Frequently asked questions
Is the AI model trained on my documents?
Not in a typical setup. The assistant searches your documents for each question and passes the relevant passages to the model, which writes the answer from them. Your documents stay a separate source that you can update or remove at any time.
Can the assistant still make things up?
It can, less often when it is told to answer only from the passages it found and to say when it does not know. Showing the source with each answer and testing on real questions make mistakes easier to spot.
How often do the documents need updating?
Whenever the information in them changes. The simplest setup reads from the same place your team already updates, such as your help pages, and refreshes the index after each change, so there is only one copy to keep current.