Domains · Data and AI
Leading LLM applications teams
The centre of your product is a component whose behaviour is probabilistic, is specified by examples and can change when a supplier ships an update. Leading here means running evaluation, prompt review and cost control with the rigour you give to code.
See the 23 roadmap steps this changes ↓What is different here
- 01
Done is a pass rate, not a passing test
A deterministic feature works or it does not. An LLM feature produces a spread of outputs, and the same input can pass today and fail tomorrow. So done has to mean a measured rate on an agreed set of cases, with the failures you accept named in advance.
That set is your specification. Build it from real inputs, have someone who knows the domain read outputs and name what is wrong, and add every production failure to it. Run it on each change to the prompt, the context, the model or the retrieval data.
The common failure is shipping on a demo. A handful of good examples shows the best case. Your users will find the rest.
- articleYour AI Product Needs Evals (opens in a new tab)Hamel Husain
- articleWhat We've Learned From A Year of Building with LLMs (opens in a new tab)Eugene Yan, Hamel Husain, Shreya Shankar and co-authors
- paperWho Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences (opens in a new tab)Shreya Shankar and colleagues
- 02
A dependency that changes without a release
Much of your product's behaviour lives in a model you rent. The supplier can update it, reprice it, limit your throughput or retire it, on their schedule. An update that is better in general can still make your feature worse.
Treat the model as a versioned dependency. Pin a version where the supplier allows it, record which version served each request, and rerun your evaluation before you accept a new one. Keep a tested fallback and know what an outage does to users. Put retirement dates in your planning calendar.
Keep what is yours in your own systems: evaluation sets, prompts, logs and data. They decide whether changing supplier is a routine project or a rewrite.
- paper(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIs (opens in a new tab)Wanqin Ma, Chenyang Yang and Christian Kästner
- paperHidden Technical Debt in Machine Learning Systems (opens in a new tab)D. Sculley and colleagues
- articleDon't get locked up into avoiding lock-in (opens in a new tab)Gregor Hohpe
- 03
Prompts and context are code
A one-line change to a prompt can alter behaviour across the whole product. So can a change to what you retrieve and place in front of the model. Yet prompts often sit in a text field anyone can edit, with no review and no history.
Put prompts, tool descriptions, retrieval settings and model parameters in version control. Review each change with its evaluation result attached, as you would attach test output to a pull request. Release behind a flag and keep rollback quick.
Decide who may change prompts. Domain experts often write better ones than engineers do. Give them a route through the same review and evaluation, not a back door into production.
- articleEngineering Practices for LLM Application Development (opens in a new tab)David Tan and Jessie Wang
- articleBuilding LLM applications for production (opens in a new tab)Chip Huyen
- paperQuantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting (opens in a new tab)Melanie Sclar, Yejin Choi, Yulia Tsvetkov and Alane Suhr
- 04
Cost and latency are product decisions
Every request has a price and a wait. Both grow with how much text you send and how much you ask for. Adding retrieved documents, a second checking pass or a larger model shows up in the margin and in how the product feels.
Make these trade-offs with product, in the open. Set a cost budget per request and a latency target per feature before design, and measure both in the evaluation next to quality. Then pick the cheapest configuration that passes. Caching, smaller models for easy cases and shorter context are planned engineering work with owners.
Watch usage per feature and per customer. A few heavy users or one retry loop can move the bill before anyone has decided anything.
- 05
Every text the model reads is untrusted input
Your application reads documents, web pages, emails and user messages. Treat each of them as able to steer the model, because content and instruction arrive in the same channel. Treat the output as untrusted too: it can hold wrong facts, unsafe markup or data from another customer's context.
A line in the prompt telling the model what not to do is a request. Nobody should count it as a control. The controls sit around the model: what data it can reach, what it can send out and how output is checked before a system or a person acts on it.
Bring security in at design time with a data-flow diagram. Add abuse cases to the evaluation set so a regression shows before release.
- guideOWASP Top 10 for LLM Applications (opens in a new tab)OWASP Gen AI Security Project
- articlePrompt injection is not SQL injection (it may be worse) (opens in a new tab)UK National Cyber Security Centre
- paperArtificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) (opens in a new tab)NIST
- 06
The scarce skill is judging output
Any capable product engineer can build a first version quickly. The scarce skills come after: reading many outputs and naming the failure patterns, turning those patterns into checks, and knowing the domain well enough to say what a good answer is.
Staff for that. Pair engineers with a domain expert who has protected hours for review. Make reading real traces a team habit, and join it yourself. Reward the engineer who builds the evaluation harness and the error analysis as you reward the one who ships the feature.
Executives usually misread the effort. The demo arrives in days, so they assume launch is close. Show them the failure rate on real cases and the list of failure types still open.
On the roadmaps
These steps change when the team works in LLM applications. Set it as your field and every roadmap highlights them.
AI and Physical AI Team Leader
open with this as your field →- Evaluation as the product spec
With no model of your own to train, the evaluation set and the prompts are most of what you own. Run the set on every prompt, context and model-version change, and block release on it.
- Build, buy or fine-tune
Most teams here start by renting a hosted model. Record why, and name the evidence (a quality gap, cost per request, data terms) that would move you to fine-tuning or hosting your own.
- Monitoring and drift
Drift can come from the supplier: a model update changes behaviour with no change on your side. Log the model version per request and run a scheduled evaluation against production settings.
- Setting expectations with product
Agree what the feature does when the answer is wrong, slow or refused: show sources, ask for confirmation or fall back to plain software. Product owns the cost and latency budget with you.
- Compute budgets and cost
Your compute bill is metered inference, not training. Track cost per request and per customer action by feature, and set limits before a long context or a retry loop sets them for you.
- Security of ML systems
The main new threat is text that carries instructions: retrieved documents, uploads, web pages. For each prompt, map what it can read and what its output can trigger.
- Incident response for model failures
Define wrong or harmful output to users as an incident with a severity. Keep a mitigation that needs no supplier: a prompt rollback, a feature flag, an output filter or a plain-software fallback.
- Hiring researchers and ML engineers
You mostly need product engineers who are rigorous about evaluation, plus domain experts. Test candidates on error analysis of real outputs, not on model theory.
Engineer to Tech Lead
open with this as your field →- Quality and testing strategy
Exact-match assertions fail on generated text. Layer the strategy: deterministic tests for the code around the model, an evaluation set for behaviour and sampled human review.
- Code review as teaching
A prompt diff tells a reviewer little. Ask for the evaluation result and a few before-and-after outputs with every prompt or context change.
- Owning releases
A release is a set: code, prompt, model version and retrieval index. Version them together, ship behind a flag and be able to roll each one back separately.
- Estimation
The first working version comes fast and distorts the estimate. Budget most of the time for the climb from a good demo to an acceptable failure rate, and give it as a range.
AI Adoption Lead
open with this as your field →- Evaluating AI features before shipping
Evaluate the whole chain and each stage: retrieval, prompt, model and post-processing. Scoring stages separately tells you which one to fix when the end result is poor.
- An AI roadmap that survives model changes
Hold a standing budget for model migrations. Each supplier retirement forces a re-evaluation and prompt rework whether or not it is on your roadmap.
- Shared context and conventions for tools
Product prompts belong in the same category as tool instructions: shared, versioned and reviewed. Give them a home in the repository and one owner per feature.
- Avoiding lock-in, within reason
Prompts tuned to one model's habits are your largest hidden switching cost. An evaluation set that runs against any supplier is what keeps the exit open.
Startup CTO
open with this as your field →- Build versus buy
Renting the model is usually right early. Own the evaluation set, the prompts and the usage data from the first day: they hold your product knowledge and your way out of any one supplier.
- Cloud cost
Inference is a variable cost per customer action and can dominate your margin. Know the cost per active customer by feature before you set prices.
Reliability and SRE Leader
open with this as your field →- Measuring from the user's side
Availability and latency miss the main failure: a fast, well-formed, wrong answer. Add a quality indicator from sampled grading or user corrections next to the usual ones.
- Change management and safe deploys
Prompt and model-version changes are production changes. Route them through the same gradual rollout and rollback as code, with the evaluation as the gate.
Senior Engineer to Engineering Manager
open with this as your field →- Quality without reviewing it all
Quality here is a measured failure rate on real cases. Make reading a sample of production outputs a weekly team ritual, and attend it yourself.
Data and ML Leader
open with this as your field →- Generative AI on company data
Retrieval quality caps answer quality. Evaluate retrieval apart from generation, and enforce document permissions in the retrieval step, never by instruction in the prompt.
Security Engineering Leader
open with this as your field →- AI-assisted development and ML systems
For LLM products the review question is data flow: which untrusted text reaches the model, which private data sits in its context and where its output can go.