Lesson · 1 of 9

How a language model works, in plain English

15–25 min

Case: fictional HarbourDesk.

Start with a draft you can check

You are helping HarbourDesk colleague Jo prepare a weekly support update. The fictional notes say that 24 requests arrived, 18 closed and six remain open. There is no explanation for the open requests. You ask your organisation’s approved tool to turn these notes into a short update. Understanding what happens next helps you use the draft without treating it as a verified record.

A language model learns patterns during training. When generating an answer, it predicts likely next pieces of text from those patterns and the context available to it. It can produce useful explanations and drafts, but this process does not itself check whether a statement is true. A smooth sentence about why six requests remain open can be invented just as smoothly as a correct summary.

Tokens and the space available

Models process text as tokens: pieces that may be whole words, parts of words or punctuation. A token is not always a word. Input and output length can affect cost and usage limits, so a long conversation or a large attachment may use more allowance than a short request. Do not assume a word count tells you the exact token count.

The context window is the limited amount of material a model can work with at once. It may include instructions, your messages, selected conversation history and material returned by tools. Long conversations or documents may be shortened or only partly included. An uploaded file is not proof that every page reached the model.

For Jo’s update, supply the relevant weekly notes together with the task. Do not assume the model can see a spreadsheet on your computer, an earlier conversation or the latest support queue. Check what the tool actually includes. If the week or source is unclear, resolve that before drafting.

Why fluent text can be wrong

A hallucination is generated content presented as factual that is false or unsupported. Here the model might write, “Six requests await a supplier response,” although the notes give no cause. It has filled a gap with a plausible continuation.

Be especially alert with specific facts, numbers, citations, recent events and information absent from the context. Training is not a current, authoritative record of your workplace. Even supplied information can be misread. Ask for unknowns to be labelled, then check whether the answer follows that instruction. An instruction reduces ambiguity; it does not guarantee honesty or accuracy.

Search and retrieval add material, not certainty

A tool can search or retrieve documents and supply passages to the model. Jo could retrieve the authorised weekly notes and ask for an answer grounded in them. This gives the answer a source you can inspect instead of relying on the model’s learned patterns alone.

Still open the source. Check that it covers the right week, contains the quoted figures and supports the claimed explanation. Search may find an old document; retrieval may omit an important paragraph. A citation is a route to evidence, not evidence that the sentence is correct.

Actions need a tighter boundary

An agent is a model that can take actions through tools, often across several steps. For Jo, drafting an update and sending it to colleagues are different permissions. Keep access limited to the necessary material and require review before sending. Check the actual sending record rather than trusting “sent” in generated text.

Fine-tuning means further training a model on selected examples to change its learned behaviour. Giving examples in a prompt supplies temporary guidance within the context; it does not retrain the model. Neither approach makes Jo’s missing facts true or removes the need for current sources.

Quick self-check

Q1. The draft explains why six requests remain open. Does fluent wording establish the cause? No. The notes contain no cause; remove the explanation or verify it elsewhere.

Q2. Retrieval finds the weekly notes. Can Jo now send the summary unread? No. Check the source, figures and unsupported additions, then approve the action separately.