Lesson objective

Describe in plain terms how a language model is built and how it produces text one piece at a time, and turn each part of that mechanism into a checking habit.

Plain-language explanation

Why this matters now

Most owners meet a language model through a chat box or a button inside software they already pay for. The box looks like a colleague who has read everything and remembers it perfectly. Knowing roughly what happens when you press enter is what lets you predict where it will let you down. You do not need the mathematics. You need four plain ideas.

The U.S. Government Accountability Office looked at how these systems are built commercially in Artificial Intelligence: Generative AI Training, Development, and Deployment Considerations (GAO-25-107651, published 22 October 2024). GAO reviewed the literature, interviewed representatives of leading generative AI companies, and read public material such as white papers and model cards. It is an oversight report, not an independent technical audit of any product, and the market has moved since October 2024. Two of its findings still set the frame for everything below. Training datasets run to millions or trillions of data points, and "information regarding the specifics of training datasets is not entirely available to the public." And even after benchmark testing, multidisciplinary evaluation teams and red teaming, developers themselves acknowledge that "their models may produce incorrect outputs, exhibit bias, or be susceptible to attacks."

Read that last sentence again. The people who build these systems say, in their own material, that the output may be wrong. Nothing you buy changes that; it only changes how much a wrong output costs you.

A question to sit with

If you asked the same assistant the same question about your cancellation policy on Monday and again on Tuesday, and got two different answers, which one would you send to the customer, and how would you know?

What goes wrong

Treating the model as a filing cabinet. People ask for a figure the way they would look it up. Unless the product has been connected to a source — the next lesson covers that — a language model is not fetching a stored fact. It is producing text that is likely to follow your question.

Assuming it knows this year's numbers. Training is a finished process that ended before the product reached you. Prices, rates, forms, thresholds and rules that changed afterwards are not in it unless somebody supplies them, and the model will not necessarily tell you that it does not know.

Reading the working as proof. When a model lays out its steps, those steps were produced the same way as the answer. They can be just as wrong, and they make a wrong answer look checked.

Expecting the same answer twice. The model assembles each answer from likely continuations, and many products allow variation in which continuation gets chosen. Two runs of one request can differ in wording, in structure and sometimes in substance.

Forgetting that what you paste is also input. The supplier email you forwarded and the PDF you uploaded become part of the same stream of text the model is working from. Wording inside them can steer the result.

The practical answer

Four ideas, and a habit attached to each.

1. Training. A model is built by exposing it to very large amounts of text and adjusting it, over and over, to get better at predicting what comes next. What it ends up holding is not a library you can open. It is an enormous set of learned patterns about how words, numbers and ideas tend to follow one another. Developers then refine it further so that it follows instructions and holds a conversation. GAO's point that the specifics of training data are not entirely public matters here: you cannot inspect what went in, so you cannot reason about what it "should" know. Training stops at a point in time. If a product states its cutoff date, note it; if it does not, treat every date-sensitive answer as unverified.

2. Pieces, not words. The model does not read letters and words the way you do. Text is broken into short pieces — sometimes a whole word, sometimes part of one, sometimes a group of digits or a punctuation mark. A price like 1,249.95 becomes several pieces. To the model a number is a run of text fragments, not a quantity it is holding in mind. That is why arithmetic can come out wrong with no sign at all that it has.

3. Prediction, one piece at a time. When you send a request, the model predicts a likely next piece, adds it, and predicts again, over and over, until the answer looks finished. Every answer is assembled from patterns. Nothing anywhere in that loop compares the answer to the world.

4. One stream of text. Your instruction, the document you pasted and the model's own reply are all pieces in the same window. The OWASP Top 10 for LLM Applications 2026 puts it bluntly at LLM01: these systems "make no architectural distinction between 'instructions' and 'data'", which is why there is "no clean equivalent to parameterized queries" — no switch a vendor can flip to keep content and commands apart. Module 2 turns that into a practical defence.

Now the habits.

What the model is doing What it means for your business The habit
Predicting likely text from patterns A likely-sounding answer and a correct answer are different things Verify against something you hold: your price list, your terms, the actual invoice
Working from training that ended at a date Prices, rules and requirements may be stale Paste in the current source; never ask it to recall a figure
Treating numbers as pieces of text Arithmetic can be wrong and look fine Recompute every figure on paper, on a calculator or in a spreadsheet
Choosing among likely continuations Two runs can differ Save the exact output you used, with the request, the tool and the date
Reading everything in the window as one stream Wording inside a document can steer the answer Treat anything you paste as data, and check what came back against it
Generating its explanation the same way as its answer The reasoning can be as wrong as the conclusion Test the conclusion against evidence, never against the model's own account of itself

Supply it, do not ask it to remember. The single most useful change follows straight from the mechanism. Compare two requests.

  • Weak: "What is our cancellation policy for events?" The model has never seen your policy. It will produce a plausible one, and a plausible one is worse than no answer, because it reads like yours.
  • Stronger: "Using only the booking terms pasted below, dated 1 March 2026, state the cancellation window for an event booking and quote the exact sentence that gives it. If the terms do not say, reply 'not stated'."

The second version does not make the model reliable. It makes the answer checkable, because you hold the source and you have asked it to point at the line. Module 8 builds this into a full request structure.

Keep what you relied on. Because two runs can differ, "the tool said so" cannot be reconstructed afterwards. Keep the request, the output you actually used, the tool and the date, wherever you keep the job.

Remember this

  • A language model predicts likely text one piece at a time; nothing in that loop checks the answer against reality.
  • Training ended at a date and its contents are not fully public, so supply current sources instead of asking it to recall them.
  • Numbers are text fragments to the model: recompute every figure somewhere else.
  • The working it shows is generated the same way as the answer and can be equally wrong.
  • Save the request, the output, the tool and the date, because the next run may differ.

Small business example

Redfern Auto Repair is a fictional four-bay garage. The owner, Dev Osei, uses an assistant in his email tool to speed up quotes. A customer asks for the cost of front brake pads and discs on a saloon car. Dev types the question straight into the chat box without attaching anything. The reply is confident: pads at $120.00, discs at $260.00, two hours of labour at $95.00 an hour, "total $570.00". It reads like a quote from a competent garage. Dev checks it against his own price list. His labour rate went to $110.00 an hour in January, his supplier's discs for that model are $284.00 a pair, and the job is billed at 1.5 hours, not two. Every number in the reply was invented to be plausible. He also recomputes the tool's own arithmetic: 120 plus 260 is 380, plus two hours at 95 is 190, giving 570 — the total was internally consistent and completely wrong, which is the worst combination, because a consistent total is what a busy person glances at and accepts. Dev tries again, this time pasting his current price list and rate card and asking for the figures to be taken only from it, with any missing item reported as "not on the list". The second reply gives pads $120.00, discs $284.00, labour 1.5 hours at $110.00 for $165.00, total $569.00. He recomputes: 120 plus 284 is 404, plus 165 is 569. Correct. He runs it once more out of curiosity and the third reply lays the quote out differently and adds a line for "sundries" that appears nowhere on his list. He deletes that line, saves the version he sent along with the exact request, the tool name and the date, and writes himself a note for the shop: the price list goes in every time, and every total gets recomputed before it leaves the building.

Responsible-use warning

Do not ask a language model to remember a price, a rate, a policy or a requirement and then treat the reply as an answer. It has not looked anything up. It has produced text likely to follow your question, from training that ended at some past date and whose contents are not fully public. A confident number with tidy working is exactly what a confabulation looks like from the outside. Give it the source, ask it to quote the line, then go and read that line yourself. Recompute every figure outside the tool, every time.

Human-review requirement

The owner confirms that no price, rate, date or policy wording in the finished work came out of the model's memory: each one traces to a document the business holds or to a calculation done outside the tool. The owner keeps the request, the output actually relied on, the tool name and the date with the job record, and does not treat the model's own explanation as a check. Where the question was never the owner's to answer — what a contract requires, a tax position, whether a decision about an employee is lawful — the owner records that it was routed to the licensed professional, who owns that answer.

Practical exercise

Watch the mechanism work, on invented material only. Do not use a real customer's details.

  1. Write a short fictional policy of about 120 words for an invented business: a cancellation policy, a returns policy or a delivery charge schedule. Include one specific figure and one date.
  2. Without pasting it, ask an assistant what that invented business's policy says. Record the reply word for word.
  3. Now paste the policy and ask the same question, requiring the exact sentence to be quoted and "not stated" if it is absent. Record the reply.
  4. Run the step 3 request twice more. Note every difference in wording, structure or substance across the three replies.
  5. Ask for a calculation using your figure — for example the refund on a booking cancelled four days out. Recompute it yourself and note whether the tool was right.
  6. Ask it to show its working. Decide whether that working would have helped you catch an error, and write one sentence on why or why not.
  7. Fill in a two-column table: for each of the four ideas (training, pieces, prediction, one stream), what you observed and the habit it supports.
  8. Save the requests, the outputs, the tool and the date the way you would keep a job record.

Knowledge check

  1. In plain terms, how does a language model produce an answer?

    Answer guidance: It breaks text into short pieces and, using patterns learned in training, predicts a likely next piece, adds it, and predicts again until the answer looks complete. Nothing in that loop compares the answer to a source.

  2. Why is asking a model to recall your current prices a bad habit?

    Answer guidance: It is not looking them up. It generates likely-sounding text from training that ended at a past date, so it will produce plausible prices that are not yours. Paste the price list in and require the answer to quote from it.

  3. What did GAO report that developers themselves acknowledge about their models?

    Answer guidance: That despite benchmark testing, multidisciplinary evaluation teams and red teaming, their models may produce incorrect outputs, exhibit bias, or be susceptible to attacks. GAO reports what developers told it and publish; it is not an independent audit of any product.

  4. Why does the OWASP point that these systems make no distinction between instructions and data matter when you upload a supplier PDF?

    Answer guidance: Because your instruction and the document's contents are pieces in one stream, so wording inside the document can steer the answer. Treat anything you upload as data and check the output back against it.

Sources and further reading