How an AI assistant answers from your company documents
An AI assistant that answers from your own documents first looks up the relevant passages, then writes an answer from those passages alone, with a link to each source. Nearly every such system follows the same six steps, whoever builds it. The AI writes the words, but the quality of the answer is decided by everything that happens before it.
Engineers call this approach RAG, short for retrieval-augmented generation. The name describes the order of work: the system retrieves (looks up) material first, and generates (writes) the answer second.
You do not need to know how to build one. Knowing the six steps is enough to question a vendor or your own team sensibly, and to spot where projects tend to fail. When we scope a project, these six steps are the checklist we walk through with you.
If you prefer to watch, the five-minute video version is on YouTube.
One picture for the whole page: you have hired a very careful research assistant and given them access to every file the company keeps.
Where it starts: what your company already knows
Most of what your staff need is already written down. Policies, product manuals, contracts, old proposals, meeting notes, spreadsheets and support tickets all hold answers. The problem is getting to them. They sit across shared drives, SharePoint, email and many other systems, frequently in more than one version.
The assistant does not replace any of these systems. It reads what is already in them and answers from that.
In our picture, this is day one: the new research assistant gets keys to every cabinet and shared drive.
What to get right: the assistant can never be better than the material it reads. Out-of-date, duplicated or conflicting documents lead to out-of-date, conflicting answers. This is why we look at your documents before anything else; our guide on whether your information is ready covers it in depth.
Step 1: Bring the documents in and prepare them
The system takes a copy of your documents and pulls the text out of each file, including scanned pages, tables and slide decks. It then cuts each document into short passages of a few paragraphs. A question is normally answered by one passage, not by an entire 80-page manual. Engineers call these passages "chunks".
Every passage gets labels: which document it came from, how recent it is and, above all, who is permitted to see it.
In our picture, the assistant goes through every file, retypes the scanned ones and writes an index card per topic, noting the source, the date and a confidentiality stamp on each card.
What to get right: this dull-sounding step decides most of the eventual answer quality. And if "who may see this" is not captured at this point, nothing later in the system can enforce it. More on that in who may see each document.
Step 2: Build catalogs so any passage can be found instantly
The system then builds catalogs of all the passages, normally of two kinds. One looks for exact words, such as product codes, names and clause numbers. The other looks for meaning, so a question about "time off for a new baby" still finds the "parental leave policy" even though the words differ. Vendors may call this "vector search" or "semantic search".
Some systems go further and record how things relate, for example which customer signed which contract, so they can answer questions that need several documents at once.
In our picture, the assistant keeps two card indexes: an alphabetical one like the index at the back of a book, and one sorted by subject, where related cards sit together whatever wording they use.
What to get right: most complaints that "the AI couldn't find it" start here. Searching by meaning alone misses exact codes and names. Searching by words alone misses anything phrased differently. We check that both kinds are in place.
Step 3: Find the passages that actually answer the question
When someone asks something, the system searches both catalogs, merges the two result lists, and then takes a second, closer look at the leading candidates to put the most useful ones on top.
Only a few passages are passed on to the AI. Getting the right ones to the top matters far more than finding a lot of them.
In our picture, the assistant pulls cards from both indexes, lays them out, rereads the most promising and keeps the best five.
What to get right: if the correct passage is not among those few, even the best AI model cannot give the correct answer. It will answer from the wrong material, and sound sure of itself while doing so.
Step 4: Write the answer and show where each point came from
Only now does the AI model write anything. It is the same kind of technology as ChatGPT. The difference is in its instructions: use only the passages provided, and link every point to the document behind it. Engineers call this "grounding".
When the passages do not hold the answer, a well-built system says it could not find it rather than guessing.
In our picture, the assistant writes a short memo using only those five cards, with a footnote on every claim, and tells you plainly when the cards do not cover the question.
What to get right: the source links are what let people check an answer. An answer with no sources has to be taken on faith. We treat sources on every answer as non-negotiable; see trusting the answers.
Step 5: Check the answers and keep the catalogs current
Before launch, and on a regular schedule afterwards, the system is tested against questions whose right answers are already known, so you can see how often it gets them right. Looking at what people really ask reveals where answers are missing or thin.
Each time a document changes, the catalogs are refreshed and the old version is taken out so it is no longer quoted.
In our picture, you mark the assistant's memos against an answer key. When a policy changes, the old card comes out and the new one goes in; otherwise last year's rules keep being quoted.
What to get right: this is the cost most budgets forget. A system that nobody maintains slowly gets worse month after month. Our guide on what it costs looks at that upkeep.
Step 6: Put the answers where people already work
Few people go hunting for a new tool. So answers are delivered in places they already use: Microsoft Teams or Slack, the intranet, your public website for customers, inside your other business systems, or even over the phone.
Every channel uses the same catalogs and the same rules about who may see what.
In our picture, the assistant is not stuck in one office. They answer in team chat, at reception, on the website and on the phone, from the same card files.
What to get right: where the assistant appears decides whether anyone uses it. And each extra channel is one more place where the access rules must still hold.
The result: clear answers people can check
An employee or customer asks in their own words and gets a plain answer within seconds. Each answer links to the exact passages behind it, and draws only on documents that person is allowed to see.
That is the entire system. The AI does the writing; the quality comes from the five steps around it.
In our picture, everyone in the company now shares one diligent assistant who has read everything, cites their sources and never passes anyone a file they are not cleared for.
Where the picture stops working: unlike a real assistant, the system does not understand your business. It matches patterns very quickly, which is exactly why the checking in step 5 matters.
How we help
We build these systems for a living, including our own platform, Arro. When you are weighing a project, we walk the six steps with you and point out where your situation needs the most care.
- We look at the documents the assistant would read and flag old, duplicated or conflicting versions before anything is brought in.
- We make sure "who may see this" is recorded for every passage at step 1, so it can be enforced in every channel later.
- We set up a set of test questions with known answers, so you can see how often the assistant is right before launch and after each change.
- We help you decide where the answers should appear first, and plan the upkeep so the system stays current.
If you are not sure where it would pay off, start with where AI on your documents pays off, then talk it through with us.
Talk to us about your project