Which question will the chatbot answer?

An employee might ask about installation, a customer about delivery conditions and the sales team about current package scope. Decide whom you serve before putting everything into one knowledge pool. One user group and a clear question domain make first-release gaps easier to see. Write 'explain installation guides for published products with sources' rather than 'answer everything about our company'.

Are the documents ready to answer questions?

If old and new price lists share a folder, model selection is not the only problem. Give every document an owner, validity date and intended audience. A table in a screenshot may not be read like one in a text file. Sample file types separately during preparation and flag unreadable pages and missing headings.

In RAG, relevant document chunks are retrieved and supplied to the model as context while it generates an answer. That does not automatically make those documents correct or current. Microsoft's RAG design guide treats retrieval, document preparation and evaluation as separate steps.

Citing sources and limiting access

We recommend showing the document used in an answer and, where possible, its relevant section. Users should be able to open and check the source, while not even seeing the title of a document they are not authorised to access. A customer-support bot, for example, should not access employee-only discount notes. Enforce this boundary during retrieval; merely asking the model not to reveal secrets is insufficient.

Do not treat instructions inside an external file as system authority. OWASP's prompt injection guidealso considers indirect instructions arriving through documents. Keep the user's information-retrieval task separate from the application's authority to act.

Run the first trial with real questions

Prepare a short acceptance checklist:

  • Are the correct documents found for common questions?
  • Are similar products confused?
  • Does it ask for clarification rather than inventing information when no answer exists?
  • Does a removed old document disappear from answers too?
  • Do two users with different permissions see the correct sources?

Do not record every wrong result merely as 'the bot made an error'. Keep separate notes for missing documents, retrieval errors and explanation errors. This lets you fix the actual cause instead of changing the same model for every issue.

Who owns the knowledge after launch?

When a product changes, define who updates its content and when the update becomes searchable. If document preparation takes time before answers are available, show that in the interface. Leave a visible status record for the content owner when updates fail, preventing old data from being used silently.

In our AI and automation service, you can define the initial scope through these questions. Bringing a few anonymised documents, sample customer questions and access groups to the discussion makes a workable chatbot plan concrete.