What is an LLM (large language model) in AI
An LLM is a large language model: an AI program trained on enormous amounts of text to understand what you write and produce a response. Models like these power ChatGPT, Claude, Gemini, and Copilot. When you ask one of these tools a question, the model reads it and writes the answer.
Albert López·Founder of DelegIA·Updated
- Also called
- Large language model, model
- Type
- Technology
- Related to
- AI agent, prompt, RAG, generative AI
- Reading time
- 7 minutes
What’s the meaning of LLM in AI
A large language model (LLM) is, by definition, an AI program that works with language. AI also includes systems that recognize images, predict sales, or detect fraud. But when someone says, "AI wrote my email," they almost always mean a language model.
A language model calculates which word is most likely to follow the words before it. Your phone's keyboard, for example, uses a small language model to suggest the next word. What does "large" mean in a large language model (LLM)? It describes the model's size. Google explains that these models have a very large number of parameters, the values adjusted during training. The term sometimes also describes how much text the model was trained on.
That training lets a model summarize a contract, respond to a customer in your company's tone, translate a catalog, or write code. To choose one for your business, test it on documents like yours.
How does a large language model work
During training, the model reads enormous amounts of text, learning patterns in language to predict what comes next in a sentence. When you use the model, it receives your question and calculates which pieces of text could come next. It chooses one, then repeats the process until the response is complete.
Those pieces are called tokens. A token can be a whole word, part of a word, or punctuation. OpenAI estimates that a token averages about four characters in English. Providers generally bill API usage based on the number of tokens the model reads and generates. Each model also has a limit on how many tokens it can consider at once, called its context window.
Most current large language models use the transformer architecture, introduced by Ashish Vaswani and other researchers at Google and collaborating institutions in 2017. Its attention mechanism helps a large language model interpret meaning by relating each piece of text to the rest. For example, in "I sat on the bank," the verb helps show that the sentence is about a riverbank, not money.
The model's training data has a cutoff date. Unless you provide more information, it won't know what happened after that date or what's in your company's software.
When we train teams, we often find that errors become more likely as conversations get longer and the model has more text to process with each reply. If a chat starts going in circles, ask for a summary of the work so far, then use that summary to start a new conversation.
How it writes the response
- 1Reads your questionBreaks it into pieces of text called tokens
- 2CalculatesWorks out which pieces could come next
- 3Chooses oneRepeats the process until the response is complete
Large language model examples and how to choose one
You can access closed models, such as OpenAI's GPT models, Anthropic's Claude, and Google's Gemini, through the developer's application or API. With open-weight models, developers publish the weights: the values learned during training. Anyone with the necessary hardware can run these models on their own servers if the license permits it. Examples include Meta's Llama and open-weight models from Mistral, Alibaba's Qwen, DeepSeek, and GLM. If you're looking for an open source large language model (LLM), check what that model's license allows.
| Family | Examples | Where they run |
|---|---|---|
| Closed | OpenAI's GPT models, Anthropic's Claude, Google's Gemini | Through the developer's application or API |
| Open-weight | Meta's Llama, Mistral, Alibaba's Qwen, DeepSeek, GLM | On your own servers, if the license permits it |
No single model is best at everything. At DelegIA, we use several LLMs at once and choose models for specific tasks: one for writing, another for programming, and another for reading long documents. Before deciding, we test several models on the same task with the same examples and compare accuracy, speed, and cost. For a simple task, such as checking whether a piece of text follows a set of rules, an inexpensive open-weight model often performs just as well as a more expensive one. We save the more expensive model for the harder work.
The cost of using an LLM depends on how many tokens each task processes, how often it runs each day, and which model handles each step.
What an LLM can do in a business
For office tasks that involve reading and writing, you can give an LLM a contract and a set of reference clauses, then ask it to flag the differences. A digital marketing team might use one to draft ad variations or adapt an article for each social platform. Programmers and IT teams can ask it to explain a function or write and review code. Customer service staff can use it to draft email replies.
You can get started quickly by opening ChatGPT or Claude in a browser tab and copying and pasting text. But each person has to explain the context from scratch, and the result doesn't automatically go to the software where it's needed. An API integration connects the model to your company's software, so you write the rules for each task once. Whether the model comes from OpenAI, Anthropic, or Google, the data and software you connect it to determine the result.
LLM vs. AI agent: what's the difference
An LLM on its own responds with text. To make it an AI agent, you give it a goal and tools such as email, a CRM, or a spreadsheet, along with permission to use them. The model decides what to do next, takes that step, checks the result, and continues. In an LLM agent for customer service, for example, the model interprets the request and a tool checks the order status.
For more on how agents work, see What is an AI agent.
What is a local LLM
A local LLM runs on your company's own computer or server, or in a private cloud dedicated to your business, instead of on OpenAI's, Anthropic's, or Google's servers. You can run open-weight models such as Llama, Mistral, Qwen, or DeepSeek this way, using software such as Ollama to install them.
Where your data goes depends on how you use the model.
In a chat application
The text each person enters stays in their account with the provider, under the terms of their plan.
Through an API
The provider also receives the text for each task. Your company decides what to send and connects the model to its own software.
With a local model
The text the model processes stays on infrastructure your company controls. To keep all data on that infrastructure, you also need to host the documents it retrieves, the tools it calls, and the logs it keeps there.
If you run an established business that handles contracts, records, or customer data, private AI can make sense. You get a model that runs for your business, is adapted to your work, and connects to your tools. That requires servers and maintenance, so decide task by task what should run locally and what can go to an external model.
See Private AI for business for setup details.
LLM hallucinations and other mistakes
An LLM generates text that's likely to follow what came before it, even if that text is false. When it lacks a fact, it can fill the gap with something plausible, such as a nonexistent legal provision or an invented price. This is called a hallucination. OpenAI attributes this partly to how models are evaluated: many tests award points for correct answers and none for admitting uncertainty. Guessing can therefore improve a model's score even when it also produces false answers.
To reduce these errors, give the model the information it needs for each task and ask it to identify the source of each fact. RAG, for example, searches your company's documents before the model answers. For tasks that matter, have a person review and approve the model's work before anything is sent, paid, or published.
To use a model with your company's data on your own servers, see Private AI for business for setup details or to request a free call.
Sources
- Google for Developers, Introduction to Large Language Models. Language models, tokens, and training. Accessed November 26, 2026.developers.google.com
- Google for Developers, LLMs: What's a large language model?. Model size, parameters, and attention. Accessed November 26, 2026.developers.google.com
- Ashish Vaswani et al., Attention Is All You Need, 2017. Original transformer paper. Accessed November 26, 2026.arxiv.org
- OpenAI, Understanding and counting tokens. Token estimates for English, context limits, and API usage. Accessed November 26, 2026.help.openai.com
- OpenAI, Why language models hallucinate, September 5, 2025. Hallucinations and evaluation incentives. Accessed November 26, 2026.openai.com
- Anthropic, Models overview. Model context windows and training cutoffs. Accessed November 26, 2026.platform.claude.com
- Ollama, Local FAQ. Running models locally and disabling cloud features. Accessed November 26, 2026.docs.ollama.com
- Meta, Llama 3.3 model card and license, Mistral, Models, Qwen, Qwen3-8B, DeepSeek, DeepSeek-R1, and Z.ai, GLM-4.5. Developer documentation for the open-weight examples; the license depends on the specific model. Accessed November 26, 2026.huggingface.co
- OpenAI, Models, and Google, Gemini models. Developer documentation for the hosted model examples. Accessed November 26, 2026.developers.openai.com

Albert López
Founder of DelegIA
He helps small and midsize businesses in Spain decide where AI makes sense, puts the agreed systems in place, and supports the teams using them. These glossary entries draw on what he learns from that work.
Last reviewed:
From the glossary
View the full glossary- TokenA piece of text an AI model reads or writes, also used to measure usage for billing. It can be a short word, part of a word, or punctuation.
- AI hallucinationsAI responses that sound confident and read well but contain false information, such as an invented fact, quote, or source.
- Fine-tuningFurther training of an existing model with your own examples to help it perform a specific task better.
- RAGA technique that lets AI search your company's documents before answering.
From the blog
View all articles
ChatGPT vs Gemini vs Copilot: which should your business choose?Which one fits the software your team already uses, what each costs, and how to test them in a week.
Claude vs ChatGPT: which should your team choose?Compare how each platform handles your team's work before changing everyone's subscriptions.
ChatGPT prompts for business and commands for daily workThe four things a good prompt needs to specify, plus prompts you can copy for office work.