In this guide
A large language model, or LLM, is an AI system trained on vast amounts of text so that it can predict what text should come next and, by doing that repeatedly, write, summarise, translate and answer questions. It is called large because it has a very high number of internal settings, called parameters, and is trained on a very large body of text. It produces fluent language, but fluency is not the same as understanding or accuracy.
What an LLM actually is
An LLM is a type of neural network specialised for language. During training it is shown huge amounts of text and repeatedly asked to guess the next piece of text. Each time it guesses wrong, its parameters are nudged so the next guess is slightly better. After enormous numbers of these adjustments, the model becomes very good at continuing text in a way that fits the context.
This one simple task, predicting what comes next, turns out to support many abilities: answering questions, following instructions, rewriting in a different tone, and drafting code. These abilities emerge from the pattern learning, not from hand-written rules.
LLMs are one branch of generative AI, which also covers images, audio and video.
How an LLM works, step by step
- Text is split into tokens. The model does not read letters or whole words. It reads small chunks called tokens.
- Tokens become numbers. Each token is converted into a list of numbers that represent it.
- The network processes the numbers. Most modern LLMs use a design called the transformer, which lets the model weigh how every token in the input relates to every other token. This is how it keeps track of meaning across a sentence or paragraph.
- It scores possible next tokens. The model produces a probability for each token it could output next.
- One token is chosen and the process repeats. The chosen token is added to the text, and the cycle runs again until the response is complete.
Because the choice among likely tokens involves some controlled randomness, the same prompt can give different answers on different runs.
What LLMs are good at
- Drafting and rewriting text in a requested style or length.
- Summarising long material into key points.
- Translating between languages.
- Explaining a topic at different difficulty levels.
- Extracting structured information, such as pulling names and dates from a message.
- Helping with first-pass code and debugging.
A concrete example: paste a rough set of meeting notes and ask for "five action items with owners, in a bulleted list". The model is working with text you supplied, so the task plays to its strengths.
What LLMs are bad at
- Reliable facts. An LLM generates plausible text. It can invent details, sources and quotes. See what AI hallucinations are for how to reduce the risk.
- Up-to-date knowledge. Training data has a cut-off. Some products add web search, but then you should check what the tool actually searched.
- Precise calculation. Arithmetic and long chains of exact logic are weak spots unless the system uses a calculator or code tool.
- Knowing what it does not know. It usually does not signal uncertainty reliably.
LLM, chatbot and model: how the terms relate
People often mix these up. The LLM is the underlying model. A chatbot is a product built around an LLM, with a chat interface, safety rules, extra training to follow instructions, and sometimes tools like search. How that product is assembled is explained in how AI chatbots like ChatGPT work.
Different LLMs vary in size, cost, speed, supported languages and how much text they can handle at once, which is described by the context window. Specific model names and capabilities change often, so check the provider's current documentation before choosing one.
How to use an LLM well
- State the task, the audience and the format you want.
- Provide the source material rather than asking it to recall facts from memory.
- Ask it to flag assumptions or missing information.
- Verify names, numbers, dates and citations independently.
- Keep sensitive personal or company data out unless your organisation has approved the tool.
If you want to practise these habits in a structured way, the QAM.AI curriculum covers how language models work and how to prompt them, using short text lessons.
Key takeaways
- An LLM is a neural network trained on large amounts of text to predict the next token.
- Prediction at scale produces useful writing, summarising, translating and coding help.
- Fluent output is not proof of truth, so verify facts and figures.
- A chatbot is a product built on an LLM, not the model itself.
- Model details change quickly, so rely on current documentation for specifics.
Frequently asked questions
Is an LLM the same as AI?
No. AI is the broad field, and an LLM is one specific kind of AI system focused on language. Many AI systems, such as those that recognise images or recommend products, are not LLMs.
Does an LLM understand what it says?
It processes language very effectively, but it works by pattern prediction rather than human-style understanding or experience. Whether this counts as understanding is debated, so the practical advice is to judge outputs by whether they are correct and useful.
Can an LLM learn from my conversations?
Usually a model does not change itself while you chat; it only uses the text in the current conversation. Whether a provider uses your data to improve future models depends on its settings and policy, so check the privacy documentation of the tool you use.
This guide is general educational information and is reviewed periodically. AI tools change quickly, so check each vendor's current documentation before relying on specific features or limits.