An LLM (large language model) is an artificial intelligence program trained on large volumes of text to predict, at each step, the most likely continuation of a sequence of words, which is why it can answer questions, draft, summarize, translate, classify and write code. In practice, it is the engine behind tools such as ChatGPT, Claude, Gemini and Copilot: anyone who uses these tools at work is talking to an LLM, even if the screen shows another name. This guide explains where these models come from, how they produce an answer, how they are trained, what types exist, where they help at work, where they fail and how to evaluate them before adopting one. The data was checked on November 23, 2026.
Definition of a large language model
A large language model is a statistical language model built with a very large neural network and trained on more text than any person could read. Each part of the name describes a characteristic.
- Language model. A language model calculates the probability of a sequence of words. Given "The contract will be renewed for another twelve", it assigns a high probability to "months" and a low one to "bananas". Phone keyboards already used small language models to suggest the next word.
- Large. Size refers to two things: the number of parameters, which are the numerical values adjusted during training, and the volume of text used to adjust them. The best-known models have a very large number of parameters, and the companies that develop them generally do not disclose the exact number.
- General purpose. The same LLM performs different tasks without being reprogrammed for each one. The task is described in plain language, in a request called an instruction or prompt.
The LLM sits inside a sequence of concepts that fit inside one another. Artificial intelligence is the broad field. Machine learning is the part of that field in which a program learns patterns from examples instead of following rules written by a person. Deep learning uses artificial neural networks with many layers. Generative AI produces new content: text, images, audio, video or code. The LLM is the type of generative AI specialized in text, and many current LLMs also read images and documents.

An LLM does not look up a database of facts and does not "know" in the human sense. During training, it learned very fine regularities about how words, ideas and text formats tend to appear together. That ability is enough for tasks that seem to require understanding, such as explaining a clause or comparing two proposals, and it is also the source of these models' most characteristic errors: an answer can be well written, coherent and false at the same time.
Origin of language models
Language models have existed for decades. What changed in recent years was the combination of a new architecture, much more text and much more computing power.
The first language models were statistical and counted how often a word appeared after two or three others. They worked for short suggestions but did not keep track of the subject of a long sentence. In the 2010s, recurrent neural networks began to read text word by word, carrying forward a summary of what they had already read. They improved machine translation, but they processed text in sequence, which made training slow, and they lost information in long texts.
In 2017, Google researchers published the paper "Attention Is All You Need", which introduced the transformer architecture. The transformer looks at all the words in a passage at once and calculates how much each word should take each of the others into account. This mechanism, called attention, makes it possible to process text in parallel and to make much better use of graphics card hardware. Almost all current LLMs derive from this architecture.
From then on, things moved quickly. In 2018, Google released BERT, designed to understand text. OpenAI released GPT-2 in 2019 and GPT-3 in 2020, showing that a larger model trained on more text could perform tasks it had not been prepared for. In November 2022, ChatGPT put an LLM into a conversation interface open to the public. In the following years came models that read images, reasoning models, which produce intermediate steps before the answer, and agents, which use the LLM to plan and carry out actions in other systems.

How an LLM works, from request to answer
An LLM generates its answer one piece at a time: at each step, it calculates the probability of each possible continuation, picks one, adds it to the text and repeats until it finishes. Understanding this cycle explains most of the behavior people notice at work.
Tokens and tokenization
The model does not read letters or whole words. It reads tokens, which are pieces of text defined by a fixed vocabulary learned before training. A common word is usually one token; a rare or long word is split into several. "Renegotiation" might become "Ren", "egot" and "iation", for example. This process is called tokenization. Because vocabularies were built mostly from English text, the same content in other languages, such as Portuguese, tends to take up more tokens, which affects cost and the amount of text the model accepts.
The token is also the billing unit of APIs, the interfaces through which a company system uses a vendor's model: you pay per million input tokens and per million output tokens, at different rates.
Numerical representation and attention
Each token is converted into a list of numbers called a vector representation or embedding. Tokens with similar meanings end up with similar lists. Next, the text passes through dozens of transformer layers. In each layer, the attention mechanism adjusts the representation of each token according to the other tokens in the passage. This is how "bank" takes on one meaning in a sentence about credit and another in a sentence about a river.
Predicting the next token
In the last layer, the model produces a list of probabilities for every token in the vocabulary. A hypothetical example: given "Dear customer, we inform you that the delivery date", the possible continuations might receive probabilities like these.
| Next token | Probability (hypothetical) |
|---|---|
| was | 41% |
| will | 27% |
| for | 12% |
| is | 9% |
| other options | 11% |
The model picks a token, adds it to the text and recalculates everything for the next step. This process of generating text with an already trained model is called inference. A one-page answer takes hundreds of steps, which is why the answer appears gradually on the screen.
Temperature and variation
The choice does not always have to be the most likely token. Generation temperature controls how far the model strays from the highest-probability options. A low temperature produces more predictable, repeatable answers, useful for extracting data from a document. A higher temperature produces variation, useful for generating alternative wording. That is why the same request, made twice, can receive different answers, and also why a single test is not enough to evaluate a model.
Context window
The model only considers the text that fits in its context window, measured in tokens. The window holds the system instructions, the conversation so far, the attached documents and the answer being built. The size of the window varies by model, product and plan, and it is stated in the vendor's documentation. Whatever falls outside the window does not exist for the model at that moment. The model also does not learn from the conversation: what looks like memory across conversations is a product feature that stores notes and reinserts them into the window.

The weight of the instruction
Because the model predicts the most likely continuation of what it received, the way a request is written changes the answer. A request that says who will read the text, what the goal is, what format to use, which sources to consider and what to do when information is missing tends to produce a more useful answer than a one-line request. The practice of writing these requests is called prompt engineering. It does not change what the model knows; it changes what goes into the context window and, therefore, which continuations become more likely. Examples of the expected answer, placed in the request itself, usually help more than adjectives such as "detailed" or "professional".
A complete example
A purchasing analyst pastes the text of a supplier's proposal into an assistant and asks: "List the term, the total amount and the price adjustment conditions." The product combines the assistant vendor's system instruction, the request and the text of the proposal, and sends everything to the model as a sequence of tokens. The model processes the sequence and starts generating: "Term:", then "12", then "months", and so on, always looking at the whole proposal through attention. If the proposal does not mention price adjustments, the model may write "there is no price adjustment clause", which is correct, or it may fill in a condition that often appears in similar proposals, which is a hallucination. Nothing in the mechanism distinguishes the two outputs; the person who checks the answer against the document does.
Training an LLM
Training a language model happens in stages: first the model learns language from an enormous volume of text, then it learns to follow instructions and to respond in a useful and safe way.
Pre-training
In pre-training, the model receives passages of text and tries to predict the next token. When it gets it wrong, a mathematical procedure slightly adjusts the parameters in the direction that would reduce the error. This is repeated an enormous number of times over web pages, books, scientific papers, code and other material. No one needs to label the right answers, because the right answer is the text that comes next; that is why this stage is called self-supervised. The result is a foundation model: it completes text very well, but it does not yet converse or follow requests reliably. Faced with a question, it may answer with another question, because lists of questions also appear in the training texts.
Pre-training is the most expensive stage. It requires a large number of graphics processors working for long periods, so only a few organizations train large models from scratch. According to Stanford University's AI Index 2026, industry produced more than 90% of the frontier models considered notable in 2025. The same report estimates the emissions from training Grok 4 at 72,816 tons of CO2 equivalent.
Supervised fine-tuning and instruction tuning
In the next stage, the model is trained on examples of requests and answers written or selected by people: "summarize this text" followed by a good summary, "answer in bullet points" followed by an answer in bullet points. This fine-tuning teaches the conversation format and how to follow instructions. A company can later use the same technique to specialize a model in a task, such as sorting support tickets into a fixed set of categories.
Reinforcement learning from human feedback
Next, people compare the model's answers to the same request and indicate which one is better. These preferences train a second model that scores answers, and the LLM is adjusted to produce answers with higher scores. This stage, called reinforcement learning from human feedback, is the main tool of alignment: it makes answers more useful, clearer and less likely to contain dangerous content. It also explains a well-known trait of assistants: the tendency to agree with the user and to answer confidently even when they should say they do not know.
Training for reasoning
Reasoning models receive an additional stage in which they are rewarded for reaching verifiable answers, such as the solution to a math problem or code that passes its tests. These models generate intermediate steps before the final answer. They tend to do better on multi-step problems, use more tokens and take longer to respond.

Model versions and updates
A trained model does not change on its own. When the vendor improves the model, it releases a new version, with another name or number, and eventually retires the old ones. For people using the chat app, the switch is usually automatic and silent. For people who built an application on top of the API, the switch requires testing again: a new version may be better on average and worse precisely at the company's task, change the format of the answers or use more tokens. That is why applications usually pin the model version and record the date of each change.
Training has a cutoff date: the model does not know facts that came after the texts it was trained on. To deal with recent or internal information, the product has to give that information to the model at the time of the request, through web search, attachments or a lookup in company documents.
Components of an LLM and the system around it
An LLM is a file of numbers plus a program that knows how to use them, and what people call "AI" at work almost always includes several other pieces around the model.
The components of the model itself are these:
- Weights. The model weights are the values of the parameters after training. They are what a vendor protects in a proprietary model and what is available for download in an open-weight model.
- Architecture. The model architecture is the design of the network: how many layers, of what size and how they connect. It is almost always a variation of the transformer.
- Tokenizer. The program that converts text into tokens and tokens into text, using the model's fixed vocabulary.
- Context window. The limit of tokens the model processes at once.
Around the model there are two other layers. The product is the tool the person uses: the chat app, with history, attachments, web search, memory, privacy controls and subscription plans. The product also sends the model a system message with instructions the user does not see. The application is what the company builds on top of the model: an assistant that answers from internal documents, an automation that reads invoices, an agent that opens tickets. The application connects the model to the company's systems, sets permissions and records what was done.

This separation helps ask the right questions. If the model gets dates wrong, that is a characteristic of the model. If conversation history is used to train future versions, that is a condition of the product and the plan. If an internal assistant shows an intern a board document, that is a permissions failure in the application. Each problem has a different owner and a different fix.
Types of LLM
LLMs differ in access to the weights, in size, in the types of content they read and generate and in how they process a request, and each difference changes cost, control and quality.
Proprietary and open-weight
A proprietary model can only be used through the vendor's service, in the app or through the API. That is the case for the models behind ChatGPT, Claude and Gemini. An open-weight model has its weights published for download and can run on the company's own servers or on a cloud provider of its choice. Llama, Mistral, Qwen and DeepSeek have open-weight versions. Open weights do not mean unrestricted use: each model has its own license, with conditions that need to be checked, as the article on AI model licenses for commercial use shows. The comparison between the two paths is in the article on open or proprietary AI models.
Large and small
A small language model has fewer parameters, costs less per request, responds faster and can run on a modest server or even a laptop. It usually does well on narrow tasks, such as classifying texts or extracting fields, and worse on open-ended tasks that require broad knowledge. Quantization, which stores the weights with less numerical precision, reduces the memory needed at some loss of quality. The article on running a local LLM at your company explains how to estimate the memory a model requires.
Multimodal
A multimodal model reads, and sometimes generates, more than one type of content: text, images, audio, video. In practice, it lets you send a photo of a document, a spreadsheet or a chart and ask for an analysis. Reading images still produces more errors than reading text, especially with dense tables and handwriting.
Reasoning
A reasoning model generates intermediate steps before answering. It is worth the cost on problems that require several chained steps, such as checking a calculation, comparing clauses or planning a sequence of tasks. On simple requests, it spends more time and tokens with no visible gain.
Mixture of experts
In a mixture of experts, the model has several sub-networks and uses only some of them for each token. As a result, a model with many parameters in total processes each request with a fraction of them, which reduces the cost of running it. For users, the difference shows up in price and speed, not in how to write requests.
| Type | Main difference | When it usually makes sense | Caution |
|---|---|---|---|
| Proprietary | Used only through the vendor's service | Varied tasks, no team to operate servers | Data use conditions and vendor dependence |
| Open-weight | Weights available for download | Data that cannot leave the company, high and steady volume | License, operation and updates are the company's responsibility |
| Small | Fewer parameters | Narrow, repetitive tasks | Lower quality on open-ended tasks |
| Multimodal | Reads images, audio or video | Scanned documents, photos, charts | Errors in tables and hard-to-read text |
| Reasoning | Generates steps before the answer | Multi-step problems | More time and more cost per request |
| Mixture of experts | Uses part of the sub-networks per token | High-volume use | Needs more memory to hold the whole model |

The types combine. The same model can be proprietary, multimodal and a reasoning model; another can be open-weight, small and use a mixture of experts. The decision between using a vendor's service or running the model on your own servers is covered in the article on self-hosting an AI model or using an API.
LLM applications at work
An LLM is useful for tasks that involve reading, writing, transforming or organizing text, and the gain depends on someone being able to check the result. Applications reach the company through four paths.
- Chat assistant. A person uses ChatGPT, Claude, Gemini or Copilot to draft, summarize, revise, translate or analyze. It is the most common entry point and depends on the skill of the person asking.
- Feature inside a system the company already uses. The office suite, the support system or the CRM starts offering AI features based on an LLM. The company turns them on, configures them and trains people.
- Lookup in company documents. A retrieval-augmented generation system, known as RAG, finds passages in internal documents and gives them to the model along with the question, so that the answer is based on them and cites the source. The article on RAG systems at your company details the parts of such a system.
- Automations and agents. The LLM reads a document, decides the next step and triggers other systems. An AI agent plans and carries out a sequence of actions with some degree of autonomy, so it requires access limits and human approval points.

Some hypothetical examples, by area, show the kind of task where an LLM usually helps:
| Area | Task | Who checks |
|---|---|---|
| Legal | Compare a draft with the standard template and list the differences | Lawyer responsible for the contract |
| Customer support | Suggest a reply to a ticket based on the knowledge base | Agent, before sending |
| Finance | Extract data from invoices and proposals into a spreadsheet | Analyst, by sampling |
| People | Draft job descriptions from an outline | Hiring manager |
| Operations | Summarize incident reports and group them by cause | Area coordinator |
| Sales | Prepare an account summary before a meeting | Account owner |
In all the examples, the model produces a draft and a person decides. Tasks where an error only shows up after it causes harm, or where no one can say what the right answer would look like, are poor candidates, even when the model seems up to it. The guide on artificial intelligence for companies shows how to choose the first use cases and run a pilot.
Limits and risks of LLMs
The limits of an LLM come from the way it works, and the risks for the company come from how the model is contracted, connected and used. Knowing both groups lets you decide where the model goes and with what controls.
Limits of the model
- Hallucination. The model can produce false statements as fluently as true ones, such as a law that does not exist, a figure that is not in the document or an invented reference. AI hallucination decreases with better models and with documents provided in the request, but it does not disappear. The article on AI hallucination shows which parts of an answer to check for errors.
- Uneven performance. The AI Index 2026 reports that current models can win a gold medal at the International Mathematical Olympiad yet cannot reliably read the time on a clock. The report also points to difficulty with multi-step planning and financial analysis. Getting a hard task right does not guarantee getting a neighboring, simpler task right.
- Cutoff date and missing context. The model does not know facts after its training or the reality of the company, unless that information is in the context window.
- Variation. The same request can produce different answers, and a change of model version can alter answers that used to be correct.
- Bias. The model reproduces patterns from its training texts, including stereotypes. This matters in tasks that affect people, such as screening résumés.
Risks for the company
- Data. Customer information, contracts or personal data sent to a product without an appropriate contract may be stored or used for training, depending on the plan. Personal accounts used for work are the most common source of this problem.
- Prompt injection. A document, email or web page can contain hidden instructions that the model follows as if they came from the user. Prompt injection is the main security risk in applications that read external content and have access to other systems.
- Cost. The price per token looks small, but automations with long documents and reasoning models multiply consumption. Without measurement, the bill grows with no relation to results.
- Vendor dependence. Price, version and terms of use change at the vendor's discretion. Applications tied to a single model suffer with every change.
- License. Open-weight models have licenses with restrictions on use, number of users or purpose.
- Transparency. The companies that develop models disclose less and less about training data and risks. According to the AI Index 2026, the average score on the Foundation Model Transparency Index fell from 58 to 40 points, and the number of documented AI incidents reached 362 in 2025, up from 233 in 2024.

| Indicator (AI Index 2026) | Previous value | Latest value |
|---|---|---|
| Documented AI incidents | 233 (2024) | 362 (2025) |
| Average score on the Foundation Model Transparency Index | 58 points | 40 points |
The controls that address these risks are well known: a list of authorized tools contracted under business plans, a rule on what information can go into each tool, human review defined by type of task, minimum permissions for applications and agents, logging of use and cost and a person responsible for tracking vendor changes.
The current situation in numbers
LLM use has grown fast worldwide and more slowly among Brazilian companies, with a large gap between small and large companies.
In Brazil, the TIC Empresas 2025 survey by Cetic.br shows that 17% of companies with 10 or more employees used some type of AI in 2025, up from 13% in 2024. The survey interviewed 4,174 companies by phone between February 2025 and January 2026. Use depends heavily on company size, according to the survey's launch presentation:
| Size (employees) | 2024 | 2025 |
|---|---|---|
| Small (10 to 49) | 10% | 15% |
| Medium (50 to 249) | 29% | 32% |
| Large (250 or more) | 38% | 50% |
| Total | 13% | 17% |

Among companies that use AI, the text-related types grew the most. Natural language generation, which produces texts, automated replies and communications and is the typical function of an LLM, went from 20% to 30%. Text mining and written language analysis went from 33% to 38%. The way companies acquire AI also says something: 80% of the companies that used AI bought ready-made software or systems, 54% hired outside vendors to develop or modify solutions (60% among large companies) and 26% developed in-house (37% among large companies).
Sector matters too. In the same survey, AI use in 2025 reached 49% among information and communication companies, close to three times the 17% average.
| Type of AI, among companies that use AI | 2024 | 2025 |
|---|---|---|
| Workflow process automation | 63% | 68% |
| Text mining and written language analysis | 33% | 38% |
| Natural language generation | 20% | 30% |
Worldwide, the AI Index 2026 reports AI adoption in 88% of the organizations surveyed and shows that generative AI reached 53% of the population in three years, faster than the personal computer and the internet. On the SWE-bench Verified programming test, the best models' performance went from 60% to close to 100% in one year. On real tasks carried out by agents, measured by Terminal-Bench, the success rate went from 20% to 77.3%. Global corporate investment in AI reached US$581.7 billion in 2025, up 130% from the previous year.
The global and Brazilian adoption figures are not comparable with each other: they measure different populations, questions and periods. Taken together, they show that the technology is already available to any company, and that the difference between organizations lies less in access to the model and more in the ability to put it to work on real tasks with control.
Criteria for evaluating an LLM at your company
Evaluating an LLM for a company means testing the model on the real task, with the company's own examples, rather than choosing by the general ranking. Public rankings, called model benchmarks, measure generic tasks and change with every release.
- Describe the task. What goes in, what should come out, in what format and who checks it.
- Build a test set. Gather 20 to 50 real cases, with the expected answer written by someone who knows the task, including hard cases and cases where the right answer is "there is not enough information".
- Test more than one model and repeat. Run each case more than once, because the answer varies.
- Measure quality, time and cost. Count correct answers, serious errors and corrections needed. Estimate the cost per task from the observed token consumption.
- Check data and contract terms. Where the data is stored, whether it is used for training, how long it is kept and what changes with each plan.
- Define human review. Who checks, what and in what share of cases.
- Repeat the evaluation. With every change of model version or change in the task, run the same test set.

A hypothetical example shows the criteria at work. An accounting firm wants to use an LLM to extract ten fields from service contracts. The coordinator sets aside 40 contracts that have already been checked, writes down the correct values for each field and runs the contracts three times through two models. The first model gets more fields right but invents an expiration date in four contracts that had no such clause. The second gets slightly fewer right and leaves the field blank when the information does not exist. The firm chooses the second, because a blank field is noticed during review and an invented date is not. The decision records the test set, the model versions and the review rule: an analyst checks every contract in the first month and one in five after that.
The number of cases is a practical reference from this guide, not a statistical rule. Tasks with greater consequences call for larger test sets and more frequent review.
Related terms
The terms below come up often in conversations about LLMs and have their own glossary entries.
| Term | Short definition |
|---|---|
| Token | Piece of text the model reads and generates; also the billing unit |
| Context window | Maximum number of tokens the model considers at once |
| Transformer architecture | Neural network design with an attention mechanism, the basis of current LLMs |
| Inference | Use of the trained model to generate an answer |
| Fine-tuning | Additional training of a finished model with examples of a task |
| Foundation model | Pre-trained model that serves as a starting point for other uses |
| Prompt engineering | Practice of writing requests that produce better answers |
| Retrieval-augmented generation | Search for passages in documents that are given to the model with the question |
| AI agent | System that uses an LLM to plan and carry out actions in other systems |
| AI hallucination | False or unsupported answer presented as true |

The LLM in your organization
In most companies, the LLM is already there: in the accounts people opened on their own, in the AI features that arrived with the systems the company uses and in the experiments of some curious team. What is usually missing is deciding which tasks the model takes on, with which contracted tool, under which data rule and with whom checking the result. If your organization is at that point, we can start with one area's tasks, see where an LLM solves a real problem and what it requires of each team. Schedule a conversation.
Sources
- Uso de Inteligência Artificial por empresas brasileiras avança e atinge 17%, aponta pesquisa do Cetic.br Cetic.br/NIC.br
TIC Empresas 2025 (in Portuguese): companies with 10 or more employees, 4,174 phone interviews between February 2025 and January 2026. Source of total AI use and use by type.
- TIC Empresas 2025: apresentação de lançamento Cetic.br/NIC.br
Launch presentation (in Portuguese). Indicator H9 by size and sector and the table on how companies acquire AI. The 60% figure for outside vendors refers to large companies; the total is 54%.
- The 2026 AI Index Report Stanford HAI
Top takeaways: origin of frontier models, uneven performance, SWE-bench Verified, Terminal-Bench, organizational adoption, investment and incidents.
- Inside the AI Index: 12 Takeaways from the 2026 Report Stanford HAI
Population adoption of generative AI, developer transparency, training emissions and model limits.
- Attention Is All You Need arXiv (Vaswani et al.)
Paper that introduced the transformer architecture.
A conversation about your organization.
Before recommending any tool, we talk with your teams and map how the work really happens.
Arrange a conversation



