How to test an internal AI assistant with company documents
Retrieval-augmented generation, or RAG, retrieves passages to help a model answer a question. A working chat interface tells you little about whether a salesperson can rely on a discount policy or should see it at all. Start with one collection, a named owner and agreed access groups.
Pair each question with an acceptable source
Collect questions employees actually ask. For each, record an authorised role, current document, expected answer and when the assistant should say it lacks evidence. Include two editions of a policy with similar titles. Ask whether an old discount approval is still valid and inspect the edition the answer cites.
Test retrieval under different permissions
Use two test identities with different access to an attachment. Verify permission filtering before passages reach the model. Check source titles, links and previously saved conversations too. Withdraw the test user's access and measure how quickly both retrieval and document access reflect the change.
Separate a retrieval error from an answer error
For an incorrect reply, inspect whether the right passage was retrieved and whether it contained the answer. A missing passage points to indexing or filtering. A wrong inference from the right passage calls for an answer-quality review. Keep the case and rerun it when the corpus or model changes. Record where retrieval, inference and logging take place for the selected deployment.