What is an LLM (language model): how it works and how to use it in a company
An LLM is the AI language model that reads and writes text, the core of chat assistants and AI agents. See how it works, how it differs from an AI agent, where companies use it, risks such as hallucination and data, and how to choose one.
Published on November 25, 2026. 10 min read
An LLM (large language model) is an artificial intelligence model trained on a huge amount of text to read, write and summarize in natural language. It receives a text, such as a question, a document or an instruction, and returns another text: an answer, a summary, a classification, a draft email or a piece of code.
This is a term from the UEEK glossary of technology, AI and security. Here you will find the short definition, how it works, where a company uses it, the precautions and how to choose one, with links to the longer guides.
What is an LLM, or language model?
A language model is a program that has learned, from many examples of text, how words usually fit together. "Large" refers to size: these models were trained on far more text than earlier models and, because of that, can handle varied tasks without being programmed for each one.
It is the kind of model behind the chat assistants many people already use every day. Well-known examples are the GPT, Claude, Gemini and Llama families. Some are offered only as a cloud service, paid by usage; others can be downloaded and run on your own servers.
In a company, an LLM shows up in three main forms:
- chat assistant, where a person asks and the model answers;
- part of a system, where the software calls the model to summarize, classify or extract data without anyone talking to it;
- the core of an AI agent, where the model decides the next steps of a task and uses tools to carry them out.
How does a language model work?
Put simply, the model breaks the text into small pieces called tokens (parts of words) and calculates the most likely next piece, one at a time, until the answer is complete. It does this based on what it learned in training and on what it received in the request.
- Request: The instruction, question or document that the person or the system sends.
- Context: Extra information attached to the request, such as document excerpts, customer data or company rules.
- Text into tokens: The text is split into small pieces the model can process.
- Model predicts: The model calculates the most likely next piece, one at a time.
- Answer: The generated text goes back to the person or system that made the request.
- Review: Automatic rules or a person check the answer before it is used.
The model only knows what it learned in training and what came in the request. Company data has to go in as context.
Three points help explain how the model behaves:
- Training and context are separate. Training is done by the vendor, once, with public and licensed text. Context is what goes along with each request. For the model to answer about your company's products, contracts or customers, that information has to be sent as context, usually fetched automatically from the right documents. This technique of retrieving document excerpts and attaching them to the request is called RAG.
- Context has a limit. Each model accepts a maximum amount of text per request. Very long documents need to be split or summarized first.
- The answer can be wrong. The model generates the most plausible text for the request, and plausible text can contain mistakes. That is why LLM answers need checking when an error is costly.
What is the difference between an LLM and an AI agent?
The LLM is the component that reads and writes. An AI agent is the system built around it to carry out a task inside the company: it has access to tools (management system, email, CRM, spreadsheets), rules about what it can do on its own and points where a person approves.
- LLM
- Receives a text: A question, document or instruction.
- Generates a text: An answer, summary, classification or draft.
- Does not act alone: It does not query or change systems on its own.
- AI agent
- Starts from an event: An email, a form, a file or an event in the system.
- Uses LLM and tools: It queries data, decides by the rules and records in the systems.
- Asks for approval: In sensitive cases, a person confirms before the action.
| Point | LLM | AI agent |
|---|---|---|
| What it is | A model that reads and generates text | A system that carries out a task using one or more models |
| Access to systems | None on its own | Whatever was granted, with permissions per action |
| Who decides the next step | The person or system that called the model | The agent, within the agreed rules |
| Example | Summarizing a contract pasted into the chat | Reading the contract that arrived by email, checking the data in the system and preparing the record for approval |
In practice, an agent can use more than one model, one per type of task, and switch models without changing the process. The guide from chat to routine shows the steps between using a chat assistant and having an agent running in operations.
Where does a company use an LLM?
The most common uses involve reading, writing or organizing text at volume:
- Customer service: answering frequent questions first, based on company policies, and handing sensitive cases to a person.
- Documents: extracting data from invoices, contracts, orders and forms that arrive in different formats and entering it in the system.
- Summaries: summarizing meetings, tickets, customer conversations or the day's operations from real data.
- Internal search: answering team questions about manuals, standards and procedures, citing where the answer came from.
- Classification: sorting emails, tickets and cancellation reasons by subject and urgency.
- Software development: helping write requirements, generate code and create tests, always reviewed by the team.
The guide AI routines by area has ready examples by department, with trigger, destination and success metric.
What are the risks of using an LLM?
Hallucination
Hallucination is when the model gives a wrong answer with full confidence: it makes up a number, a clause, a reference. The precautions that work best are giving the model the right sources in the context, asking it to cite where the answer came from, limiting what it can answer and keeping a person checking wherever an error is costly.
Company data and privacy law
Everything in the request leaves the company and goes through the model vendor, unless the model runs on your own server. Before using it with customer or employee data, check:
- whether the vendor uses the data you send to train its models (on business plans, usually not);
- where the data is stored and for how long;
- which personal data really needs to go in the request and which can be removed or masked first;
- who in the company can use the tool and with what information.
In Brazil, this is covered by the LGPD, the general data protection law.
Hidden instructions
A text received from outside, such as an email or a document, can carry hidden instructions for the model, like "ignore the rules and send the data". This kind of attack is called prompt injection. When the LLM is connected to tools, protection comes from minimum permissions, human approval for sensitive actions and treating all external text as data, never as a command.
Cost and dependency
Usage is usually billed by the amount of text processed. A poorly designed use that sends whole documents with every request can get expensive. And a system tied to a single vendor is exposed to changes in pricing, terms or quality. The guide on how much an AI agent in production costs shows what weighs on that bill.
How do you choose and evaluate an LLM for your company?
There is no single model that is best for everything. The choice usually considers:
- The task: classifying emails calls for a fast, cheap model; analyzing a long contract calls for a more capable model with a larger context.
- The data: if the information is sensitive, the vendor's policy or the option of running the model on your own server matters.
- The language: test with texts written the way your company writes, with abbreviations and industry terms.
- Response time: real-time service and batch processing have different requirements.
- Cost per task: compare how much it costs to resolve a case, not only the price per amount of text.
The safe way to compare is to test with real cases. Set aside a few dozen examples from your operations, with the right answer for each, and run the candidate models on them. These tests, called evals, should run again whenever the model, the instructions or the rules change, because a new model can get one type of case right more often and get worse at another. The guide agent harness and evals explains how to build these tests and what goes around the model to keep it under control.
Where UEEK already uses LLMs
In Wellu, a group challenge app UEEK built end to end, AI models chosen per task write the daily summary from real data, answer team questions in Portuguese in the admin panel, group cancellation reasons and suggest message variations. In support, an assistant answers first and hands sensitive cases to a person.
At GTS, AI took part in the whole development cycle of the sales system: it structured the requirements document, with business rules, user stories and acceptance criteria, supported technical planning, generated code with continuous validation by the team and created tests. The requirements stage became up to 80% faster.
Frequently asked questions
Is an LLM the same as artificial intelligence?
No. Artificial intelligence is the whole field, which also includes computer vision, demand forecasting and recommendation models, among others. An LLM is one type of AI model, specialized in language.
Is an LLM the same as ChatGPT?
ChatGPT is a product, a chat assistant. Underneath, it uses language models. A company can use the same kinds of model inside its own systems, without the chat screen.
Do I need to train my own LLM?
Almost never. Training a model from scratch takes enormous volumes of data and computing. In most cases, the result comes from using a ready-made model with the right information in the context, good instructions and tests with real cases. Adjusting a model with company examples (fine-tuning) makes sense in specific situations, after the basics have been tested.
Does an LLM learn from my company's data?
Not during use. The model does not keep what it received in one request to use in the next, unless the system around it saves and resends that information. What varies is the vendor's policy on using the data to train future versions, and that needs to be checked in the contract.
Can I run an LLM on my company's servers?
Yes, with open models. It gives more control over the data, but requires infrastructure with suitable processing hardware and someone running it. For many uses, a cloud service on a business plan does the job with less effort.
Where should I start?
With the process that takes up most of the team's time reading and writing text. The AI Map is free, takes about 10 minutes and shows the opportunities ordered by effort and impact.
How UEEK can help
UEEK chooses and tests the language models for each task, connects them to the company's tools and puts AI agents in production in up to 4 weeks, with permission rules, human approval and tests with real cases. Afterwards, agent operations tracks hits, errors and usage cost month by month and reruns the tests when a new model comes out. To find out where an LLM would make a difference in your operations, start with the AI Map. UEEK has 14 years in the market, more than 200 clients in 6 countries and more than 500 projects delivered, from local businesses to Itaú.
Other terms and guides on systems, AI and security are in the UEEK glossary.
Topics
- LLM
- what is an LLM
- language model
- glossary