
Short answer: don't retrain the model. Connect it to your documents. The standard approach is retrieval-augmented generation (RAG): Your files are indexed, and the relevant sections are retrieved for each question, which the language model then generates an answer from, citing the sources of every statement. This is the way nearly all tools that enable staff to chat with your documents operate today, both a single-PDF program and an enterprise program.
The model is rarely the hard part. The difficult part is ensuring that the chatbot respects who can see what, knows which version of the document is the current one, and doesn't guess when it doesn't find it.
This is no longer a side project. The McKinsey's The State of AI (August 2026, 1,719 participants across 97 countries) found that chatbots were the most widely scaled AI application, with 47% reporting that their organisation is using them across the enterprise. The same survey reveals the top role for AI agents is in IT, knowledge management, and software engineering.
How does RAG work?
1. Connect and ingest
Retrieve documents from where they reside: SharePoint, OneDrive, Google Drive, Confluence, and shared drives. Scanned documents must be OCRed (optical character recognised) prior to their use.
2. Chunk and embed
Divide each document into a few paragraphs, and then use a vector embedding, a numeric representation of the meaning of each passage, to represent each paragraph. These are added to an index, along with other metadata like source, date, owner and access rights.
3. Retrieve
When a question is asked, the system searches for matching text segments in the text (typically using keywords as well) and restricts which parts of the text are displayed based on permissions.
4. Generate with citations
The model is provided with the question and the retrieved passages and is asked to answer based solely on these passages without citing any of them or saying that the question cannot be answered.
This approach was presented in a 2020 Facebook AI Research paper and has since become the standard one for grounded question answering.
Why not fine-tune a model on your documents instead?
It's the common instinct, and usually the wrong one. On factual knowledge, the RAG vs fine tuning evidence leans clearly one way. Microsoft researchers published their study at EMNLP 2024 and concluded that the RAG "consistently outperforms" unsupervised fine-tuning for knowledge it had read during training and entirely new knowledge.
In practice, a finely-tuned model is unable to indicate which document an answer is from.
Practically, a fine-tuned model can't show which document an answer came from. It goes stale the moment a policy changes. It also cannot enforce access rights, since all it has learned is accessible to anyone who uses it. Fine tuning is used for tone, format and specialist vocabulary. It's not a file system.
Why not just upload the files to a public chatbot?
For a handful of non-sensitive files, that works fine. For company knowledge, it's where data leaks start. Harmonic Security analysed 20,000 files that employees uploaded to more than 300 generative AI and AI-enabled SaaS apps between April and June 2025, and found nearly 22% contained sensitive content.
Three realistic routes
1. Off-the-shelf "chat with PDF" tools
Quick and inexpensive to use on public or low-risk documents. Not intended for permissions, audit trails or thousands of files.
2. Build your own
Getting a prototype up and running will be fast if you use a framework like LangChain or LlamaIndex, a vector database, and a model API. Production is the long part: connectors, permission sync, version control, evaluation, and monitoring all become your team's job.
3. An enterprise platform
Glean, Coveo, Moveworks and VaultiScan address slightly different aspects of the problem, starting with searching in your workplace, searching for your customers, searching for your employees, and starting from your governed documents and data answers. You trade some control for connectors, permissions and governance that are already in place.
What actually decides whether it works
RAG reduces errors. It won't delete them. According to a 2025 study, published in the Journal of Empirical Legal Studies, two top legal research tools based on RAGs—Lexis+ AI and Westlaw AI-Assisted Research—hallucinated between 17% and 33% of the time on average. Four things separate a trusted chatbot from an abandoned one:
Permissions that follow the user
Only the person who is asking should open what is retrieved. Otherwise it is a data leak through a good looking interface.
One source of truth per document
If three versions of the travel policy sit in three folders, the chatbot will find all three. Decide which is current before indexing.
Citations on every answer
It should be possible for people to click through and check, and make blind trust a quick verification.
Room to say, "I don't know." An assistant who doesn't answer when it is not necessary to answer is more valuable than one who will do so at any time. Then compare the results to a fixed list of real questions that your staff ask - before launching, and after every major content update.
Where VaultiScan fits
Those four failure points are what VaultiScan, our enterprise knowledge agent platform, is designed around. Vaulti GPT pulls data from SharePoint, One Drive, Azure Storage, and other sources; provides only what each user can see; and provides the source for each answer. Data stored and processed within the customer's own Azure environment, and it is never used to train the underlying model. Teams wishing to control retrieval within their own intranet or app can embed it within the Vaulti SDK and create the interface as they see fit. The trade-off: It requires the right type of implementation – not the fast implementation – and it's best for organisations that are already familiar with Microsoft Azure.
Quick answers to common follow-ups
Can this be done without a developer?
Yes, for a few files, using an off the shelf tool. If you're looking for company-wide deployment with permissions, factor in the involvement of IT.
Which documents should go in first?
Begin with the most immediate business use case for AI for employees' questions: HR policies, how-to documents for IT, onboarding, and product documentation. They are asked about frequently, change is infrequent and easily checked.
Final Thoughts: Retrieval Over Retraining
The question seems to imply that it's about making the AI smarter. It's simply about making your documents "discoverable, up-to-date and correctly permissioned" and then setting the model to their location. Retrieval is better than retraining for company knowledge, citations ensure that every answer can be checked, and permissions ensure that each answer is within limits.
Once these three are fixed, an AI assistant for documents is not just a “launch day” thing, it's a “day 100” thing. Begin with one team, one neatly produced set of documents, and a list of genuine questions.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)