1. AI Fundamentals

Understand what a large language model is: a predictive token machine, why it can never promise to be right, and why every answer must be checked against real facts.

By Jacques Botte, founder of Toptronic®. Last updated 17 October 2026.

The lesson

Every large language model does one thing, and only one thing: given the text so far, it produces a ranked list of every fragment of text that could come next, and picks one. That choice is appended to the text and the whole operation runs again. A paragraph is a few hundred of these steps in a row. Everything that looks like reasoning, translation, coding or memory is that single operation, repeated, with its own output fed back in as input.

The fragment is called a token. It is not a word and not a letter. Common words travel whole (the, system, prompt); long or rare words split into pieces (quantization becomes quant + ization); numbers split into digit groups; punctuation, indentation and emoji each cost something. English averages about four characters per token, while Chinese, Japanese and Arabic need more tokens for the same sentence because their words fragment differently. That is why a limit written as 8,000 tokens is not 8,000 words, and why you pay per token rather than per page.

Tokens are the unit because they are the compromise that works. A vocabulary of roughly a hundred thousand fragments covers every language, every programming keyword and every punctuation mark in one fixed table of numbers. Whole words alone would need an impossible table and would fail on any new name. Single letters would make every prediction too small to be useful. A token is where the arithmetic happens, so it is also where the bill and the context limit are counted.

At each step the model does not produce an answer. It produces a probability for every token in its vocabulary: a hundred thousand numbers that sum to one. If the text so far reads The capital of France is, the fragment Paris may hold 0.71, the 0.02, Lyon 0.004, and thousands of others hold a long tail of tiny values. Only then is a choice made from that list: take the highest (greedy), or draw one at random weighted by the probabilities (sampling). Temperature decides how flat or sharp that draw is. Nothing else happens.

THAT is what predictive token machine means, and it is not a metaphor. At the moment of answering there is no database being consulted, no rules engine being run, no fact being looked up and then checked. The parameters are frozen numbers, and the only thing they were trained to do is raise the probability of the fragment that actually came next in the training text.

Training is the same operation run at scale with the answer known. Show the model trillions of tokens of text; ask it for the next token; compare its guess with the token that really followed; nudge billions of parameters a fraction in the direction that would have made the right guess slightly more likely. Repeat until the guesses are very good. What comes out is a compression of the statistical shape of everything in the corpus: which word follows which, in what register, in what order.

Fluency is what that compression buys. Facts survive as a side effect. A statement repeated consistently across a very large amount of text becomes the highest-probability continuation, so the model recites it correctly. But look at what the objective actually rewards. It rewards being the likely continuation of text like this one. It does not reward being true. When the corpus is consistent and the question is common, the likely continuation and the true one are the same token. When they are not, the machine has no way to tell them apart.

This is why an invented reference looks exactly like a real one. As shown in Smith and Patel (2019), throughput falls by 40 percent is a perfectly ordinary continuation of the sentence before it, with the right grammar, the right cadence and a plausible number. A real citation and a fabricated one arrive through the same door, in the same voice, at the same speed. There is no second channel that says this one I checked.

So every model carries warnings: may produce inaccurate information, verify important facts, check code before you run it. The industry word for a confident invention is hallucination, and it is a description of the mechanism rather than a bug report. Those warnings are not legal decoration, and they are not a defect that the next release will remove. They are a description of the design. A machine that selects the most probable next token cannot, by construction, guarantee that the token is true. Accuracy is a property of the world; probability is a property of text. The machine optimises the second and inherits the first only where the two happen to agree.

The tone of the answer will not help you decide. A predictive machine learns the shape of confident writing as easily as the shape of careful writing, so a bold claim and a hedge are both simply high-probability continuations in their own contexts. Nothing in the output carries a calibrated probability you can read. An answer that sounds certain is not more likely to be right than one that sounds unsure; it is written in a more common register.

It is also stateless between sessions. Nothing you correct today is written back into the parameters; tomorrow the same model, given the same text, will make the same mistake with the same confidence. The conversation is not a memory the model keeps, it is text that is re-sent with every request. Anything you want the model to know has to be in the text you send, every time.

Some questions are far more dangerous than others. Invented references and quotations; exact figures, dates, part numbers and legal clauses; anything dated after the model's knowledge cutoff; anything private to your organisation, your machine or your customer; long chains of arithmetic or formal logic, where every step is a fresh draw and small errors compound; and any case where the common answer is not this case, such as your company's current policy, this board's pinout or this build's error message.

Others are much safer. Rewriting text you supplied; summarising a document you attached; applying a stated format, tone or length; drafting from facts already in the prompt; explaining a concept that is written about everywhere. The pattern stops being mysterious once you see the mechanism: reliability rises when the facts arrive inside the prompt and the task is a transformation of them, and falls when the facts have to come out of the parameters.

Verification is therefore part of the job, not an insult to the tool. In practice it is mechanical: open the source and read the line; run the code and look at the output; measure the thing instead of trusting the description; ask for a citation and then open the citation; paste the document into the prompt and require quotations with section numbers; compare every figure against the system of record. An answer that cannot be checked this way is not ready to be sent to a customer, a patient, a regulator or a class.

There is a second reason to check that has nothing to do with the model: responsibility. The model cannot own an outcome, sign a report or answer for a decision. The person who sends the answer owns it. Delegating the draft is sensible; delegating the verification is gambling with someone else's name on it.

Two consequences follow for the way you write prompts. First, a prompt is a procedure with a distribution, not a function: the same prompt can produce different words on two runs, because the choice at each step may be sampled. If you need the same answer twice, keep the answer, not the prompt. Second, you cannot program the model by wishing. You arrange text so that the most probable continuation is the one you want, by supplying the facts, naming the audience, fixing the shape of the output and asking for evidence that can be checked.

That is exactly what the thirteen TPEE sections do. Data and Context carry the facts you have verified. Technical Specifications state what must not change. Format makes an answer checkable at a glance. Examples show the pattern you want followed. Verification of Results and Outcome is the section that exists for this machine specifically: it tells the model to show its working, cite what it used, flag what it could not confirm, and state what a human should check before acting.

And because the machine is a predictor rather than an authority, the honest summary is short. It is extremely good at producing text that looks like the right answer. It has no mechanism for knowing whether the answer is right. Your context, your sources and your check are the only parts of the chain that can know. Build the prompt so that check is possible, and then do the check.

A graduate nurse on a hospital ward turns a rushed handwritten handover into a structured prompt, naming the clinical educator persona, the summarise-the-shift task and a checklist format so the next team starts with clear priorities.

A field agronomist at a farming cooperative gives the model the field records, the season dates and the soil notes before asking for a planning brief, because the model cannot know a farm it has never been shown.

A warehouse shift lead writes a prompt that asks for a receiving checklist, supplying the dock layout, the supplier list and the exact format instead of typing make the intake better and hoping.

A junior retail buyer structures a prompt for a stock-review summary, giving the model the sales categories, the reorder rules and a table format rather than a one-line request.

A law firm associate replaces a vague note with a TPEE prompt: a contracts reviewer persona, instructions to flag unclear clauses, the agreement text as data and a numbered output format.

A secondary school teacher writes a prompt for a revision activity, setting the persona of an experienced tutor, the topic, the reading level of the class and the worksheet layout wanted.

An apprentice electrician uses TPEE to convert a job note into a prompt, adding the site conditions, the tools available and a plain-language format for the customer.

A community services coordinator drafts a prompt for a client progress summary, providing the service goals, the contact notes and a short structured format before asking for anything.

A production supervisor at a packaging plant turns a handwritten shift complaint into a structured prompt, naming the process engineer persona, the line data and the fault-report format.

A hotel duty manager shapes a guest-issue briefing in TPEE, setting the audience, the tone and the brief layout so the front desk receives a summary it can act on.

Check yourself

Question 1: What is the most accurate description of an LLM?
  1. A guaranteed factual database
  2. A Windows automation macro
  3. A private human expert
  4. A system that predicts useful text tokens from context — correct

Answer: A system that predicts useful text tokens from context

An LLM predicts tokens from patterns and context; its output still needs checking.

Question 2: Why does context matter when asking an AI for help?
  1. It makes the app connect to servers
  2. It removes the need for review
  3. It changes the monitor brightness
  4. It gives the model the facts needed for the current task — correct

Answer: It gives the model the facts needed for the current task

The model can only use the facts you provide or the facts available in its environment.

Question 3: What should a beginner remember about AI answers?
  1. They replace all human judgment
  2. They are always legally correct
  3. They should be verified before important use — correct
  4. They do not need instructions

Answer: They should be verified before important use

AI answers can be useful but must be checked for important work.

Question 4: At each step, what does a large language model actually produce?
  1. One fixed answer chosen in advance
  2. A probability for every token in its vocabulary — correct
  3. A verified fact read from a database
  4. A live web search result

Answer: A probability for every token in its vocabulary

It scores every token in the vocabulary and only then picks one; sampling and temperature belong to that pick, not to the scoring.

Question 5: A model writes a citation that looks real and is completely invented. Why does that happen?
  1. A virus changed the document
  2. Only very old models do this
  3. The citation was the most plausible continuation of the text, and nothing in the machine checks truth — correct
  4. The model dislikes references

Answer: The citation was the most plausible continuation of the text, and nothing in the machine checks truth

A fabricated citation and a real one are both ordinary continuations of the same sentence. The machine optimises plausibility; a human has to open the source.

Question 6: The answer sounds confident. What does that tell you about its accuracy?
  1. Nothing, tone is a writing style and not a measured confidence — correct
  2. It is at least ninety percent accurate
  3. It has been checked against sources
  4. It was produced with a lower temperature

Answer: Nothing, tone is a writing style and not a measured confidence

Confident writing is common writing. The machine learns the register of certainty as easily as the register of caution, and the output carries no calibrated probability.

All 134 lessons · Next lesson →

The full course — 134 lessons and 405 quiz questions — ships inside the app. Get TPEE to study it offline.

This lesson is the written summary of a course that ships inside the TPEE prompt editor for Windows - fifteen sections, a 0-100 score before you send anything, and it works with no network connection. The three one-time prices, and a 14-day free trial.

If you would rather not read another lesson: the prompt builder shows the fifteen sections being filled, the tool page says what the program does and does not do, and the free score marks a prompt you paste in - nothing installed.

Do this lesson in TPEE. The editor scores the prompt you write for it, 0 to 100, before you send it to a model, and it keeps the prompt on your own disk - no account and no network connection. This lesson is Beginner level with 6 questions to check yourself against. The same lesson, and the whole course, ships inside the app.

Start the 14-day free trial Score a prompt here first, nothing to install