LLM application development is the work of building software where a language model is one part of the system rather than the whole product.
That sounds like a small distinction. It is not. Calling an API and getting text back takes an afternoon. Building something a customer can rely on takes much longer, and almost all of that time goes on the parts around the model.
What the model does not do for you
A language model is good at producing plausible text. It is not good at knowing your data is wrong, noticing that an API returned an empty list, or remembering what happened in the last step of a long process.
It also cannot be trusted on its own. It will produce a confident answer with a missing piece of information, a plausible figure for a product that does not exist, and a tidy summary of a document it half read.
None of that is fixed by a better prompt. It is an engineering problem, and it is where most of the value lives.
The parts that turn a prompt into an application
Retrieval
When the model needs to know something, the answer has to come from somewhere you control. That is retrieval: your documents, your database, your tickets, indexed and searched so the right passage comes back.
The work is in the details. How documents are split, whether exact keyword matching is combined with semantic search, whether the answer cites the source, and what happens when the material does not cover the question at all.
Tools
Tools are how the system does something rather than saying something. Read a record, create a ticket, run a report, call a payment provider.
The quality of a tool comes from its description and its input contract, not from the model. A tool with vague parameters and an unclear description gets used badly, and the error looks like a model problem.
State
Anything that runs in more than one step needs to remember where it is: which step finished, what was found, what the user approved, what still needs a decision.
Most real applications need this saved somewhere, so a run can be paused, reviewed by a person and resumed without starting over.
Evaluation
This is the part most demos skip and most projects need: a fixed set of real inputs and a way to judge the output.
Some checks are mechanical: does it return valid JSON, did it write a record that exists, did it call the right tool. Others need judgement: is this answer consistent with the source, is this a reasonable reply to this customer.
For tracing and reviewing real runs I often use Langfuse, which keeps prompts, outputs and scores in one place. The tool matters less than the habit of running the checks on every change.
Cost control
A model call has a price, and an agent that loops turns a small task into a large invoice. Every application needs a spend cap per run, a bound on the steps, and a decision about which model handles which step.
The cheapest model is not always the right one. A cheap model that makes three attempts costs more than an expensive model that gets it right first time.
Guardrails
Guardrails are the rules that keep the system inside its lane. What the model is allowed to do, which actions need a person to approve, what data must never leave, what happens when the input looks like an attack or a strange request.
They are better as code than as instructions. A limit in code cannot be talked past.
What separates a demo from a product
A demo runs on one clean example. A product runs on Monday morning with real data and a customer waiting.
The difference shows up in a short list:
- The demo never handles a missing field. The product does.
- The demo never retries. The product retries a small number of times and then tells a person.
- The demo never shows what it did. The product keeps a trace of every call.
- The demo has no owner. The product has a runbook and a named person who can fix it at a weekend.
When you do not need a model at all
Some of the most valuable work I do involves no language model at all. If the rules are fixed, a normal automation is faster, cheaper and more predictable than anything with a model in it.
Ask two questions before starting. Does the task need judgement, or would a rule engine do it? And what happens if the answer is wrong? If it moves money or contacts a customer, the system around the model has to carry the weight.
If the task does not need judgement, do not build an LLM application.
How I build these
The order matters more than the tool.
- Write down the process, the tools and what good looks like.
- Build the smallest version that does the real work, with the failure paths in place from the start.
- Build the test set before the features.
- Add the approval gates and the spend cap before the first live run.
- Hand it over with documentation, so the team can change it.
The AI agent development service page describes this in more detail. I have written up the projects on this site so you can see what finished work looks like, and you can ask for a free project review to run the first read on your own process. My pricing page sets out how the work is scoped and priced.
If you want the commercial side of it, the AI agents service covers how I build and hand them over.
The AI agents service covers how I build this, and the pricing page explains what decides the cost.
For the commercial side of it, the AI agents service covers how I scope and deliver this work, and the pricing page sets out the engagement plans.