Why LLM proofs of concept fail in production
A proof of concept proves one thing: the model can produce a plausible answer once. Production asks a different question — can it produce a reliable answer thousands of times a day, at a cost that makes sense, without falling over when an API stalls? That is an engineering problem, not a model problem.
The three gaps nobody budgets for
- Cost per successful answer. A demo ignores retries, multi-step chains and long context. Real traffic does not. If a single successful answer costs more than the value of the interaction, scale makes the business worse, not better.
- Latency under load. A two-second answer feels fine to one user. At a hundred concurrent users with an upstream provider throttling you, the same answer becomes twenty seconds and users leave.
- Failure behaviour. APIs time out, return malformed JSON and rate-limit without warning. A pilot assumes the happy path. Production must decide what the user sees on the unhappy path.
Design the unhappy path first
Before optimising prompts, decide what happens when the model is unavailable. A good fallback is often a cached answer, a simpler rule-based response, or an honest message that routes the user to a human. Users tolerate a graceful degradation far better than a spinner that never ends.
Instrument before you optimise
Log tokens in and out, latency, success rate and which step of a chain failed. Without this, cost spikes and quality drops are mysteries. With it, you can see that 60% of your spend is going to a context-retrieval step that could be shortened, or that one prompt is responsible for most of the retries.
When to move from pilot to production
Move when three numbers are stable: cost per successful answer, p95 latency, and failure rate. If any of them swings wildly, the system is not ready regardless of how good the demo looks. The model is the easy part. The engineering around it is what determines whether the project survives contact with real users.