# What I’d Check Before Letting an AI Assistant Search Company Documents *Three tests I would run between a RAG demo and a real rollout.* By Thomas Hein Thura When I first wrote about RAG, I was interested in how much easier it had become to give a model company data without retraining it. You can fetch the relevant part of a document when someone asks a question. What I want to know now is whether it fetched the page I would have given that person myself. Say you build an assistant that answers questions about your company’s leave policy. You upload the current handbook and ask how many days of leave a new employee gets. The answer looks right and the link opens. Now add the previous handbook, a draft amendment and an HR-only exception memo. Ask the same question as someone who just joined the company. Which source would you expect it to use? ![VarCamp slide showing the RAG layer selected among the eight layers around a model](assets/eight-layers.png) *In the VarCamp deck, retrieval sits alongside access and observability. All three matter when a user asks about an internal policy.* ## How do you test access with two accounts? Use a regular employee account and an HR account. Ask both about a topic covered by a general policy and a restricted exception. Check which documents come back from search for each account. After that, check what went into the model’s context. A private document can influence the answer even if its link never appears on screen. So, the access decision should be made in the application or retrieval layer, before the model gets any text. The citation link needs the same check, using the user who asked the question. If they can’t open it, the cause could be an incorrect permission in search, a file that has moved, or a wrong link. It is worth finding out which one, because each has a different fix. ## What happens when a document changes? Change the number of leave days in the test handbook and ask the same question again. Write down when the document was published and when the assistant first answered from the new version. Do the same when an employee loses access to a document. If you cache answers, check that the earlier result is cleared or withheld when it’s no longer valid for that user. This is the point where I would look at the index before touching the prompt. Is the new version present? Can you tell which version the search returned? If there is a gap between the source changing and the index catching up, agree with the document owner on how long that gap can be. ## What if the handbook has no answer? An employee might ask about a country where the company has no published policy. The assistant should say it couldn’t find an answer and point the person to HR. However, many test sets only hold questions with clear answers. Keep this case in the set too. Otherwise you can spend a lot of time making the replies sound better without seeing whether they are based on the right page. Before opening the assistant to more people, ask whoever owns the handbook to pick a few cases with you. Write down the expected sources, who should have access and what the assistant should say when the source doesn’t cover the question. Then run the same cases whenever the index or the model changes. That gives you something to count in the pilot: how often did a person get a usable answer from a source they could open? The speaker and session listing is here: [VarCamp speaker and session listing](https://www.var.camp/speakers/thomas-hein-thura). You can try this today with a folder of five documents and two test accounts. Ask one question and compare what each account sees. Next, I will write about why I don’t think casual RAG is ready for company data: *Why I Don’t Think Casual RAG Is Ready for Company Data*. If you want to see where small models fit before that, my earlier article is *Can a Small Model Run on a CPU-Only Kubernetes Node?*