The Nerd Uncle
One stop shop for AI news.


The Nerd Uncle › Courses › Course 08

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.

01The model has not read your files02Cut them into passages02Cut them into passages03Store each one by meaning03Store each one by meaning04Your question is matched04Your question is matched05The best passages are pasted in05The best passages are pasted in06It answers from what it was given06It answers from what it was given07Why it still gets things wrong07Why it still gets things wrong

The modules

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

The Nerd Uncle

Subscribe

One edition a day, finished and dated, at six in your own morning. No account, no tracking, no price.

or

Double opt-in, one unsubscribe link in every message, and the list lives in our own database rather than a provider’s.