What a large language model is

The idea behind ChatGPT, Claude and Gemini in plain words: how these models are made, what they are good and bad at, and what that means for how you use them.

Beginner8 min readUpdated November 29, 2026

The short version

A large language model, or LLM, is a computer program trained on a very large amount of text to do one thing extremely well: given some text, predict what text should come next. ChatGPT, Claude, Gemini and many other assistants are built on models like this.

That sounds too simple to explain what these tools can do. It is not the whole story, and we will add to it below. But "it continues text in the most fitting way it can" is the most useful single idea for understanding why they are so good at some things, so bad at others, and why the way you write your prompt matters so much.

What the name means

  • Language model. A model of how language works: which words, phrases and ideas tend to follow which, in which contexts. Older language models powered things like the next-word suggestions on a phone keyboard.
  • Large. Modern models are trained on far more text, with far bigger internal structures, than earlier ones. Size turned out to matter a lot. Beyond a certain scale, models started handling tasks nobody had trained them for directly, such as translating, summarizing or writing code, just from having seen so much text where people did those things.

The "internal structure" is a neural network: a huge set of numbers, adjusted during training, that together turn the input text into a prediction. Nobody writes the rules by hand. The patterns come from the training text.

How a model is made: training, then tuning

Building an assistant like ChatGPT happens in broad stages. Companies differ in the details, which they publish only partly, but the general shape is well known.

  1. Pretraining. The model reads a very large collection of text, such as books, websites, articles and code, and over and over again tries to predict the next piece of text, adjusting itself each time it gets it wrong. By the end, it has absorbed a great deal about grammar, facts, styles, reasoning patterns and how different kinds of documents are written.
  2. Tuning to be an assistant. A pretrained model is good at continuing text but not at being helpful. Ask it a question and it might continue with more questions, as if it were writing a quiz. So it is trained further on examples of good conversations, and on feedback from people about which replies are better. This teaches it to answer, follow instructions, say when it is unsure and decline harmful requests.
  3. Extra tools. Many assistants are then connected to tools: web search, file reading, code running, image generation. The model decides when to use them, and the tool results are fed back to it as more text.

When you chat with an assistant, you are talking to the result of all three stages.

What happens when you send a message

When you send a prompt, the assistant combines it with the earlier messages in the chat, plus any standing instructions, into one long piece of text. The model reads all of it and produces a reply one small piece at a time. Each new piece is chosen based on everything before it, including the pieces it has just written.

Two things follow from this.

  • Your prompt is the steering wheel. The model has no other information about your situation. Everything it does is a response to the text in front of it.
  • There is built-in variety. At each step there are usually several reasonable next pieces. Assistants do not always pick the single most likely one, which is why the same prompt can give different replies, and why replies feel less robotic than older software.

It is not a database

The most common misunderstanding is that an LLM looks things up. It does not, unless it is connected to a search tool. Its knowledge is stored as patterns in its internal numbers, not as a list of facts with sources.

That has practical effects:

  • It can be fluent and wrong. It produces what sounds right given the patterns it learned. For well-known facts that usually is right. For rare facts, exact figures or specific quotes, the most fluent continuation may simply be made up.
  • It has a cutoff. Its built-in knowledge stops at the point its training text was collected. Without a search tool, it does not know about anything after that.
  • It cannot show where a fact came from. Unless it used a tool that returns sources, any citation it gives from memory might not exist. Check them.
  • It does not remember you between chats by default. Some assistants add memory features on top, which store notes and feed them back in as text. The model itself does not learn from your conversation.

What LLMs are good at

  • Working with text you give them. Summarizing, rewriting, translating, extracting details, changing tone, organizing notes. When the material is in front of the model, it is on its strongest ground.
  • Drafting. First versions of emails, outlines, explanations, code and plans, which you then check and edit.
  • Explaining. Breaking down a topic at the level you ask for, and answering follow-up questions patiently.
  • Brainstorming. Producing lots of options quickly, some of which are useful starting points.
  • Following patterns. Copying a format or style from examples you provide.

What they are weaker at

  • Exact facts from memory. Names, dates, figures and quotes, especially for less well-known topics.
  • Counting and precise arithmetic. Many assistants now hand calculations to a code tool, which helps. Without one, long sums and exact counts are unreliable.
  • Knowing what they do not know. They are improving at saying "I'm not sure", but they still sometimes answer confidently when they should not.
  • Very recent events, unless connected to search.
  • Your private context. They know nothing about your company, family or project unless you tell them.

What about reasoning?

Some newer models are described by their makers as reasoning or thinking models. In broad terms, they are trained to work through a problem in steps before giving the final answer, sometimes spending extra time and computing to do it. For maths, logic, planning and code this often helps.

It does not change the basics. These models still work from the text in front of them, can still get facts wrong and still benefit from a clear prompt. Treat the extra thinking as a reason to give them harder problems, not as a reason to stop checking.

Worked example: three ways to ask

Here is the same need asked three ways, and what the model is really doing in each.

Recall prompt
What are the opening hours of the library on Main Street?

The model has no way to know this unless it searches. Without search it may produce a typical-sounding schedule. That is recall of patterns, not a fact.

Search prompt
Search the web for the current opening hours of the public library on Main Street in [your town] and link the page you used.

If your assistant has web search, this asks it to fetch a real page and show you where the answer came from. You can open the link and check.

Read prompt
Here is the text from the library's website. What time does it close on Saturdays? [paste text]

This is the most reliable of the three, because the answer is right there in the text and the model only has to read it. Most of the tips in this Learn section are, one way or another, about moving your request from the first kind toward the third.

Open and closed models

Some models are only available through a company's app or service. You send your text to their servers and get a reply back. ChatGPT, Claude and Gemini work this way.

Others are released as open-weight models: the trained numbers are published, so anyone with suitable hardware can download and run them on their own computer. These are usually smaller than the largest online models, but they keep your data on your machine and work without an internet connection. The "Local AI vs cloud AI" lesson in the RAG, agents and local AI track, and the guides on LocalUseCases, cover how people use them.

What this means for you

  • Give it the material. If the answer should come from a document, paste or upload the document. That moves the model from recalling to reading.
  • Give it the context. It knows a lot in general and nothing about you. Say who, what for and any constraints.
  • Use it for drafts, not final answers, in anything that matters. Read, check and edit.
  • Check specifics. Names, numbers, dates, quotes and links are where fluent mistakes hide.
  • Use search-connected tools for current facts, and open the sources they show.

Try it

  1. Ask an assistant without web search about a small, real local business or event you know well. Note what it gets right and what it invents.
  2. Now paste a short description of the same thing from its website and ask the same question again, telling it to use only that text.
  3. Compare the two answers. The difference is the difference between recalling patterns and reading material.

Questions people ask

Does an LLM understand what it is saying?

People disagree about how to describe it. What matters in practice is that it can handle a wide range of language tasks very well, and that it can still be confidently wrong. Judge it by checking its work, not by how sure it sounds.

Is it learning from my chats right now?

Not in the moment. The model does not change while you talk to it. Some companies may use chats to train future models, depending on your settings. For ChatGPT, the privacy lesson on this site shows where that setting is.

Why do different assistants give different answers?

They are different models, trained on different data in different ways, with different tools and settings. That is one reason to test the ones you have access to on your own tasks.