AI basics
What is a large language model, and how does it write?
A large language model predicts the next piece of text, one step at a time, using patterns learned from vast amounts of writing. Here is what that means in practice.

A large language model, or LLM, is an AI system trained on huge amounts of text to predict what words come next. That simple skill, practised at enormous scale, is what lets AI chat assistants answer questions, draft emails, summarise reports and write code.
This guide explains what a large language model is, how it produces an answer, what large refers to, how it becomes a helpful assistant, and the strengths and weaknesses that follow from how it works.
What does a large language model actually do?
At its core, a language model does one thing: given some text, it estimates which small piece of text, called a token, is most likely to come next. It picks one, adds it to the text, and repeats. A full answer is built this way, one token at a time.
If you type “The capital of France is”, the model has seen that pattern so often that “Paris” comes out with very high probability. For an open request like “Write a poem about rain”, many continuations are plausible, so the model has room to vary.
It sounds too simple to produce essays and working code. The surprise of the field is that predicting the next token well, across almost every kind of writing, forces the model to pick up grammar, facts, styles and a good deal of reasoning-like behaviour.
What makes a language model large?
Large refers to two things. First, the number of parameters, the adjustable numbers inside the neural network, which runs into billions. Second, the amount of training text, which can include a wide sweep of books, websites, articles and code.
Earlier language models were small and could only manage short, fairly generic text. As models and datasets grew, abilities appeared that smaller models lacked, such as following detailed instructions, translating between many languages and explaining their steps.
Most LLMs use the transformer design, a type of neural network that is good at weighing how every word in a passage relates to every other word.
Its fluency is not proof of truth. The same smooth tone appears whether the content is right or wrong.
How does a raw model become a chat assistant?
A model that has only learned to predict text is not yet a helpful assistant. Ask it a question and it might continue with more questions, because that is a common pattern on the web. Turning it into an assistant takes extra training stages.
The exact recipe differs between developers, but these stages are why an assistant answers politely, follows formatting requests and declines some requests.
- Pre-training: the model learns from a vast amount of general text by predicting the next token.
- Instruction tuning: it is trained on examples of good questions and answers, so it learns to respond helpfully.
- Feedback training: people, or other systems guided by people, compare answers and the model is nudged towards the preferred ones.
- Safety training: it learns to refuse or handle carefully some harmful requests.
Does a language model understand what it says?
This is debated. A language model clearly captures a lot about meaning: it can paraphrase, translate and answer follow-up questions in ways that track the topic. But it has no senses, no lived experience and no built-in way to check its statements against the world.
A practical position is to treat it as a very well-read pattern engine. It can be remarkably useful and often correct, but its fluency is not proof of truth. The same smooth tone appears whether the content is right or wrong.
One sign of the gap: a model can explain a rule perfectly and then break it in the next answer. People who understand a rule rarely do that. Keeping this in mind stops you treating a polished paragraph as a verified one.
What are large language models good at?
LLMs shine at tasks built from language patterns. They draft and rewrite text in different tones, summarise long documents, explain concepts at different levels, brainstorm options, translate, turn notes into structured lists and help write or explain code.
They are also flexible. One model can handle a recipe question, a spreadsheet formula and a cover letter in the same conversation. Older software needed a separate tool for each job. They also respond to context you give them: paste in your notes, a style sample or a document, and the model works from that instead of relying only on what it absorbed in training.
Many assistants combine a language model with other tools, such as web search, calculators or file reading, to cover its weak spots.
Where do large language models go wrong?
Because they generate likely text rather than look up facts, LLMs can produce confident statements that are false, known as hallucinations. Fake citations, wrong dates and invented quotes are common examples.
Their knowledge also stops at the point their training data was collected, unless they are connected to search. They can be weak at precise arithmetic and counting, can reflect biases in their training text, and can lose track of details in very long conversations.
The safe habit is simple: use them for drafts, ideas and explanations, and check anything factual, numerical or important before you rely on it.
Frequently asked questions
What does LLM stand for?
+
LLM stands for large language model. It is an AI model trained on very large amounts of text to predict and generate language. AI chat assistants are built on top of LLMs.
Is a large language model the same as a chatbot?
+
Not exactly. The LLM is the underlying engine. A chatbot or AI assistant is the product built around it, with a chat window, safety rules, memory features and sometimes extra tools like search.
How does a large language model know things?
+
It absorbs patterns from its training text, including many facts that appear often. It does not store a neat database of facts, so it recalls common knowledge well and rare details less reliably.
Does a language model search the internet?
+
A model on its own does not. Some assistants connect the model to a web search tool and feed the results into its answer. Check whether your tool shows sources to know which is happening.
Why do LLMs give different answers to the same question?
+
When choosing each next token, the model usually samples from several likely options rather than always taking the top one. This adds variety, so the same prompt can produce different wording or even different conclusions.
Can a large language model reason?
+
It can often work through problems step by step and get correct answers, especially when asked to show its working. But its reasoning can break in unexpected places, so check the logic and results on anything important.
A large language model is a next-word predictor trained so widely that it can write, explain and assist across almost any topic. Knowing that it predicts rather than knows is the key to using it well.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Cortexpost Editorial Team
Artificial intelligence
Our writers work with AI tools every day and explain them plainly, without hype or doom.


