You have an AI demo that works. It reads the document, answers the question, drafts the reply. Then an engineer tells you the real feature is months away, and it sounds like padding.
It isn't. Every product has a gap between the demo and the release, and we wrote about it in Code is cheap now. AI features add a problem of their own: their most important part, the model, doesn't always behave the same way twice.
A normal feature is either correct or it has a bug. An AI feature is correct some of the time, on some kinds of input, at some cost per request. Most of the months between demo and product go into finding out those numbers and building around them.
A demo shows the model can be right. A product has to know how often it's wrong.
The demo was tested on ten examples
A demo is tried on the examples its author thought of. They're clean and typical, and the model does well on them.
Real input is different. A scanned document photographed at an angle. A question in two languages at once. A support ticket that just says "???". A contract with a table where the model expects a paragraph.
Build an evaluation set
The first real step toward a product is a set of real inputs with known good outputs. It's the AI version of a test suite. Without it, every change to the prompt, the model or the retrieval is a guess: it fixes the example you're looking at and may break ten you aren't.
A useful evaluation set:
- comes from real data, not invented examples
- includes the hard and ugly cases on purpose
- has right answers agreed on by people who know the domain
- runs on every change, with results you can compare over time
It grows as the product runs. Every failure found in production becomes a new case.
If you're the one paying for the feature, the evaluation set is also your progress report. "It feels better" is not a status. A score on real cases that goes up from week to week is.
The dangerous failures are quiet
With ordinary code, you can usually list what can go wrong. With a model, you have to go looking.
Some failures are loud: an error, a timeout, a refusal. Those are easy. The dangerous ones are quiet. A confident answer that's wrong. A summary that drops the one sentence that mattered. A date extracted a month off. A polite reply that invents a policy you don't have.
The approach that works is the one we used for messy sensor data on Libra Data Shelf, a smart-shelf prototype for retail. Tonnes on a shelf, a sudden heat spike, tomorrow's timestamp, a hand resting on the shelf: we decided how to handle each case in advance, so a test in a shop held no surprises. That was sensor data, not model output, but the lesson carries over. List the ways input can be wrong, decide what the system does for each, and test that it does it.
Cost per request at scale
In a demo, cost is a rounding error. At scale, it's a line in the budget.
The math is simple and often skipped: cost per request, times requests per user per day, times users, times 30. Then the harder questions. Does that number grow faster than revenue? What happens when one user sends ten times more than average? What if a prompt quietly doubles in length because someone added more context?
The fixes are well known: smaller models for simpler steps, caching, shorter prompts, limits per user. All of them start with measuring.
Eight seconds feels broken
A demo can take eight seconds to answer and nobody minds. In a product, eight seconds feels broken, especially in the middle of something the user is trying to finish.
Latency shapes the design. Stream the answer so people see it start. Move slow work to the background and notify when it's done. Precompute what you can. Sometimes a smaller, faster model makes a better product than a smarter, slower one, because people actually wait for it.
Uptime won't tell you the answers got worse
Ordinary monitoring tells you the feature is up. It won't tell you the answers got worse.
Quality can drift for reasons outside your code: the provider updates the model, users start asking different questions, the documents behind a search change. You need signals for that:
- a sample of real outputs reviewed by a person on a regular schedule
- feedback that's cheap to give, like a thumbs down or an edit
- how often people accept, change or throw away what the model produced
- the evaluation set rerun on a schedule, not only when the code changes
Decide now what happens when the model is wrong
At some point the model will be wrong, slow or unavailable. Decide in advance what happens then.
- The provider is down: a second provider, a cached answer, or a clear message and a way to continue without AI.
- The output fails a check: hand it to a person or to the non-AI path.
- The request is out of scope: say so, instead of letting the model improvise.
Those checks are often plain code, and they catch a lot. Does the structured output parse? Does the extracted total match the sum of the line items? Do the cited documents exist, and is this user allowed to see them?
A person in the loop is the design
For many AI features, a person in the loop isn't a weakness. It's the design. The model drafts, sorts or suggests. A person approves, edits or decides.
The engineering is in making review fast: the source next to the output, the uncertain parts highlighted, accepting in one click and editing without friction. And in deciding where review can stop. Once the evaluation set and production data show that a kind of request is reliably right, you can let it through and keep reviewing a sample.
Learniverse, an EdTech platform whose AI core we build, went through this in spring 2026. Its learning plans were assembled by a formula over hand-set tags, and on the topics it had been tuned for, it looked fine. Then we built a test set of learners' goals, half of them taken from real learners so the samples stayed comparable, and ran the old approach on it. We stopped after 20 plans: there was nothing worth comparing. A proof of concept with search over every passage of every video came together in March, and in April plan generation was rebuilt on it. On the test set, 93% of the videos in a generated plan are now relevant to the learner's goal, and 100 test generations ran without a failure, 50 of them at once.
Before you call it a product
// before real users depend on it:
- an evaluation set from real data, run on every change
- known failure modes, each with a planned response
- cost per request, and a monthly estimate at 10× the users
- latency people will actually wait for
- quality monitoring, not just uptime
- a fallback for when the model is wrong or down
- human review where mistakes are expensive
None of this shows up in a demo, and none of it is optional once people rely on the feature. The weekend version tells you the idea can work. The months after go into making sure it keeps working when the input is messy, the bill is real, and the users aren't the person who built the demo.
You don't have to guess how far your own demo is from that. A review of an AI prototype answers three things: what works, what breaks at scale, and what it will cost to run.
