Skip to content
Diaphanic

Guides · AI

How an AI assistant answers from your own documents

An AI model knows a great deal about the world and nothing about your business. Everything useful it does for you depends on what it is shown at the moment it is asked.

The short version

  • The model doesn't learn your documents. It is handed the relevant passages each time.
  • Most wrong answers come from finding the wrong passage, not from the model.
  • Cost depends on which model is called, and how often. Both can be controlled.

Updated November 2026 · 3 sections · 1 drawing

The picture

The whole thing, one step at a time.

The drawing plays through on its own. Pick a step to stop on it.

How an assistant answers from your documents

01 / 06

Step 01

Your documents are indexed once

Manuals, policies, price lists and past answers are split into passages and stored so they can be searched by meaning, not only by exact words.

What we do here

The index stays in your infrastructure. We choose providers and settings that don't train on your data.

01

A model doesn't know your business

A language model was trained on a vast amount of public text, up to a certain date. It has never seen your price list, your policies or last week's stock. Ask it about them and it will produce something plausible, which is worse than producing nothing.

The standard answer is called retrieval. Your documents are split into passages and stored so they can be searched by meaning. When a question arrives, the system finds the few passages that bear on it and hands them to the model with the question.

The model then writes its answer from those passages and can point to them. Your documents never become part of the model. They stay where you keep them, and can be changed or removed whenever you like.

02

Why answers go wrong

When an assistant gives a wrong answer, people blame the model. More often the search step handed it the wrong passages, or none, and the model filled the gap.

So the real work is in the retrieval: how documents are split, how the search is tuned, and how the system behaves when nothing relevant is found. A good assistant says “I don't know” and shows its sources when it does know.

The only reliable test is your own questions. Collect the ones staff and customers actually ask, write down the right answers, and run the whole set every time something changes.

03

What it costs to run

Models charge by the amount of text they read and write. A large model can cost many times what a small one does for the same question, and most questions don't need the large one.

Three habits keep the bill down. Send easy questions to a small model. Keep answers to repeated questions and reuse them. Hand the model only the passages it needs, not the whole document.

Where privacy or volume demands it, open models can run on servers you control, with nothing sent to an outside provider. That swaps a bill per question for a fixed cost, which suits some businesses and not others.

Words you'll hear

The jargon, translated.

Six terms a supplier is likely to use in the first meeting.

LLM
Large language model: the software that reads and writes text, such as the one behind ChatGPT.
RAG
Retrieval-augmented generation: finding the relevant passages first, then asking the model.
Token
The unit models are billed in. Roughly three-quarters of a word.
Hallucination
A confident answer with no basis in the facts. Sources and retrieval reduce it.
Open-weight model
A model you can download and run on your own servers.
Embedding
A numerical fingerprint of a passage's meaning, used to search by sense.

Before you sign anything

Questions to ask any supplier.

Including us. A supplier who is comfortable with these is usually worth talking to.

Ask us
  1. 01What single job will this do, and how will we measure it?
  2. 02Will every answer show where it came from?
  3. 03What does it do when my documents don't hold the answer?
  4. 04Is my data used to train anyone's model?
  5. 05What will one answer cost, and how will I see the total?

Where we do this

Keep reading

More guides

Start a project

Tell us aboutyour business.

Send us what you do and what you want to achieve. You’ll get a clear reply within one working day — questions or a next step, not a sales deck.

Not ready for a project? Start with something free, and judge us on what comes back.

  • Reply within one working day
  • A fixed, written quote first
  • Australia · Canada · India
  • contact@diaphanic.com