BLOG · AI NEWS & MODELS

What is an LLM?
How large language models work

An LLM generates text using learned patterns. Understand training, context, API costs and practical checks before using a language model in your business.

11 min read

Listen to this article

5 min · AI news & modelsA conversation by the WebDrift team, made with AI voices (Google NotebookLM)
0:004:11
All episodes

Updated: Auf Deutsch lesen

A vast constellation of connected points forming the faint outline of a speech bubble against a dark skyAI news & models

An LLM (large language model) is a neural network trained on vast amounts of text that generates text by predicting, piece by piece, which text pieces could plausibly come next. As a form of AI (artificial intelligence), it offers abilities such as writing, summarising, translating and programming. Because the model relies on probability rather than checking facts, it sounds convincing even when it is wrong. This article explains how an LLM works, where its limits are, what it costs and what it is useful for in a small business.

How does an LLM work?

An LLM learns from huge amounts of text which word piece is likely to come next, and produces answers by repeating that prediction over and over. The Hugging Face introduction explains pretraining, fine-tuning and different transformer model types. Here we focus on generative language models that continue responses.

An LLM splits text into tokens, small word pieces. During training it sees enormous amounts of text and learns to predict the next token as well as possible. Training adjusts parameters: numbers that represent learned language patterns and relationships. The number of parameters depends on the model. Most of today's models are based on the transformer architecture, introduced in 2017 in the paper "Attention Is All You Need". Its core is a mechanism called attention, which lets the model weigh, for each word, which other words in the text matter for it.

When you send a request, called inference, the model calculates probabilities for the next token, selects one, appends it and repeats until the answer is complete. Depending on the generation method, the model chooses the most likely token or samples another from a probability distribution. Streaming displays pieces as they are produced; a token is not necessarily a word. How much text the model can consider at once is explained in Tokens and context windows explained.

PhaseWhat happensWho does itConsequence for you
TrainingThe model learns from huge amounts of textThe model provider, with heavy computing effortKnowledge has a cut-off date
Fine-tuningFurther training data adapts the modelProvider or user with suitable infrastructureIt answers helpfully, not necessarily correctly
InferenceThe model answers your requestProvider servers or your own computerEvery use consumes computing power
ContextYou supply documents and instructionsYouSupplied facts are checkable; correct use still needs evaluation

The four rows describe different interventions. Training and fine-tuning change the model. Inference uses it, while context supplies material for current processing. Providing a new price list therefore does not train a new company language model. For regular price changes, a maintained information source is usually the clearer starting point.

For an example from a small translation office, consider a request containing a German product description and an instruction to produce an English version. Both form the input. The model generates the translation as output. Product numbers should remain unchanged even when sentence structure changes. The instruction should explicitly distinguish adaptable language from fixed information.

If the source says “unsuitable for outdoor use”, the restriction must survive translation. A fluent English sentence that drops this condition would be commercially wrong. The office therefore checks technical details first and style afterwards. This gives abstract token prediction a practical, understandable quality standard: preserve the meaning and conditions of the supplied document, rather than merely producing pleasant prose.

What is the difference between an LLM, a chatbot and an AI agent?

The LLM is the engine; a chatbot or AI agent is the vehicle built around that engine. A chat application adds the interface and may offer search, file processing or stored information. Available features depend on the product, plan and configuration; they do not follow automatically from the language model.

  • LLM: generates text on request, without taking action itself.
  • Chatbot: a conversation application that may use an LLM and connect to company knowledge. A chatbot does not have to contain a generative language model.
  • AI agent: an LLM that may also use tools, such as booking an appointment or drafting an email. What that means is explained in What is an AI agent?.

Why does an LLM sound confident even when it is wrong?

An LLM is trained to produce plausible language, not to check the truth. If information is missing, it often fills the gap with something that sounds right. This is called hallucination. Whether it expresses uncertainty depends partly on the model and instructions. A confident tone is therefore not a reliable quality signal.

Further limits: knowledge ends at the training cut-off, long documents are not always fully taken into account, and the same question can produce different answers. On some plans, confidential inputs may be stored or used for training.

What is an LLM useful for in a business?

LLMs suit tasks where a person checks the result and mistakes are spotted early. Typical examples are drafts for emails and texts, summaries of long documents, translations, sorting and labelling enquiries, or extracting details from texts.

A few examples from small businesses:

  • A trades business turns notes from a site survey into a draft quote.
  • A practice has incoming emails sorted into appointment requests, prescription requests and other.
  • An estate agent writes a first property description from bullet points.

When company knowledge is involved, for example from manuals or price lists, the model is made to look things up in documents. This technique is called retrieval-augmented generation; more in What is RAG?. Less suitable are tasks where a mistake goes unnoticed and becomes expensive, such as binding tax information or commitments to customers without review.

How much does it cost to use an LLM?

A chat subscription pays for using an application; an API, or application programming interface, has separate billing terms. Many language model APIs charge separately for input and output tokens. A long customer file can therefore cost money even if the answer contains only one sentence.

As of October 2026, OpenAI's pricing page lists GPT-6.1 Sol at $2 per million input tokens and $10 per million output tokens for standard short-context processing. GPT-6 Luna is listed at $0.10 and $0.50 respectively. The tariffs differ; test which quality suits your own tasks. Models, prices and conditions change frequently.

A sample GPT-6.1 Sol calculation: 2,000 input tokens cost $0.004 and 500 output tokens cost $0.005. Together that is $0.009 for this text request alone. Additional tool calls, storage, retries and support are excluded. Special processing tiers, caching and long context can also change billing.

A painting business should measure the complete workflow: how many documents are read, how often the draft needs correction and how long approval takes. A cheap model call saves little if office work increases afterwards. Compare the cost per usable, checked result rather than the price per token alone.

For a small business, the cheaper model is worth testing on narrow extraction tasks. Compare it with the larger option on difficult cases before choosing. A lower rate alone does not tell you how much correction the output will need.

How do you choose a model?

Test two or three models on your own tasks instead of relying on leaderboards. Models differ in quality, speed, cost, data protection terms and integration options. No model is best at everything. Write down what makes a result usable before comparing models.

  • Task chosen where a person checks the result
  • Necessary context and the desired format included in the request
  • Figures, names and sources cross-checked
  • Provider's data protection terms read
  • Storage, training use and permitted data clarified for the specific contract
  • Rule set for who approves results

How does a model become a dependable workflow?

The model produces text; the application must check and limit what happens to it. Imagine a small B2B (business-to-business) manufacturer receiving an enquiry about a spare part number. The model may extract the number from the message. The application then searches the inventory and checks whether that number exists. Only the confirmed record should enter a draft quotation.

This distinction matters in practice: correctly formatted output can still contain the wrong number. Structured outputs can enforce an agreed data schema; they do not guarantee correct content. A missing number should therefore remain missing rather than being replaced with a plausible invention.

For a test, collect routine enquiries and difficult counterexamples. Include two similar part numbers, a cancelled appointment and an enquiry with no quantity. Check whether the system keeps missing information visible and asks useful follow-up questions. Also assess the case where an answer sounds friendly but omits a material condition.

What do context and search change about an answer?

Context is information supplied for the current response. A prompt, meaning an instruction to the model, may include an approved text. This differs from training: merely reading the input does not update the model's parameters. Whether the provider later uses inputs is a separate product and contract question.

Consider a workshop in Dresden that has changed its opening hours. The model cannot reliably answer “When are you open on Fridays?” using training knowledge alone. Public search might find the updated website or an old directory. Retrieval from a maintained internal source can supply the valid passage. Date, origin and correct use still matter.

The workshop should therefore decide which source takes priority when records conflict. For opening hours this could be approved business information; for availability of a particular appointment it is the calendar. The model must not mix these two types of information. Being open on Friday does not mean there is an appointment available.

How do you assess privacy and learning separately?

As checked on 13 October 2026, OpenAI's API data controls state that API data is not used for model training by default unless the customer explicitly opts in. Logs and application-specific data may nevertheless be stored. “No training” does not automatically mean “no storage”.

A small service business can start testing with fictional customer details and approved templates. Once purpose, data flows and access rights are clear, it can decide which genuine information the workflow needs. Translating opening hours does not require the entire customer database. Limiting information makes errors easier to check and the process easier to understand.

Context shows whether the model considers additional information during a conversation. Checked results show whether it suits your business. Also check lasting learning and reliability across the next twenty enquiries. One convincing answer is insufficient.

Conclusion: a language model needs a suitable workflow

An LLM can support drafting, summarising and extracting information. Its value comes from suitable sources, clear boundaries and checks that actually detect errors. Start with one manageable task and compare reviewed results. Explore our AI automation service, or describe your workflow through start a project.

Related reading: What is prompt engineering? 6 techniques for business tasks.

Sources

LLMlanguage modelartificial intelligencetraininginferencelimits

FREQUENTLY ASKED QUESTIONS

Answered briefly.

01What does LLM stand for?
LLM stands for large language model. It means a neural network trained on very large amounts of text that can generate, summarise and translate text.
02Does an LLM understand what it writes?
It produces likely continuations based on learned patterns. Whether that amounts to understanding in the human sense is disputed. In practice: check results instead of trusting them blindly.
03Does an LLM learn from my inputs?
In a normal conversation, an LLM considers added information in its context without changing its model parameters. Whether the provider later uses inputs for training or stores them depends on the product and contract.
04Why does an LLM not know about current events?
Its knowledge comes from training data up to a certain cut-off date. Current information has to be supplied by a search or your own document.
05How do you separate the model from its application?
The model writes or extracts details, such as an order number from a document. The application then uses fixed rules to check that the format is right and the number exists in your own system, and only that check decides what happens next.

ABOUT THE AUTHOR

Hamada

Founder & CEO of WebDrift

Combines system administration, software architecture and automation with an eye for thoughtful design. Your contact from the first idea to launch.