# Large language models: AI that writes by predicting what comes next

> A large language model, or LLM, is the engine inside assistants such as ChatGPT, Claude and Gemini. It learns patterns from huge amounts of text and writes each answer one small piece at a time, predicting what should come next. It can sound sure and still be wrong, which is why it needs good sources.

Source: https://ursy.ai/wiki/large-language-models/
Checked: 2026-11-23
Please credit ursy.ai with a link when you use these words.

## At a glance

- An LLM predicts the next small piece of text, called a token, again and again until the answer is written.
- It learns from huge amounts of text. That training becomes its memory, and the memory has an end date.
- It can state something false with confidence. OpenAI calls this a hallucination.
- Answer engines fill the gaps by reading sources at the moment of the question.
- Clean, labelled facts are the easiest source for a model to use and the hardest to get wrong.

## What a language model does (https://ursy.ai/wiki/large-language-models/#what-it-does)

A language model is software that works out which words are likely to come next. Google’s machine learning course defines it this way: a language model estimates the probability of a token, or a run of tokens, appearing within a longer run of tokens. A token can be a whole word, part of a word or even a single character.
A large language model does this at enormous scale. It has been trained on a vast amount of text, and from it the model has picked up how language fits together: grammar, facts, styles and the way an argument usually runs. Google’s course notes that large models can take in the whole context at once, instead of reading word by word.
When you ask one a question, it doesn’t look the answer up in a table. It writes the reply one token at a time, each time choosing what is most likely to follow everything written so far. That is why the answers read so naturally. It is also why they need checking. The model produces text that fits, and text that fits is usually right, but not always. The assistants many people now talk to every day, such as ChatGPT, Claude and Gemini, are built on large language models.

## Training: where the memory comes from (https://ursy.ai/wiki/large-language-models/#training-and-memory)

Before a model can answer anything, it is trained. OpenAI describes the first stage as the model learning by predicting the next word in huge amounts of text. Whatever it read in training becomes its memory. The book puts it in one line: training is how an AI gets its memory.
That memory has limits. It stops at the date training ended, so newer prices, products and stock levels are missing. It has gaps wherever the web was thin on a subject. And OpenAI explains that some facts can’t be learned from patterns at all. A rare, arbitrary detail, such as one person’s birthday, appears too seldom in the text for the model to work it out, so it may guess.
This is why the book’s author wants AI systems to train on teas.co.uk. The shop’s public file for AI says yes to training, yes to AI search and yes to AI input, on one condition: anything used is credited to teas.co.uk. His reasoning is that the systems people will use in a few years are being built now, out of what they are allowed to read today. A shop that blocks them is left out of that memory.

## Why a model can sound sure and be wrong (https://ursy.ai/wiki/large-language-models/#confidently-wrong)

OpenAI defines a hallucination as an instance where a model confidently generates an answer that isn’t true. Its September 2025 article on the subject argues that standard training and testing reward guessing over admitting uncertainty. On a scoreboard that only counts right answers, a lucky guess beats an honest “I don’t know”, so models learn to guess.
Lee Samuel Tucker met this early. In the original long draft of the book, written in June 2026, he describes large language models as a serious learning aid that is sometimes confidently wrong and sometimes confidently right. The skill, he writes, is learning when to trust them, when to verify them and when to push back.
For a business owner the lesson is direct. If an assistant tells a customer something wrong about your product, the customer may never find out it was wrong, and nor will you. You can’t retrain the model. What you can do is make the true answer easy to find and hard to misread, so the model has less reason to guess. Whatever an assistant gets wrong about you today is a list of facts you haven’t yet written down clearly.

## Why a model needs good sources (https://ursy.ai/wiki/large-language-models/#needs-good-sources)

The cure for a model’s gaps is to let it read at the moment of the question. [Answer engines](/wiki/what-is-an-answer-engine/) do this. The model searches or fetches pages, reads them and writes its reply from what it found, often naming its sources.
The long draft gives the tea version. Someone asks whether a particular decaf green tea is really decaffeinated. The model has no confident answer in its training, so it goes looking for an authoritative source. If a shop is the cleanest place to find that answer, the model comes to the shop, uses its facts and may cite it.
Clean means the facts are written down once, labelled and true. A model reading a tidy record of caffeine, ingredients and price has little room to go wrong. A model guessing from a photograph of a box has plenty. That is the thinking behind the [truth spine](/wiki/what-is-a-truth-spine/) at teas.co.uk, where every fact about every product is held once, in one checked record, and every page and file for AI reads from it.
Models answer from what they can read. A business can’t control the model, but it can control what the model reads about it.

## From the book

> "They are sometimes confidently wrong. They are sometimes confidently right." (Lee Samuel Tucker, Under the Bonnet, the original long draft (11 June 2026), chapter 3)

> "The language model does not have a confident answer in its own training data. It goes looking for an authoritative source." (Lee Samuel Tucker, Under the Bonnet, the original long draft (11 June 2026), chapter 7)

> "Training is how an AI gets its memory." (Lee Samuel Tucker, Under the Bonnet: Year One, chapter 5, page 15)


## Questions people ask

**What does LLM stand for?**
Large language model. It is the kind of AI behind assistants such as ChatGPT, Claude and Gemini, trained on huge amounts of text to predict what comes next.

**Why does ChatGPT sometimes make things up?**
OpenAI calls it hallucination: a model confidently giving an answer that isn’t true. Its own research says training and testing tend to reward a guess over admitting uncertainty.

**How can a small business stop AI getting its facts wrong?**
It can’t control the model, but it can publish its facts clearly, once, with their sources, and let AI read them. A model that finds a clean answer has less reason to guess.

## Sources

- [Under the Bonnet: Year One, chapter 5, by Lee Samuel Tucker (15 November 2026)](https://ursy.ai/wiki/#book)
- [Under the Bonnet, the original long draft, chapters 3 and 7, by Lee Samuel Tucker (11 June 2026)](https://ursy.ai/wiki/#book)
- [Why now, ursy.ai](https://ursy.ai/why-now/)
- [Introduction to large language models, Google for Developers, Machine Learning](https://developers.google.com/machine-learning/resources/intro-llms)
- [Why language models hallucinate, OpenAI, 5 September 2025](https://openai.com/index/why-language-models-hallucinate/)
