Giving a model your own documents
The trick behind every “chat with your files” product. Nothing is taught to the model and nothing is remembered — the right page is simply pasted in before you ask.
7 modules, drawn as you go. Step through them below, or read them straight down underneath — about 4 minutes either way.
The modules
- 01
The model has not read your files
It was trained on public text years ago. Your contracts, your handbook and last week’s minutes were not in it and cannot be. Asking about them directly gets you invention, for the reasons in Course 05.
- 02
Cut them into passages
Every document is sliced into chunks of a few hundred words — roughly a section each, usually overlapping slightly so a sentence is not cut in half at the join.
- 03
Store each one by meaning
Each passage is turned into a long list of numbers that captures roughly what it is about, and filed by those numbers. Passages about holiday pay end up near each other, whether or not they share any words.
- 04
Your question is matched
Your question gets the same treatment, and the store is searched for the passages nearest to it. This is why it finds the right section when you ask about time off and the document says annual leave.
- 05
The best passages are pasted in
The handful that matched are pasted invisibly above your question, with an instruction along the lines of: answer using this. That combined block is what the model actually receives.
- 06
It answers from what it was given
So the model is not recalling your document. It is reading it, for the first time, a moment ago, and summarising. Nothing was learned and nothing persists — the next question starts the whole process again.
- 07
Why it still gets things wrong
If the search pulls the wrong passage, the answer is confidently wrong and cites a real document while being so. Most failures of these systems are search failures, not model failures — which is why the fix is usually better documents, not a better model.
Everything on this page is drawn by the page itself, so it costs nothing to load and reads the same on a slow connection.