Skip to content
Valery

Module 1 · Lesson 1 of 6

How large language models work

Training versus use, next-token prediction, why models sound confident, and what reasoning models add.

10 min

Every AI tool a brokerage touches today, from the listing-copy helper in your CRM to the chat box on a website, runs on a large language model. You don't need to know the maths to use one well. You do need a working picture of what happens when you press Enter, because that picture explains almost everything else in this course: why the same question gets two different answers, why a model can sound sure and still be wrong, and why some tasks cost ten times more than others.

This lesson gives you that picture in plain words.

What a large language model is

Key term
Large language model (LLM)

A computer program trained on a very large amount of text to predict what text comes next. Claude, ChatGPT's models and Gemini are all large language models.

Inside, a model is a huge set of numbers (called parameters) that encode patterns in language: which words tend to follow which, how a polite email is shaped, what a listing description usually contains, how a legal clause is usually worded. It is not a database of facts. When you ask it a question, it doesn't look up an answer in a table. It writes an answer that fits the patterns it learned.

That difference matters at a brokerage. A database either has the sale price of a property or it doesn't. A language model will always produce something that looks like an answer, whether or not it knows.

Training versus use

There are two very different moments in a model's life, and people often mix them up.

Training a model vs using one
QuestionTrainingUsing (inference)
Who does itThe vendor, such as Anthropic, OpenAI or GoogleYou, every time you send a message
WhenOnce per model, over weeks or monthsIn seconds, on demand
What changesThe model's internal numbersNothing inside the model; it reads your message and writes a reply
CostEnormous, paid by the vendorSmall per message, paid per token or through a subscription
What it learnsGeneral patterns from huge amounts of textNothing permanent; it only sees what is in the current conversation

Training has two stages. First, pretraining: the model reads a vast amount of text and adjusts its numbers, over and over, to get better at predicting the next piece. Then post-training: the vendor teaches it to follow instructions, hold a conversation, decline harmful requests and answer in a helpful shape, using examples and feedback from people.

Using a model (engineers call it inference) is what you do. Your message goes in, the model writes a reply, and nothing about the model changes. If you correct it mid-conversation, it can use the correction for the rest of that chat because the correction is now part of the text it reads. It does not "learn" it for next week. Whether a vendor later uses your chats to train future models is a separate question about privacy terms, covered in Lesson 5.

The knowledge cutoff

Training data stops at a date, called the knowledge cutoff. As of October 2026, Anthropic lists a reliable knowledge cutoff of June 2026 for its current Claude models, and OpenAI lists April and May 2026 for its GPT-6 models. Anything that happened after that date (a new Bank of Canada rate decision, a RECO bulletin update, a municipal tax change) is simply not in the model unless a tool gives it to the model, such as a web search or a document you attach.

Next-token prediction

Models read and write in tokens: small chunks of text, often a word or part of a word. Lesson 2 covers tokens in detail. For now, picture this loop:

What happens when you press Enter
  1. 1. TriggerYou send a message
  2. 2. DataThe message is split into tokens
  3. 3. AIThe model scores every possible next token
  4. 4. AIOne token is picked
  5. 5. CheckIs the answer finished?
  6. 6. ActionIf not, add the token and go again

A 200-word reply means this loop ran a few hundred times.

Say you've asked for a listing description, and the model has written so far: "This bright three-bedroom semi sits steps from". The model now gives every possible next token a probability. As an illustration, "the" might get 30%, "transit" 15%, "parks" 12%, "shops" 10%, and thousands of other tokens share the rest. It picks one, adds it to the text, and repeats the whole calculation for the next token.

Why the same prompt gives different answers

The model doesn't always pick the single most likely token. A setting called temperature controls how adventurous the pick is. At a low temperature it almost always takes the top choice, so answers are predictable and a little flat. At a higher temperature it sometimes takes the second or fifth choice, so answers vary more and can read as more creative. Chat apps choose this setting for you; developers can set it through the API on many models.

Try it below. The demo starts a sentence, "The buyers loved the open-concept kitchen and the ___", and shows eight candidate next words with made-up scores as probability bars. Move the Temperature slider to a low setting such as 0.2 and press Sample a word a few times. Then move it to a high setting such as 1.8 and sample again, watching the list of recent draws.

Pick the next word

Try it

A model scores every possible next token, turns the scores into probabilities and samples one. Move the temperature and watch the odds change, then sample a few times.

The buyers loved the open-concept kitchen and the ___

0.8 · balanced
  • backyard36.7%
  • natural light25.2%
  • location17.3%
  • finished basement9.3%
  • quiet street6.4%
  • price3.9%
  • ceiling fans1.3%
  • dragon0.1%
Sample a few times at 0.2, then at 1.8, and compare.

The scores are made up for this demo. A real model scores tens of thousands of tokens at every step.

What you just saw is the whole engine. At low temperature the top candidate wins almost every time, so the same start produces the same finish, which is what you want for consistent compliance wording. At high temperature the odds flatten and the picks spread out, which helps when you want five different social captions to choose from, and occasionally an odd word slips through. That is the trade-off: more variety also means more nonsense.

One thing the demo can't show: the model is just as willing to continue a sentence that needs a fact ("The 2026 property tax on this home is $") as one that needs a style choice. It will produce digits either way. Nothing in the loop checks whether a number is true.

Why it sounds confident

A model writes fluent, assured text because that is what most of its training text looks like, and because post-training rewards answers that are helpful and complete. Researchers argued in a 2025 paper, Why Language Models Hallucinate, that standard training and testing reward guessing over admitting uncertainty, much like a multiple-choice exam that gives no credit for leaving a question blank.

So tone tells you nothing about accuracy. A model describing a condominium by-law it has never seen will use the same calm, specific voice as one quoting a by-law you pasted in. Lesson 4 covers how to catch the difference.

What "reasoning" models add

Many current models can reason (vendors also say "think") before they answer. Instead of writing the reply straight away, the model first writes out working steps, often hidden from you or shown as a summary, then writes its final answer. This helps with multi-step work: applying tax brackets in the right order, comparing two documents clause by clause, or planning the steps of a task.

As of October 2026, OpenAI's GPT-6 models let developers choose a reasoning effort from low to max, and Anthropic's current Claude models decide how much to think on their own, with an effort setting developers can adjust. Two things stay true whatever the vendor:

  • Reasoning costs more and takes longer. The thinking is billed as output tokens, the expensive kind (Lesson 6).
  • Reasoning doesn't add facts. A model can reason carefully from a wrong or outdated rate and arrive, carefully, at a wrong answer.

Use reasoning for calculations, comparisons and anything with several steps. Skip it for a quick caption or a rewrite of your own notes.

In practice

Priya, a salesperson at the fictional Maple & Main Realty in Toronto, wants a short email for a past client who is renewing a mortgage. She types: "What is the Bank of Canada's policy rate right now?" The assistant answers with a rate and a date, in a confident tone. The date is months old. The model wasn't lying; it continued the pattern from its training data, which ends before the latest decision.

She tries again, this time with what the model is good at:

Using the model for what it does well
Here are my notes for a past client, Jordan, who renews in March.
Rewrite them as a friendly email of about 120 words.
Do not add any rates, dates or numbers that are not in my notes.

Notes:
- renewal letter from lender arrives about 4 months before
- worth comparing offers, not just signing
- happy to connect them with two mortgage brokers we trust
- current rate info: I'll send the Bank of Canada link separately

The model writes a clear, warm email from her facts. She then pastes the current rate from bankofcanada.ca herself. Writing from facts she supplied: strong. Supplying facts it may not have: weak.

Common mistakes

  • Treating a confident answer as a checked answer. Fluency and accuracy come from different places.
  • Assuming the model "remembers" a correction from last week's chat. It doesn't, unless a memory feature saved it (Lesson 3).
  • Asking about recent events, rates or rule changes without giving the model a source.
  • Using a reasoning model for everything and paying for thinking that a simple rewrite doesn't need.
  • Raising the temperature (or asking for "creative" output) on compliance wording that should read the same every time.

Key takeaways

  • A large language model predicts the next token, over and over. It writes what fits the pattern, not what it has checked.
  • Training happens once at the vendor. Using a model changes nothing inside it.
  • Every model has a knowledge cutoff; give it current facts through documents or search.
  • Temperature controls variety. Low for consistent wording, higher for options to choose from.
  • Reasoning models handle multi-step work better, cost more, and still can't invent facts they don't have.

Finished reading? Move on when you're ready.