Somebody above you has seen a demo. A support assistant, a smart search box, a tool that drafts release notes from tickets. It worked beautifully in the meeting, it took an engineer two afternoons to build, and now you've been asked how long it will take to "put it in the product". The honest answer is that nobody knows yet, and the demo tells you almost nothing about it.
AI features built on large language models (LLMs) don't behave like the features your team usually plans. The first 80% arrives absurdly fast. The rest, making it reliable, safe, affordable and maintainable for real users with real data, is where the time goes, and it is very hard to estimate up front. This guide is for engineering managers who own that gap. It covers how to scope an AI feature, how to know whether it works, what it really costs, how it fails, and how to decide whether to keep going, with templates you can use in your next planning meeting.
It deliberately names no models or vendors. They change every few months; the planning discipline doesn't.
Why AI features break normal planning
Most features are deterministic. The same input produces the same output, a test passes or fails, and "done" means the acceptance criteria are met. An LLM feature differs in four ways that matter to a manager:
| Normal feature | LLM feature |
|---|---|
| Correctness is binary: the test passes or it doesn't | Quality is a distribution: right 92% of the time, subtly wrong 5%, badly wrong 3% |
| Behavior changes only when your code changes | Behavior can change when the provider updates a model, when you edit a prompt, or when user inputs drift |
| Cost is mostly fixed infrastructure | Cost scales with every request and with the length of every input and output |
| Failure is usually loud: an error, a crash | Failure is often quiet: a confident, fluent, wrong answer |
These four differences explain nearly every AI project that overran. Teams estimated the build (fast) and not the evaluation (slow). They tested with a handful of examples and shipped into a distribution of thousands. They costed a pilot and were surprised by production volume. They designed for errors and not for plausible mistakes.
There is an older lesson here too. In "Hidden Technical Debt in Machine Learning Systems" (Sculley et al., NeurIPS 2015), engineers at Google argued that the model code in a real machine learning system is a small fraction of the whole; the surrounding data handling, configuration, monitoring and serving infrastructure is most of the work and most of the debt. LLM features compress the model part to a single API call, which makes the surrounding work even more of the total, not less.
Step 1: Define the job in one sentence
Start with the user's problem, not the capability. "Add AI to search" is a capability. "Help a support agent find the right help-center article for a ticket in under 30 seconds" is a job. The job sentence tells you who the user is, what good looks like, and what you'd measure.
Then ask the question Martin Zinkevich puts first in Google's Rules of Machine Learning: "Don't be afraid to launch a product without machine learning." Rule #1 exists because a simple heuristic often gets you most of the value, and it gives you the baseline you'll need later anyway. Before committing to an LLM, write down what the non-AI version would be: a better keyword search, a rules-based router, a template, a form with three more fields. If the simple version gets you 70% of the way at a fraction of the cost and risk, that may be the right first release, and your AI feature now has a number to beat.
A short scoping brief keeps everyone honest. Use it alongside your normal one-page project brief:
| Question | Example answer (hypothetical) |
|---|---|
| Who is the user and what is the job? | Support agents; find the right article for a ticket |
| What do they do today, and how long does it take? | Search the help center by keyword; median four minutes |
| What is the non-AI baseline? | Improved keyword search with synonyms; estimated two minutes |
| What does "good enough" mean? | Right article in the top three suggestions for 85% of tickets |
| What happens when it's wrong? | Agent ignores the suggestion and searches as before; low harm |
| What data does it touch? | Ticket text, which may contain customer personal data |
| Who decides if it ships? | Head of support, with the engineering manager |
The "what happens when it's wrong" row is the most important one on the page. It decides almost everything that follows.
Step 2: Classify the risk before you design anything
Not every AI feature deserves the same care. A tool that suggests a title for an internal document can be wrong all day without anyone being hurt. A feature that tells a customer whether they're entitled to a refund, or summarizes a medical record, cannot. Sort the feature into a tier before you design it, because the tier sets the design, the review and the launch bar.
| Tier | Description | Examples | What it requires |
|---|---|---|---|
| 1. Assist | A human sees every output and chooses whether to use it | Draft replies, suggested tags, summaries for internal readers | Basic eval set, user feedback, easy to ignore or edit |
| 2. Act with review | The output triggers an action, but a human approves it first | Proposed refunds, generated code changes, routing decisions | Larger eval set, review UI, audit log, error budget |
| 3. Act alone | The output reaches a customer or changes data with no human in the loop | Customer-facing answers, automated account changes | Full eval suite, red-teaming, monitoring, legal and security sign-off, a kill switch |
Most teams should start in tier 1 even when the end goal is tier 3. Moving from "assist" to "act alone" is a decision you make with evidence from production, not a decision you make in a planning meeting.
Regulation matters here too. The EU AI Act takes a risk-based approach, with obligations that depend on what a system is used for, and other jurisdictions and industries have their own rules. The NIST AI Risk Management Framework (AI RMF 1.0, 2023) is a useful, freely available structure for thinking about risk; it organizes the work into four functions: govern, map, measure and manage. You don't need to adopt it wholesale, but if your feature is tier 2 or 3, bring in legal and security at this step, not the week before launch. If your organization already has a policy for which data may go to which tools, the feature has to follow it; managing AI change in your organization covers how to set one up if it doesn't.
Step 3: Build the evaluation set before the feature
This is the single most useful practice in this guide, and the one teams most often skip. An evaluation set (an "eval") is a collection of realistic inputs with a definition of what a good output looks like for each. It is the closest thing an AI feature has to a test suite, and it should exist before anyone writes a prompt for production.
Why first? Because without it, every change is judged by someone trying five examples and saying "looks better". Prompt edits, model upgrades and new retrieval settings will all change behavior in ways nobody can see by eye. The eval is what turns "it seems fine" into "it gets 87% of the set right, up from 81%, and the two regressions are both in billing questions".
What goes in a first eval set
- Real inputs, anonymized as your policy requires. Pull them from logs, tickets or documents. Invented examples are always cleaner than reality.
- The common cases, in proportion. If 40% of tickets are password resets, so are roughly 40% of the set.
- The hard and the dangerous cases, over-represented. Ambiguous requests, inputs in other languages, very long inputs, angry users, inputs that try to make the system misbehave.
- A written definition of "good" for each. Sometimes that's an exact answer. Often it's a short rubric: "mentions the correct plan limit; doesn't promise a refund; under 120 words".
Start with 50 to 200 examples. That's enough to see large differences and small enough that a domain expert can label it in a few days. Grow it every time production shows you a failure you didn't have in the set.
How to score it
| Method | Use it when | Watch out for |
|---|---|---|
| Exact or programmatic checks | The output has a right answer or a structure (a category, a JSON field, a number) | Only covers part of quality |
| Human review against a rubric | Quality is a judgment; you're early; stakes are high | Slow; reviewers drift unless the rubric is specific |
| A model grading against the rubric | You need to score hundreds of outputs on every change | The grader can be wrong too; check it against human scores regularly |
A practical pattern: programmatic checks for everything they can cover, a model grader for the rest, and a human spot-check of a sample of the grader's scores every time you change something significant. Chip Huyen's AI Engineering (O'Reilly, 2025) spends a large part of the book on evaluation for good reason; it's worth having on the team's shelf.
Agree the launch bar now
Write down the threshold before you see results, the same way you'd set kill criteria for a research bet. For example: "We launch to 10% of agents when the eval shows at least 85% top-three accuracy, no output in the 'dangerous' slice that promises something we don't offer, and median latency under three seconds." A bar set after you've seen the numbers tends to land just below them.
Step 4: Cost it per request, then per month
LLM features have a unit cost, and it moves with things product decisions control: how much context you send, how long the answers are, how many calls one user action triggers, and which model you use. A pilot with 20 internal users hides all of this. Do the arithmetic before you commit.
Work out four numbers:
- Calls per user action. A simple feature might make one call. A feature that retrieves documents, drafts an answer, then checks it may make three or four.
- Tokens per call. Input (instructions + retrieved context + user input) and output. Context is usually the larger share, and it grows quietly as people add "just one more document" to improve quality.
- Price per token for the model you're likely to use, from the provider's current price list.
- Actions per month at realistic adoption, not at launch.
A worked example, with deliberately round, hypothetical numbers so you can follow the method:
| Item | Value |
|---|---|
| Calls per suggestion | 2 (retrieve-and-draft, then a check) |
| Tokens per call | 6,000 in, 400 out |
| Suggestions per month | 300 agents × 25 tickets/day × 21 days ≈ 157,500 |
| Total tokens per month | ~1.9 billion in, ~126 million out |
Plug in your provider's prices and you have a monthly run cost. Then do two more things with it. First, compare it with the value of the job: if the feature saves each agent two minutes a ticket, what is that worth? Second, run the sensitivity: what if context doubles, or you need a larger model to hit the quality bar? AI costs tend to be dominated by one or two of these levers, and you want to know which before finance asks.
The usual levers for cutting cost, roughly in order of how much they help without hurting quality: send less context (better retrieval, shorter instructions), cache repeated inputs where your provider supports it, use a smaller model for easy steps and a larger one only where needed, and limit output length. Each of these is a quality trade-off you can measure with your eval set, which is another reason to build it first.
Don't forget the costs that aren't tokens: the hours to label and maintain the eval set, monitoring, the review time in tier 2 features, and the engineering time every time a model version you depend on is retired. That last one is real and recurring. Treat the model like any other dependency, and run vendor choices through the same build-or-buy discipline you'd use elsewhere, including the cost of switching providers later.
Step 5: Design for wrong answers
Every LLM feature will sometimes produce output that is wrong, made up, or inappropriate, and it will do it fluently. The design question is not "how do we stop that?" but "what happens when it does?"
Make wrong answers cheap
- Show your sources. If the feature answers from your documents, cite which ones, so the user can check.
- Make it easy to ignore. A suggestion the user accepts with one click and dismisses with one click costs little when it's wrong.
- Constrain the output. A choice from a fixed list of categories can't invent a category. Structured output can be validated before anyone sees it.
- Let it say "I don't know". Instruct the system to decline when it lacks the information, and count declines as acceptable in your eval rather than as failures.
- Keep a human where the stakes are. That's what the tiers are for.
Treat inputs as hostile
The OWASP Top 10 for LLM Applications lists prompt injection as its first risk: input crafted to make the model ignore its instructions. Any text your feature reads (a customer email, a web page, a document a user uploaded) can contain instructions. The practical consequences for planning:
- Give the feature the least access it needs. A summarizer doesn't need permission to send email or change records.
- Never let model output run as code, queries or commands without validation.
- Keep secrets and other customers' data out of the context it sees.
- Add the attacks to your eval set, and have someone try to break the feature before launch.
Your security team should review any tier 2 or 3 feature with these in mind. If you have an internal exceptions process for engineering standards, AI features will test it early.
Step 6: Plan the work as phases with decision points
Because the hard part is uncertain, don't give a single delivery date for the whole feature. Plan in phases, each ending with a decision based on evidence, and forecast each phase as a range in the way described in forecasting delivery dates as a range.
| Phase | Goal | Typical output | Decision at the end |
|---|---|---|---|
| 0. Scope | Define the job, risk tier, baseline and launch bar | Scoping brief, risk tier, first cost estimate | Is this worth an eval? |
| 1. Eval and prototype | Build the eval set and see how far a simple approach gets | Eval set of 50–200 examples, scores for two or three approaches | Is the bar reachable, and at what cost? |
| 2. Internal pilot | Real users, real data, limited audience | Usage and feedback, failure log, updated cost per action | Does it help the job in practice? |
| 3. Limited release | A percentage of real users, with monitoring | Production metrics against baseline, incident log | Expand, change or stop |
| 4. General release | Everyone, with operations in place | Runbook, owner, review cadence | Ongoing: is it still earning its cost? |
Phase 1 is the one to timebox hardest. A useful rule: if two or three reasonable approaches don't get within sight of the launch bar on the eval set in the time you allowed, the honest output of phase 1 is "not yet", and that is a good result. You've spent weeks, not quarters, to learn it.
When a stakeholder asks for a date, give them the phase plan with a date range for the next decision, not for the finished feature. "We'll know by the 15th whether this can hit the quality bar, and what it would cost per month. If it can, we'll give you a range for the pilot then." That answer is far more credible than a single date you'll miss.
Step 7: Plan for running it, not just shipping it
An AI feature in production needs an owner and a few routines that normal features don't. Agree them before launch:
- Monitoring that includes quality. Latency, errors and cost per action, plus a quality signal: a sample of real outputs scored by the eval method each week, user thumbs-up and thumbs-down, the rate of edits or dismissals.
- Logs you're allowed to keep. You'll need inputs and outputs to debug failures and grow the eval set. Agree with legal and privacy what you can store, for how long, and who can see it.
- A change process. Any prompt, model or retrieval change runs through the eval set before it ships, exactly like a code change runs through tests. Prompts belong in version control and code review.
- Model upgrade drills. Providers retire model versions. When yours does, the new version will behave differently. Re-run the evals, check the dangerous slice, compare cost, and plan this as recurring work rather than a surprise.
- A kill switch. A feature flag that turns the AI path off and falls back to the non-AI baseline. You'll want it the first time the provider has an outage, and you'll be grateful for it if the feature misbehaves in public.
- A review date. Every quarter, look at the job metric, the quality trend and the monthly cost together. A feature that was worth it at launch may not be a year later, and one that wasn't may now be cheap enough.
Staffing and skills
You probably don't need to hire a team of machine learning researchers to ship LLM features. You do need a few skills that most product teams don't have yet, and it's worth naming who on the team owns each:
- Evaluation design. Writing rubrics, building and maintaining eval sets, reading the results honestly. This is closer to QA and data analysis than to model building.
- Domain expertise. Someone who knows what a good answer looks like in your business, available for labeling and review. Book their time explicitly; it's the most common hidden dependency.
- Retrieval and data. Most useful features answer from your own content, and quality depends heavily on finding the right content to send.
- Security review with LLM-specific risks in mind.
Be wary of one enthusiastic engineer becoming the only person who understands how the feature works. Pair from the start, and treat prompts and evals as team-owned code, not personal notes. If your org is debating whether a central team should own AI tooling, the same questions apply as in any boundary decision; see drawing team boundaries before a reorg.
Common mistakes
- Estimating from the demo. The demo proves the happy path exists. It says nothing about the 10% of inputs that will make up 90% of the work.
- No eval set, or one built after launch. Then every change is a guess, and every model upgrade is a gamble.
- Measuring usage instead of the job. Clicks on the AI button aren't the goal. Time to resolve a ticket, accuracy of a routing decision or hours saved per week are.
- Ignoring the review cost. If a human has to check every output, the time to check is part of the feature's cost. Sometimes it's more than the time saved.
- Skipping the baseline. Without a non-AI comparison, you can't tell whether the feature beats a better search box.
- Launching straight into tier 3. Customer-facing, unreviewed automation is where the public embarrassments come from. Earn it with evidence from tier 1 and 2.
- Forgetting that it decays. Inputs drift, models change, your documents go stale. An AI feature with no owner gets worse quietly.
Frequently asked questions
How long does it take to build an LLM feature?
A prototype can take days. A reliable production feature typically takes as long as a comparable non-AI feature or longer, because evaluation, safety work and monitoring replace the time saved on the core logic. Plan in phases and give dates for the next decision, not for the finished product.
How many examples do we need in an evaluation set?
Start with 50 to 200 realistic, labeled examples, weighted toward hard and risky cases. Grow it from production failures. The size matters less than whether it reflects what users actually send.
Should we fine-tune a model or use prompting and retrieval?
Start with prompting and retrieval over your own content. They are cheaper to change and easier to evaluate. Consider fine-tuning only when your eval set shows a specific, persistent gap that prompting and better retrieval can't close, and when you can afford to maintain it.
Who should approve an AI feature for launch?
The product or business owner of the job decides whether it's useful; engineering confirms it meets the agreed eval bar and has monitoring and a kill switch; security, privacy and legal sign off for tier 2 and 3 features. Write the approvers into the scoping brief at phase 0.
How do we stop an LLM feature from making things up?
You can't eliminate it, so design for it: answer from cited sources, constrain outputs, allow "I don't know", keep humans in the loop where stakes are high, and track the rate of wrong answers in your eval and production sampling.
Your planning checklist
Bring this to the meeting where the demo turns into a project:
- The job is written in one sentence, with who it's for and how you'll measure it.
- A non-AI baseline is described, and ideally measured.
- The feature has a risk tier, and "what happens when it's wrong" has an answer.
- Legal, privacy and security know which data it touches.
- An eval set of 50–200 real examples exists or is the first piece of work, with a written launch bar.
- Cost per action and per month is estimated, with the main lever identified.
- The plan is phased, with a decision and a date range at the end of each phase.
- There's a named owner, a monitoring plan, a kill switch and a quarterly review date.
If you can only do one thing this week, ask for the eval set. A team that can tell you how often the feature is right, on real inputs, can plan everything else. A team that can't is still looking at a demo. Planning work under this kind of uncertainty, with stakeholders who want a date, is at the heart of the Associate study guide.