The demo takes a week. A retrieval pipeline, a well-crafted prompt, a streaming UI, and suddenly the room is convinced the feature is nearly done. It is not. In our experience taking LLM features to production for clients in support automation, document processing, and internal search, the demo is roughly 20 percent of the work. The other 80 percent is everything that only matters when real users, real data, and real traffic arrive.
This is a field report on where these systems break, in the order they usually break.
The demo-to-production gap is an evaluation gap
The first thing that breaks is your confidence. In the demo phase, quality was assessed by the team trying a dozen favorite prompts and nodding. In production, the input distribution is hostile: ambiguous questions, documents with tables and scanned pages, users pasting entire email threads, and queries in languages nobody planned for.
The only defensible response is to treat evaluation as the test suite of the system. Before shipping, we build a golden dataset, a few hundred real input examples with graded reference outputs, sampled from actual user data where possible and expanded continuously from production traces. Every prompt change, model upgrade, or retrieval tweak runs against it, scored by a mix of deterministic checks (did the answer cite a source, is the JSON valid, did it refuse when the context was empty) and LLM-as-judge grading that is itself calibrated against human labels on a subsample.
A prompt change without an eval run is a production deploy without tests. Teams accept the first because the output looks like prose. They should not.
The uncomfortable discovery is that model upgrades are regressions in disguise: a newer, better model can score worse on your task because your prompts were tuned to the old one's quirks. Without evals you find that out from your users.
Latency is a product decision, not an infrastructure detail
The second break is speed. A pipeline that retrieves, re-ranks, calls a model, validates, and possibly retries can take eight to fifteen seconds, an eternity against interfaces that respond in 200 milliseconds. Latency work starts with a budget: decide end-to-end targets per feature (time to first token for chat, total completion time for batch extraction) and allocate them across pipeline stages the way you would any performance SLO.
What actually moves the number, in rough order of leverage: streaming tokens to the user immediately, which changes perceived latency more than any backend optimization; routing to smaller models for the 70 percent of requests that do not need the frontier model, with a classifier or heuristic deciding; caching, exact-match first, then semantic caching for high-traffic repeated intents; trimming context, because every needless token in the prompt is paid for twice, in money and in milliseconds; and running retrieval and other pre-work in parallel rather than sequentially.
Failure is not an edge case, it is a mode
Traditional services fail loudly with a stack trace. LLM systems fail quietly, with a fluent and confident wrong answer. Production readiness means designing for at least four distinct failure classes.
- Hard failures: provider outages, rate limits, timeouts. These need retries with backoff, a second provider or self-hosted fallback behind the same interface, and circuit breakers so a degraded provider does not queue-bomb your system.
- Schema failures: the model returns malformed or invalid structured output. Constrained decoding and strict validation catch these; one bounded repair attempt, then a deterministic fallback path.
- Content failures: hallucinated facts, ungrounded claims. Mitigated with retrieval grounding, mandatory citations checked against the source set, and calibrated refusal when retrieval comes back thin.
- Adversarial failures: prompt injection through user content and retrieved documents. Input sanitization helps, but the real defense is privilege design, the model gets read-only tools by default and every high-impact action requires human confirmation.
The unifying principle: the feature must degrade to something honest. A support bot that says it cannot answer and routes to a human preserves trust. One that invents a refund policy destroys it.
Observability and cost, or flying blind twice
Standard APM tells you almost nothing about an LLM feature, so tracing has to be built for the pipeline: every request logged with its full context, retrieved chunks, prompt version, model, token counts, latency per stage, validation outcomes, plus user feedback signals joined onto the trace. These traces are not just for debugging; they are the raw material your eval dataset grows from.
Cost gets the same treatment as latency: a per-request budget, monitored per feature and per tenant. Token spend is invisible in development and shocking at scale, and the mitigations, routing, caching, context discipline, are conveniently the same ones that fix latency.
What we would tell a team starting today
Ship the narrowest useful version of the feature to a small cohort early, because production traces beat any synthetic planning. Build the eval harness before the second prompt iteration, not after the first incident. Pin model versions and treat upgrades as releases with eval gates. Design the fallback path first, because it defines your worst day. And keep a human escalation route in the loop for anything with consequences.
None of this is glamorous, which is precisely the point. The teams succeeding with LLMs in production are not the ones with the cleverest prompts. They are the ones who wrapped a probabilistic component in deterministic engineering, and measured everything.