Large language model

Large language model (LLM)

A large language model (LLM) is an AI system trained on huge amounts of text to predict the next piece of text, which lets it write, summarise and answer questions.

Checked 27/11/2026 against 4 sources. Next review 27/05/2027.

A large language model, or LLM, is a program that predicts a token, or a run of tokens, from the text it is given [1]. A token can be a whole word, part of a word or a single character [1]. Google says LLMs make much better predictions than older language models because they hold far more parameters and gather far more context [1]. Anthropic calls Claude a language model [2]. AWS says LLMs power intelligent chatbots [4], so a chatbot on a website often sits on top of one.

What does an LLM actually do with my question?

It turns your question into tokens and predicts what text should come next, one piece at a time [1]. Google's machine learning course says LLMs make much better predictions than older models, and it gives two reasons: far more parameters and far more context [1].

The architecture behind most of them is the Transformer. It relies on self-attention, which asks, for each token of input, how much every other token changes its meaning [1]. That is how the word "bank" gets read differently in "river bank" and "bank loan".

AWS describes LLMs as trained on vast volumes of data, with billions of parameters, and able to answer questions, translate languages and complete sentences [4]. The model does not look anything up while it writes. It works from patterns it learned in training, plus whatever you put in the prompt.

Why does an LLM sometimes state things that are wrong?

Anthropic's documentation says even the most advanced models can produce text that is factually incorrect or inconsistent with the context you gave them, and calls this hallucination [2]. A model predicts likely text. Likely and true are not the same thing.

A worked example

Say you run a bakery in Tampines and ask a general LLM for your refund window. It has never seen your policy, so it may invent one that sounds normal, such as "7 days". Paste your actual policy into the prompt, or connect it with RAG, and the answer now comes from your text. Anthropic also suggests telling the model it may say "I don't know" when it is unsure, which it says can drastically reduce false information [2].

Anything a customer will act on, such as prices, opening hours or refund terms, should come from your own documents and not from the model's memory. The hallucination entry covers the failure in more detail.

How do I make an LLM answer the way my business needs?

MethodWhat changesSource
Prompt engineeringYou write clearer instructions and examples; the model itself is not alteredGoogle ML course [3]
RAGThe system looks up your documents first and adds them to the prompt; no retrainingAWS [4]
Fine-tuningThe model is trained further on examples for your task, which updates its parametersGoogle ML course [3]

Google's course notes that prompt engineering does not add, remove or alter the model's parameters, while fine-tuning trains on task-specific examples and updates the model's parameters [3]. For most small businesses, prompts and your own documents are the practical starting point, because neither needs a training run [3][4]. The AI agent entry covers what happens when a model is also allowed to take actions.

Plain-English walk-throughs for owners are in the AI chatbot guide and the AI workshop.

Questions people ask

Is an LLM the same as ChatGPT?

No. An LLM is the underlying model that predicts text [1]. ChatGPT is a chat product built around a model like that, and Anthropic calls Claude a language model [2]. The model is the engine and the product is the car.

What is a token in an LLM?

A token is the unit of text the model reads and predicts. Google says it can be a word, a subword (part of a word) or even a single character, so a long word may be several tokens [1].

Can an LLM look up my latest prices?

Not by itself. It works from training data and the prompt. To use current prices, the system has to fetch them from your files or database and put them in the prompt, which is the idea behind retrieval-augmented generation [4].

See also

  • RAG RAG is a method where an AI looks up your own documents first, then writes its answer from what it found, not only from what it learned in training.
  • Prompt engineering Prompt engineering is the practice of writing clear instructions and examples for an AI model so it reliably produces the output you need.
  • Hallucination A hallucination is when an AI model states something false as if it were true, such as an invented fact, quote or source.
  • Token A token is the small piece of text, such as a word, part of a word or a punctuation mark, that an AI language model reads and writes.
  • Chatbot A chatbot is a program you talk to by text or voice, which answers questions or helps you finish a task.
  • Fine-tuning Fine-tuning is training an existing AI model further on your own example inputs and outputs, so it handles your task more consistently than the base model.

References

  1. Machine Learning Crash Course: LLMs, What's a large language model?, Google for Developers. Read 27/11/2026.A newer technology, large language models (LLMs) predict a token or sequence of tokens, sometimes many paragraphs worth of predicted tokens.
  2. Reduce hallucinations, Anthropic. Read 27/11/2026.Even the most advanced language models, such as Claude, can sometimes generate text that is factually incorrect or inconsistent with the given context.
  3. Machine Learning Crash Course: LLMs, Fine-tuning, distillation, and prompt engineering, Google for Developers. Read 27/11/2026.Prompt engineering enables an LLM's end users to customize the model's output.
  4. What is RAG (Retrieval-Augmented Generation)?, Amazon Web Services. Read 27/11/2026.Large Language Models (LLMs) are trained on vast volumes of data and use billions of parameters to generate original output