All terms

Glossary

LLMs (Large Language models)

Large language models (LLMs) are neural networks trained on vast text to predict the next token, which lets them write, summarise, translate and reason.

Lyzr Team7 min read

Got a use case in mind?

8 weeks from use case to agents running in production.

Platform, people and FDEs, all in. Bring your environment. We'll co-build and stay until it's live.

Talk to Us

LLMs write, summarise, translate and answer questions, yet underneath they do one thing: predict the next piece of text. Understanding that one job explains both their strengths and their failures.

In one line

Large language models (LLMs) are neural networks trained on very large amounts of text to predict the next token, which lets them generate and transform language.

What are large language models?

An LLM is a deep learning model, almost always a transformer, trained on text from books, websites, code and other sources. During training it reads a passage, guesses the next token, and is corrected when it is wrong. After many rounds it has absorbed grammar, facts, styles and patterns of reasoning, all stored as numbers in its parameters.

"Large" refers to the number of parameters and the amount of training data. Both are in the billions or more for modern models.

How does an LLM produce an answer?

Text is first split into tokens, which are chunks of words. The transformer uses a mechanism called attention to weigh how each token relates to the others in the input. The model then outputs a probability for every possible next token, picks one, adds it to the text and repeats until the answer is complete.

The input the model can consider at once is its context window. Anything outside that window, including facts the model was never trained on, is invisible to it unless you supply them.

Five steps: prompt text, tokens, transformer, next token, reply.

How are LLMs trained and adapted?

LLMs are trained in stages: pretraining on a huge text collection, then fine-tuning and preference tuning to shape behaviour, then adapted at runtime through prompts and retrieval.

  • Pretraining teaches general language ability from a huge text collection.
  • Fine-tuning adapts the model on a smaller, targeted dataset. See fine-tuning.
  • Preference tuning, including reinforcement learning from human feedback, steers the model toward answers people rate as helpful and safe.
  • Prompting and retrieval adapt behaviour at runtime without changing the weights, for example by adding documents with RAG.

What LLMs do well, and where they fail

LLMs are strong at drafting, summarising, translating, classifying, extracting fields from messy text and writing code. They fail in predictable ways:

  • Hallucination. The model produces fluent text that is not true, because it predicts plausible words, not verified facts.
  • Stale knowledge. What it learned stops at its training cutoff.
  • Limited context. Long inputs can exceed the window or get less attention.
  • Inconsistency. The same prompt can give different answers.

The usual remedies are to ground answers in sources, give the model tools, and check outputs before they reach a user.

LLM or AI agent?

An LLM takes text in and returns text out. An AI agent wraps an LLM in a loop with tools, memory and goals, so it can look things up, call systems and take actions. The model is the reasoning engine, the agent is the whole system around it.

That difference is why agents need controls an LLM alone does not, such as permissions and approval steps.

Two cards compared: an LLM turns text into text; an agent adds tools, memory and a loop.

Spot the failure

Quick test

A team asks an LLM, with no other input, for the refund policy that changed last month. It answers confidently with the old policy. What is the problem and the fix?

Show the answer

The model's knowledge stops at its training cutoff and it does not know the company's documents. Supply the current policy at query time through retrieval, and have the answer cite it.

Frequently asked questions

What does LLM stand for?

Large language model: a neural network trained on a large body of text to predict and generate language.

Do LLMs understand language?

They model statistical patterns in text very well, which produces behaviour that often looks like understanding. Whether that equals human understanding is debated, and the practical point is that they can be fluent and wrong.

What is a token?

A chunk of text, often part of a word, that the model reads and writes. Costs, speed and context limits are all measured in tokens.

Why do LLMs hallucinate?

They are trained to produce likely text, not to check facts. When the training data does not settle a question, the model still produces a confident-sounding answer.

Can I use an LLM without sending data to a third party?

Yes. Open-weight models can be run in your own cloud or on-premises environment, which keeps prompts and documents inside your boundary.

Got a use case in mind?

8 weeks from use case to agents running in production.

Platform, people and FDEs, all in. Bring your environment. We'll co-build and stay until it's live.

Talk to Us

Continue reading

You might also like

Build with Lyzr

Try it in Agent Studio

From framework-agnostic design to production-grade agents, deployed in under 24 hours.