Large Language Models
In this article
- Say what a large language model is and where its fluent writing comes from.
- Tell the chat application apart from the model inside it, and a product name from a model name.
- Explain why a model's answer is not a looked-up fact, and why a fluent reply can be false.
- Spot what a reply does and does not show about how it was produced.
- Terms defined here: chat assistant, model name, large language model, parameter, training, hallucination.
Overview
Type "In which city is the Eiffel Tower?" into a chat assistant and "Paris." comes back. Now ask "What does zorb do?". zorb would be a command-line tool, the kind of program you start by typing its name, except that nobody ever made it. You can still get a well-written description of how to use it. Both replies read the same way, with no hint of doubt, and only one is true. To see why, you need a picture of what sits behind the chat window: what a large language model is, where its fluent writing comes from, and which part of the assistant could have checked a fact.
Two programs behind one chat window
The window you type into belongs to an application. When you send a question, the application passes your text to a model, the model writes the reply, and the application shows it to you. Microsoft 365 Copilot adds one step: before it sends the request on, it adds information from the user's organisation, such as emails, chats and documents the user is allowed to see. [6]
So a chat assistant is the application, and the model is a separate program inside it that does the writing. The application carries text to the model and back, and can add text of its own on the way. [6]
This split tells you what a name refers to. HuggingChat, a chat application from Hugging Face, is a product name. Llama, GPT and Claude are each a model name: the label of one model or a family of models. Claude, for example, is a family of large language models, and claude.ai is one place where people chat with them. Because HuggingChat can send each request to a model it picks from the ones it has access to, the product name alone does not tell you which model wrote a reply. [1,5,7]
What the model is
Most programs follow rules a person wrote. A unit converter turns 20 °C into 68 °F because its author typed the conversion rule.
A model is a program of another kind. What it writes is decided by a huge set of internal numbers called parameters: together they set which piece of text is likely to come next. No person types their values in. Large models have hundreds of billions of them, or trillions, and before training their values are random. [2,3]
The numbers get their values from training, an automatic process run on a vast amount of text. Take a sentence from that text, such as "The Eiffel Tower stands in Paris", hide its end, and let the model continue it. At first, with random numbers, its guess is nonsense. The guess is compared with the hidden words, and the numbers are shifted a little so that the next guess fits better. Because the hidden words were in the real text all along, no person has to mark the answers. [2,3]
Keep one detail in mind. The comparison measures how well the guess matches the hidden text. Whether that text is true never enters it.
Repeat this hide-and-guess exercise across a huge pile of text and the numbers come to capture how language goes: which words follow which, how a question is usually answered, what text about a city or a tool tends to say. That is where the fluency comes from. A program trained this way, at this scale, to continue text is a large language model, or LLM. Training can go on after this first exercise, for example to make a model better at following instructions; how that later training works is the subject of the article Pretraining and Post-Training. [1,2,3]
Writing the reply
Back to the Eiffel Tower, in the simplest case: the application passes on your question and adds nothing. A trained model does one thing with that text: it continues it. It does not write the whole answer in one step, but one small piece after another, each generated from the text already there: your question plus the pieces written so far. Printed after each step, the text grows like this: [2,3]
In which city is the Eiffel Tower?
In which city is the Eiffel Tower? Paris
In which city is the Eiffel Tower? Paris.The top line is the text the model was given; the rest, "Paris.", is the reply you see. Look at the second line: when "Paris" was written, the full stop did not exist yet. No finished answer was waiting to be shown. What counts as a piece, and how each one gets picked, is the subject of the next article, Tokens and Next-Token Prediction.
Where the answer came from
Why is the first piece "Paris" and not "Lyon"? A tempting guess is that something found the answer, in a stored record or on the web. In this case nothing did: the model had only your question and its numbers. During training, text about the Eiffel Tower kept placing it in Paris, and each correction moved the numbers toward continuing such text with "Paris"; the trained numbers now favour it. [2,3]
Lookups do happen in some assistants, and the application sets them up. It can, for example, hand the model documents and tell it to answer from those alone, not from its general knowledge. What the model receives is more text to continue. [4,6]
The web works the same way. Some applications switch on a web search feature when they send your text to the model. Search results can then reach the model as more text, for it to write from and cite the pages. That is how a reply can cover things after the model's training cutoff, the point where its training text ends: later text never went through the hide-and-guess exercise, so it left no mark on the numbers. [5,8,9]
When the likely text is false
Now the other question: "What does zorb do?". Before reading on, predict two things. If the assistant worked by looking names up in a set of records, what would come back for a name that no record holds? And what would a model that continues text give back?
A lookup can come back empty: no record, nothing to show. A continuation has no empty result. Whatever text the model is given, training has left some next pieces more likely than others, so there is always a next piece it can add. [3]
A typical description of a command-line tool has a familiar shape: a short purpose, then options, the extra words you type after a tool's name to change what it does, each written after two hyphens with a brief note. The model continues your question the way such text usually goes, and a reply like this can come out. It is invented output, written by hand to show the pattern:
zorb compresses log files from the command line. zorb has the option --fast, which skips the final check, and --keep, which leaves the original file in place.Every claim in it is invented, and nothing in its wording sets it apart from "Paris.". Training compared each guess only with the hidden text: whether that text was true, or whether the model had ever met the thing it described, never entered the comparison. For the Eiffel Tower, the likely continuation and the true one were the same. For zorb they come apart, and the model continues in the same way: the mechanism that wrote "Paris" wrote the options too.
A false statement in text a model wrote is called a hallucination. Even the most capable models produce them at times. Instructions help, such as letting the model say that it does not know, or having it back each claim with a quote from documents it was given. They reduce hallucinations but do not remove them. [3,4]
So if you try zorb yourself, the reply may be "I don't know a tool called zorb." That is a continuation too: after your question, words that admit not knowing were the likely next pieces. On its own it does not show that anything checked whether zorb exists.
So treat every reply as a likely continuation of the text the model was given. It is often right, because likely text is often true. When it matters, ask what text the application put in front of the model. What you attached or switched on, such as a document or a web search, often tells you; the reply's wording does not. If the answer is "only your question", the reply came from the trained numbers, and nothing in it was checked against a record or a page.
Sources
- Hugging Face LLM Course: Introduction (chapter 1). Hugging Face. Checked 29 Oct 2026.
- Hugging Face LLM Course: How do Transformers work?. Hugging Face. Checked 24 Oct 2026.
- Google ML Crash Course: LLMs, what is a large language model (transformers and self-attention). Google. Checked 24 Oct 2026.
- Reduce hallucinations. Anthropic. Checked 24 Oct 2026.
- Models overview. Anthropic. Checked 2 Nov 2026.
- How does Microsoft 365 Copilot work?. Microsoft (microsoft-365-docs). Checked 5 Nov 2026.
- Chat UI. Hugging Face. Checked 5 Nov 2026.
- Web search tool. Anthropic. Checked 24 Oct 2026.
- Grounding with Google Search (Gemini API). Google. Checked 24 Oct 2026.
Check yourself
Check yourself
Question 1 of 5
The application adds your team's handbook to each question and nothing else, with an instruction to answer from it alone. The handbook never mentions parking, yet the reply lists parking rules your office lacks. Which could explain it?
Your first check counts towards your result.