What Is a Large Language Model? Capabilities, Context and Limits
An LLM predicts plausible next text, not verified facts. Learn how tokens, context, retrieval, and policy layers determine when a chatbot's answer is trustworthy.
An LLM predicts plausible next text, not verified facts. Learn how tokens, context, retrieval, and policy layers determine when a chatbot's answer is trustworthy.
A large language model (LLM) generates text one piece at a time. Given the conversation so far, it predicts the most likely next piece, a token, which is a fragment of a word or a symbol. It repeats that step until the response is complete. That is the entire mechanism. Everything else people attribute to AI (knowing facts, judging intent, acting on the world) comes from the software wrapped around the model, not from the model itself.
This distinction explains most of the confusion about AI products. A chatbot that sounds knowledgeable is not necessarily knowledgeable. It is fluent. Fluency and accuracy are different properties, and the product you buy needs to bridge them.
TL;DR: An LLM is a statistical text generator, not a database of verified facts. It predicts the next token from patterns in its training data and the context you supply. On its own, it cannot verify claims, look things up, or perform actions. Useful AI systems add a retrieval layer that feeds it evidence and a policy layer that controls what the text may do. Judge a product by how it behaves when the source is missing or stale, not by how smoothly it answers happy-path questions.
A token is the unit an LLM works with. The text you type is split into tokens: whole words ("return"), parts of words ("ing"), punctuation, and other fragments. The model reads a sequence of tokens and assigns a probability to every possible token that could come next. Then it picks one, usually the most likely, sometimes a sampled alternative for variety, appends it, and repeats.
During training, the model's internal parameters (numerical weights) are adjusted so these predictions agree with real text. After training, those parameters encode statistical regularities of language: grammar, common knowledge, reasoning patterns, even tone. This is the "learned parameters" part, and it's where answers get their polish.
But calling the result knowledge is generous. The model stores compressed statistics, not verified propositions. It has never checked a fact or consulted a source. It reproduces patterns that look like facts. Many of those patterns happen to reflect real facts because the training data contained them. Many others don't.
There are two ways a fact enters an answer: either it was baked into the model's parameters during training, or it was handed to the model at query time. Retrieval is the second path.
Retrieval-augmented generation searches your knowledge base, selects relevant passages, and inserts them into the model's context window before it generates. The model then writes an answer informed by those passages. This is how support bots correctly cite your return policy or how research tools quote a paper.
| Fact source | Where it lives | Trust profile |
|---|---|---|
Trained-in | Model parameters | General, static, can be wrong or outdated |
Retrieved | Knowledge base, inserted into context | Current, verifiable, tied to your content |
If nothing is retrieved, the model improvises from its latent statistics. Ask a support bot about your return window while its context lacks the policy, and it will generate a plausible window anyway, statistically plausible retail language like "within 30 days." It isn't lying in any intentional sense; it's completing the pattern. The failure belongs to the system that sent the model into the conversation without evidence.
Inference is the term for using a trained model. The process is humble:
Every step conditions on everything that came before. That makes the context the single most important input. Good context means relevant, recent, well-organized tokens. Bad context means noise, outdated documents, or a flooded window.
Context is also finite. Anthropic's context engineering guidance describes an "attention budget": every additional token depletes focus, and as context grows, models become less precise at recalling earlier information, a phenomenon the researchers call context rot. Performance degrades gradually, not at a hard limit; but longer is not better. Smart systems curate aggressively, retrieving just what matters and dropping what doesn't.
Put the pieces together for a realistic exchange. A customer asks: "What's your return window?"
Now rerun the scenario with a broken retrieval step. The search returns nothing useful, but the model still generates. It produces "within 14 days" because that's a common retail pattern. The customer leaves with plausible, wrong information. Nothing about the model malfunctioned in the way a buyer would expect; the system's evidence pipeline failed silently.
This is why the useful question is never "which model?" but "what happens when the model has no source?" The answer separates a product from a demo.
A model that excels on a public benchmark can still fail at your task. The reasons are concrete:
Agents add power but also surface. Anthropic's agent guidance defines agents as LLMs autonomously using tools in a loop. That loop multiplies both usefulness and failure modes. The systems that work keep the loop narrow, the tools well-defined, and the decisions reversible.
Forget the hype about the model. You're buying three layers:
Security reviews reinforce this. OWASP's Top 10 for LLM applications focuses on systemic issues like prompt injection, sensitive data disclosure, insecure output handling, and excessive agency rather than the weights themselves. NIST's AI Risk Management Framework likewise treats risk as a property of the whole AI system, not the model card. The vulnerability story is a system story.
Skip the parameter count; it won't tell you how the model handles your content. Run these checks instead:
A vendor who passes all six has engineered a product. One who shows you a highlight reel has shown you a model. For more depth on the product side, see how AI agents are built, what RAG actually does, and how prompt engineering shapes behavior beyond the model.
Does an LLM actually know facts? No. It predicts text that looks like facts based on patterns from training. Unless a retrieval layer injects a source into the context, the model can't verify anything. Treat its statements as drafts to be confirmed against evidence.
Why does my chatbot give confident wrong answers? Fluency is separate from accuracy. When the context contains no relevant source, the model extrapolates from statistical patterns, producing plausible-sounding content. Fix it by adding retrieval, requiring citations, and routing unverifiable cases to humans.
What is context, and why does it matter? Context is everything the model sees before generating: system instructions, retrieved documents, conversation history. It's a finite resource. As it grows, precision drops; researchers describe this as context rot, so systems must curate what goes in.
What's the difference between a model and an agent? A model generates text. An agent is a model plus tools and a loop, able to search, call APIs, and act. That adds leverage and risk: errors compound across steps, so agent autonomy should match your tolerance for failure.
Do bigger models mean better results? Not necessarily. Parameter counts say little about performance on your specific task with your context. A small model with clean retrieval and strict policy often beats a large model fed garbage. Test behavior, not specs.
How do I stop a bot from hallucinating? Ground it in retrieved documents, require citations, add explicit refusal rules when no source matches, and route low-confidence answers to a human. Hallucination is a system property; control it at the system level.
An LLM is a remarkable text generator with no internal grasp of truth. Its worth in a product depends entirely on the plumbing around it: retrieval that brings evidence, policy that restrains action, and humans in the loop where consequences bite. Evaluate against failures, not demos, and you'll see quickly which tools ship a system and which ship a model with a friendly interface. If you're shopping for a support deployment, use the helpdesk comparison or start from the AI agent buying guide to weigh those layers against your workflow.