onema
AI solutions
MVP
Web development
Mobile apps
UX/UI design
Branding
Find out your project cost
office@onema.ru
Questions and suggestions
Get a cost estimate

What is an LLM – explained by an engineer who implements them

An LLM is a large language model, the ‘brain’ of modern AI products. An engineer explains what it can do for business, what it can't do without supporting infrastructure, and what it costs.
Konstantin K.
Tech Lead at onema
What is an LLM – explained by an engineer who implements them – illustration for the onema article
An LLM (Large Language Model) is a neural network trained on vast amounts of text to predict the next word. Everything we call ‘artificial intelligence’ grows out of this simple ability: answering questions, writing text and code, analysing documents. GPT, Claude, Gemini, Llama, Mistral – they are all LLMs. For a business, an LLM is the ‘brain’ around which assistants, agents and automation are built.

That's the formal definition. Now for how I explain it to clients at our first meeting.

A very clever autocomplete


Let's dispel the magic straight away: an LLM doesn't ‘think’ or ‘understand’ in the human sense. It does one thing – it's incredibly good at predicting which word should come next. Like the autocomplete on your phone, only trained on trillions of words and with billions of parameters.

The trick is that, at a certain scale, this ‘autocomplete’ starts to look like thinking: the model continues a legal contract in legal language, code with working code, and a question about prices with an answer about prices. For a business, it doesn't much matter whether this is ‘real’ intelligence or not. What matters is that it works – if it's prepared properly.

‘Prepared properly’ is the key phrase. In two years of implementations, I haven't seen a single project where an out-of-the-box model solved a business problem. And I've seen plenty where, left on its own, it created problems.

What an LLM can and can't do for business


What it can do, proven on our projects: understand free-form human requests (‘I fancy something light for dinner’ is a task that interfaces simply couldn't handle before LLMs); generate coherent text – from support replies to product descriptions; extract meaning from chaos – turning emails, documents and reviews into structured data; write and explain code.

What it can't do without supporting infrastructure: know your data (that requires RAG – we have a separate article), guarantee accuracy (the model makes things up when it doesn't know – this is called hallucination), take actions (for that, the model is wrapped in an agent), remember your previous conversation without purpose-built memory.

Notice the pattern: the model itself is about twenty per cent of the solution. The other eighty is the engineering around it. That's exactly why ‘we'll plug in ChatGPT’ and ‘we'll build AI into the product’ lead to very different results.

The LLM at the centre, surrounded by supporting infrastructure: RAG (knowledge), agent (actions), cache (speed), databases (memory).

Cloud or your own model – a question you'll be asked the wrong way


The classic choice: a cloud model (GPT, Claude, Gemini – you pay per token and your data leaves your perimeter) or a local one (it lives on your server – your data never leaves your perimeter, and you pay for the hardware). This choice is usually presented as either/or. In our experience, the right answer is more often ‘both, and less of each’.

In Sigma.AI, an assistant for a grocery marketplace, we split requests into tiers: standard scenarios – curated selections, quizzes – run without any model at all, using deterministic logic and caching, in 4–6 seconds and with zero tokens. Generation runs on a local model with its own embeddings – user requests are processed in parallel, with no queues and no per-message charges. External models are plugged in selectively, only where their power is genuinely needed. After optimisation, the entire AI stack fitted on a server more modest than the average online shop's.

The moral for your budget: your LLM bill isn't a given – it's a consequence of architecture. A good engineer first thinks about how NOT to call the model, and only then about which one to call.

Where to start if you want to ‘implement an LLM’


Not with choosing a model – that's the last decision, and it's reversible: in a well-designed architecture, the model can be swapped without rewriting the product. Start with a question your business pays for: which process eats up people's hours or loses you customers? If you have an answer, the first working scenario can launch within a few weeks and then grow through iterations. If you don't – honestly, you don't need an LLM yet, and we'll be the first to tell you.

A real-world example

Sigma.AI, an assistant for the Sigma.Market grocery marketplace, builds a basket from items that are in stock.
Got a process that needs automating?
Describe it in the estimate form – we'll look into it and show you where an LLM will pay off and where a simpler solution will do. See how we do it in the Sigma.AI case study and on our AI development page.

FAQs

Cost calculation
Tell us where your product has hit a wall, in the estimate form
After the audit, we'll tell you what to migrate, what to keep and how much it costs
More articles