What is a large language model (LLM)?
A large language model (LLM) is an AI system trained on a very large amount of text. It reads and writes language by predicting which words come next.
Key takeaways
- An LLM is the engine inside chat tools such as ChatGPT, Claude and Gemini.
- It works by prediction. It has no database of facts that it looks up.
- Better instructions and better context give better output from the same model.
How it works
During training, the model reads text and tries to predict the next piece of each sentence. It does this billions of times and adjusts itself after each try. The result is a system that can continue any text in a sensible way, which is enough to answer questions, write drafts and follow instructions.
Example
You type a question into Claude. The model reads your full message, then writes the answer one token at a time, and each token is its best prediction for what comes next.
Why it matters
Almost every AI tool a professional uses today has an LLM inside. When you know it predicts text, its strengths and its errors both make sense.
Common mistake
People expect an LLM to behave like a search engine. A search engine finds pages. An LLM writes a likely answer, which can be wrong unless you give it the source material.
Related terms
See all terms in the AI Encyclopedia, the numbers on the AI statistics pages, or build a prompt with the prompt builder.