SpaceStack
Menu
Glossary

What is an LLM (large language model)? A plain-English explanation

An LLM is a program trained on huge amounts of text to predict the next word — which is why it can write, summarize and code, and also why it confidently makes things up. Here is what that means in practice.

Published Jul 4, 2026 • Updated Jul 4, 2026

Stylized cyberpunk illustration used as the editorial avatar for Daniel P.
Tech Lead Senior Software Engineer · Oslo, Norway
Short definition

An LLM is an AI model trained on massive text data to predict the next token, letting it generate and understand language — powering tools like ChatGPT, Claude and coding assistants.

The short version

An LLM — large language model — is a program that has read an enormous amount of text and learned one narrow trick extremely well: given some words, predict the next word.

That sounds too simple to be useful. But do that prediction over and over, at a huge scale, and you get something that can draft an email, explain a codebase, summarize a contract or write a function.

I did my Master’s in AI on neural networks, and this is the honest framing I give people: an LLM is not a thinking mind. It is a very sophisticated pattern-completer. Understanding that one fact tells you both what it is great at and where it will burn you.

How it works, without the math

You do not need the math to use one well. You need the shape of it.

From your text to the model's answer
  1. 1
    Tokenize
    Your text is split into tokens — chunks roughly the size of a word piece.
  2. 2
    Predict next token
    The model scores every possible next token and picks a likely one.
  3. 3
    Repeat
    It appends that token and predicts again, word by word.
  4. 4
    Stop
    It ends when the answer looks complete or hits a length limit.

Everything an LLM does — chat, code, translation — is that loop running fast. The “intelligence” is in how good those next-token guesses are after training on trillions of words.

What LLMs are genuinely good at

In my day-to-day as an engineer, these are the wins that hold up:

  • First drafts. Code, docs, emails — a solid starting point in seconds.
  • Explaining and summarizing. Turning a wall of text or an unfamiliar file into plain language.
  • Transforming. Reformatting, translating, converting one structure into another.
  • Rubber-ducking. Talking through a problem and getting a fast second angle.

The common thread: tasks where a good draft plus your judgment beats a blank page.

Where they fail — and why it matters

The two failure modes to remember
Hallucination
Confident and wrong
Invents a function, a citation or a fact that reads perfectly but does not exist.
Stale knowledge
Frozen at training time
Doesn’t know your codebase, your prices, or anything after its training cutoff.
Both come from the same cause: the model generates plausible text, not verified facts.

The fix for stale, private knowledge is usually RAG — giving the model your documents at question time. The fix for hallucination is you: verify anything that matters before you ship it.

LLMs you have probably met

ChatGPT product screenshot
ChatGPT logo
ChatGPT
Best for: General-purpose default

OpenAI's assistant, the tool that made LLMs mainstream. Strong general-purpose writing, reasoning and coding help.

Open ChatGPT
Claude product screenshot
Claude logo
Claude
Best for: Long documents and coding

Anthropic's assistant, well regarded for long-context work, careful writing and coding tasks.

Open Claude
Gemini product screenshot
Gemini logo
Gemini
Best for: Google-centric workflows

Google's model family, tightly integrated with Google's ecosystem and strong multimodal support.

Open Gemini

The consumer front-ends for the best-known models. Model quality and pricing shift constantly — check the current tiers before standardizing a team on one.

FAQ

Is an LLM the same as AI?

No. AI is the broad field. An LLM is one type of AI model focused on language. It is the technology behind most of the chat and coding assistants you have used, but AI also covers image models, recommendation systems and much more.

Why does an LLM make things up?

Because it generates likely text, not verified facts. It has no built-in sense of “I don’t know.” Treat every specific claim — a price, an API, a citation — as unverified until you check it.

Do I need to understand LLMs to use AI tools?

You need the mental model in this article: it predicts, it doesn’t know. Once you internalize that, you use these tools for drafts and transforms, keep a human in the loop for anything that matters, and you avoid most of the pain.

What is a token?

A token is the chunk of text an LLM reads and writes in — usually a word or word-piece. Pricing and length limits are counted in tokens, which is why very long prompts cost more and can get truncated.

Keep reading