From AI PoC to Production: What Actually Changes
Taking an AI PoC to production is mostly work around the model. A checklist, and what broke on two assistants we shipped: one for a client, one on our site.
Getting an AI PoC into production is mostly work around the model, not on it. On our own website assistant the model call is a single function call; the production version needed request gates, stop-reason handling, transcript storage with 90-day retention, automatic tagging and a reporting API, and almost every bug we fixed after launch lived in those layers. For a client's data assistant, the step from hackathon demo to company-wide launch took six days and 166 more tests.
What actually changes between an AI PoC and production?
A PoC answers one question: can the model do this at all? Production has to answer every question around it.
- Users. A PoC has one friendly user. Production has anonymous visitors, bots and people trying to break the prompt.
- Data. A PoC reads whatever the builder pointed it at. Production needs definitions someone owns.
- Failure. A PoC is judged on the happy path. Production meets every way a reply can end: refusals, truncation, timeouts, a visitor pressing Stop.
- Visibility. Nobody reads a PoC's answers after the demo. In production you need to know what people asked, where the assistant failed and what it cost.
What has to exist around the model: a PoC is a prompt, a model and sample questions on a laptop; production surrounds the same model with input gates, a grounding contract, access control, stop-reason handling, cost controls, logging and retention, evaluation and monitoring.
Our first case: a Slack data assistant built in a hackathon
In April 2026 we built a data assistant for a US retail-commerce platform: ask a business question in Slack, get a chart and an answer from the Redshift warehouse. At the internal demo run-through it was a PoC in the honest sense: a dev server on my laptop with a tunnel to Redshift, 31 metrics in a YAML catalogue, and no exhaustive tests. The demo itself found a time-zone bug, and taught us that a model does not know what "now" is. Every request carries the current timestamp.
Six days after the hackathon it launched to the whole workspace. What changed in those six days:
- The catalogue became the only path to data. The hand-written tools were removed. Every question resolves to a YAML metric template, which is rendered, checked with
EXPLAINbefore it runs, restricted to an allow-listed schema and executed with read-only credentials. - Tests went from 720 to 886, covering SQL rendering, period comparisons, chart routing and catalogue integrity, in CI on every push.
- The catalogue grew from 31 to 41 metrics, and per-user memory and prompt caching were added.
Hackathon PoC vs production launch six days later: metrics in the catalogue rose from 31 to 41, metrics supporting week-on-week, month-on-month and year-on-year comparison from 29 to 39, and passing tests from 720 to 886.
What broke after the client assistant went live?
By early July we had fixed problems no demo would have shown:
- Replies took two to three minutes. The metric tool returned only a chart image, so the model had no numbers to quote. It re-ran the same figure through a raw SQL path and sometimes invented an image URL. The fix: return a text summary of the plotted figures with the chart, and a prompt rule of one question, one query.
- The warehouse was cancelling heavy queries. 25 metrics counted
DISTINCT transaction_idon tables that hold one row per transaction. We verified on about a million rows thatCOUNT(*)returns the same number, switched, and the aborts stopped. - Users could get month-old numbers. Answers were auto-saved to a 30-day knowledge store and replayed for similar questions. Data answers are point-in-time, so we stopped saving them.
- The warehouse changed under the catalogue. Live
EXPLAINruns found a renamed fee column and a brand attribute that had moved tables. Now a live question that fails on a missing column or table alerts the data team before a wrong number reaches anyone.
Thumbs-up and thumbs-down reactions on replies are now captured to seed an evaluation set, next to a hand-built golden set of questions.
Our second case: the assistant on our own website
"Ask Datavexa" answers visitor questions on datavexa.com. Because it is ours, we can show the code.
The version 1 design (14 July 2026) was deliberately small: stateless, no conversation storage, no personal data, grounding in the system prompt only (no retrieval), Claude Haiku 4.5 with a 600-token cap. The system prompt is generated from the site's own content (frameworks, diagnostic, articles, team), so it cannot drift from the site.
Before the model is called, a bot user agent is blocked, each hashed IP gets 20 requests per 15 minutes, and a Zod schema caps the history at 16 messages. A hidden honeypot field swallows form-filling bots. The rate limiter is in memory and resets on deploy, a trade-off we accept on one container.
How Ask Datavexa runs in production: the widget posts to the chat route, which checks bots, rate limits and the request schema, builds the system prompt from site content and streams the model's reply with a stop-reason suffix. Each turn is upserted to Postgres; a maintenance job every 30 minutes tags idle conversations and strips transcripts older than 90 days; an admin API reports usage, dead ends and conversions.
The Ask Datavexa assistant on datavexa.com answering a question, with a link to the diagnostic in its reply.
Eight days later we added what version 1 had left out, because we could not improve answers we could not see. Each turn is upserted to Postgres without ever blocking the visitor's reply. Every 30 minutes a maintenance job asks a small model to tag idle conversations with an intent (from a fixed list of ten), topics, a summary and a "dead end" flag, and strips transcripts older than 90 days while keeping the tags. An admin API reports usage, dead-end rate and how many conversations led to the diagnostic or a contact request.
That change also meant correcting the privacy policy, which said conversations were not stored. Review caught one more bug before release: the conversion rate added diagnostic and contact sessions together, so a visitor who did both could push it above 100%.
What broke on our own assistant?
Most of it surfaced in October, when we moved from Haiku 4.5 to Haiku 5.5:
- Empty replies. The new model thinks by default, and thinking tokens count towards
max_tokens. With our caps of 600 (chat) and 200 (tagging), a response could stop before writing any text. We set effort to low and raised the caps to 2,000 and 1,024. - Every tag rejected. Asked for a one-sentence summary, the new model returned 220 to 260 characters every time. Our schema allowed 200, so every result failed and was retried, at two calls per conversation, on every run. The prompt now asks for at most 150 characters and the code truncates instead of rejecting. We also moved tagging to structured outputs, so the API returns schema-valid JSON and the regex parsing went.
- Silent cut-offs. The route ignored
stop_reason. A refusal left an empty bubble, a truncated reply ended mid-sentence. Now every reply ends on a line the visitor can act on (below), and stream errors go to Sentry, which made failures visible for the first time. - A latent validation bug. The 1,500-character limit also applied to the assistant's earlier replies, which the widget resends. One long reply, or a Stop before the first token, made the visitor's next message fail.
- Wrong spend. Each turn overwrote the conversation's token totals, so we counted only the last turn. Caching itself paid off: the system prompt is about 3,900 tokens, and in our live check the second turn read 3,959 tokens from cache and wrote only 202 new ones.
- A queue that could starve. Tagging takes the oldest 20 pending conversations. Twenty that always fail would block every newer one, so failures are now counted and closed out after five attempts.
- A wrong answer about ourselves. Asked whether we offer managed data services on AWS, the assistant said we were probably not the right fit, because the prompt said we "build capability inside your team, then leave". We do offer managed services. A system prompt is product copy, and needs the same review.
The stop-reason handling, simplified:
switch (stopReason) {
case 'end_turn':
return '';
case 'refusal':
return hasText ? REFUSAL_AFTER_TEXT : REFUSAL_ALONE;
case 'max_tokens':
return MAX_TOKENS; // "ask me to carry on, or book a call"
default:
return ERROR_LINE;
}
A checklist for taking an AI PoC to production
| Area | Question to answer before launch | What we used |
|---|---|---|
| Input gates | Who can call it, how often, with what payload? | Bot check, per-IP rate limit, schema validation, honeypot |
| Grounding | Where do facts and numbers come from, and who owns them? | Site content; a governed metric catalogue |
| Data access | Can the model reach data it should not? | Read-only credentials, schema allow-list, EXPLAIN gate |
| Every stop reason | What does the user see on refusal, truncation or error? | A suffix line for each case, persisted with the reply |
| Model upgrades | Do caps, schemas and prompts still hold? | Re-run tests and evaluation; check token budgets |
| Logging | Can you see what was asked and where it failed? | Stored transcripts, automatic tags, dead-end flag |
| Retention | When is raw text deleted, and does the policy say so? | 90-day strip, privacy policy updated in the same release |
| Evaluation | How do you know a change made answers better? | Unit tests, a golden question set, user reactions |
| Cost | What does one conversation cost, summed across turns? | Prompt caching, low effort, cumulative token totals |
| Monitoring | Who is told when it breaks? | Sentry, schema-drift alerts |
What would we do differently?
Three things. Decide on logging and retention before launch: version 1 of our assistant went live storing nothing, and adding storage a week later meant correcting a privacy statement. Treat a model upgrade as a migration, with the same tests and checks as a schema change. And keep the model out of SQL. For the client, the next step was a semantic layer of 86 governed metrics with an MCP server in front of it: the model picks metric names, MetricFlow writes the SQL and row-level security in the warehouse decides which rows each user sees. It is now being rolled out to production. Governed metric definitions like these are what our Clarity framework puts in place.
The model was never the hard part of either assistant. Everything around it was.

Written by
Luis Laginha
Founder & CEO
Over 20 years in data and analytics consulting, cloud architecture, and strategic project delivery. Led data modernization, M&A integrations, and platform builds for global enterprises in pharma, retail, energy, and supply chain. Translates business needs into scalable data solutions with delivery precision.
LINKEDIN →FAQ
Common questions
How long does it take to move an AI PoC to production?
Less than people expect for the first release, and longer than people expect for the rest. Our client data assistant went from hackathon demo to company-wide launch in six days; the fixes that made it dependable kept coming for months, and so did our own website assistant's.
Why do AI PoCs fail when they reach real users?
Because a PoC only exercises the happy path. Real users hit truncated replies, refusals, stale caches, changed warehouse schemas and questions about "last week" in another time zone. None of that shows up in a demo, and all of it showed up within months on the assistants we run.
Should an AI assistant write SQL against our data in production?
We avoid it. In production the model picks from governed metric definitions, the SQL is generated or pre-validated by code, credentials are read-only, and the database decides which rows each user can see.
Find out what your AI PoC is missing
Take the free AI Readiness Diagnostic and see whether metric trust, pipeline reliability or cloud cost is the constraint between your PoC and production.
Take the Diagnostic