How AI That Answers From Internal Documents (RAG) Works: Poor Answers Usually Start With the Documents

“Ask a question about company policy and the AI answers.” More and more companies are introducing systems like this. In many cases they use a mechanism called RAG (retrieval-augmented generation). The name sounds complicated, but the idea is simple.
How RAG works
Rather than answering only from what the AI already knows, RAG searches internal documents for relevant passages with every question and has the AI read them before answering. It’s like opening the textbook to the right page before answering a test question.
Why it gives poor answers
When “the AI gives off-target answers”, the cause is often on the document side or at the search stage rather than the AI itself.
| Symptom | Common cause | Fix |
|---|---|---|
| Answers using old rules | Both pre- and post-revision documents remain | Exclude old versions from search; write the revision date in the text |
| Says “the documents don’t mention this” | The answer is only inside a table or image | Also write table contents as text; convert scanned PDFs to text |
| Partly right but misses conditions | Conditions are written far from the main text | Keep each topic in one block |
| Weak on internal jargon | Abbreviations and nicknames don’t appear in documents | Prepare a glossary listing official names alongside common ones |
Writing documents AI can read easily
These aren’t only for AI; they’re exactly the conditions for documents that are easy for people to read too. Introducing RAG is a good opportunity to review internal documents.
Decide before introducing it
- Who can see which documents. When including documents with restricted access, such as appraisals or pay, permission settings are essential.
- Whether answers show their sources. Showing which part of which document an answer came from lets users check for themselves.
- Where unanswerable questions go. Provide a route to the responsible department for when the AI can’t answer.
Summary
RAG answer quality is set by “how smart the AI is” × “how well-organized the documents are” × “how accurate the search is”. When it doesn’t answer as expected, suspect the documents first. Once they’re in order, neither people nor AI will struggle to find things.

