AI Engineering

How to Take an AI Prototype to Production Without Rewriting Everything

Your AI demo works in the meeting. Here is what it takes to make it work for every customer, every day.

5 min read

Laptop screen with colourful source code in a dark editor
Photo: Mohammad Rahmani on Unsplash

In short

  • Most AI prototypes fail on the way to production because nobody defined what “good” means, not because the model is weak.
  • Keep the core that works. Replace the scaffolding around it: evaluation, data, guardrails, cost control, monitoring and ownership.
  • Treat the move to production as an engineering project with a budget for quality, latency and cost, not as a polish step.

Your AI demo works in the meeting. Three months later it still isn’t in front of customers.

This pattern is common. A small team, sometimes one person, builds a prototype in a few weeks with a good model, a prompt and some company data. Everyone is impressed. Then the questions start. Is it accurate enough? What happens when it’s wrong? What will it cost at 50,000 users? Who owns it when it breaks?

Gartner predicted that at least 30% of generative AI projects would be abandoned after the proof of concept by the end of 2025, citing poor data quality, weak risk controls, rising costs and unclear business value. None of those are model problems. They are engineering and product problems, and they can be solved.

Here is how we approach the path from prototype to production without throwing the prototype away.

1. Write down the job before you touch the prompt

A prototype proves something is possible. Production needs a sharper target. Answer three questions in plain words:

  • Which task does the AI do, for which user, at which step of the workflow?
  • What does a correct result look like, and what does a harmful one look like?
  • What does the user do when the AI is wrong or unsure?

If the team can’t agree on these, no amount of prompt tuning will help.

2. Build an evaluation set first

This is the step most teams skip, and it decides everything after it. Collect 100 to 300 real examples with the answer you expect, including the awkward ones: incomplete input, other languages, edge cases, attempts to misuse the system.

Run every change against this set: a new prompt, a new model version, a new retrieval setting. Without it, you are tuning by feel, and every fix quietly breaks something else.

3. Fix the data before you blame the model

Many prototypes run on a clean sample of documents. Production runs on everything: outdated PDFs, duplicates, scanned tables, access rights that differ per user. If the system retrieves the wrong context, the best model in the world will give a confident wrong answer.

Put the effort into document parsing, chunking, metadata, freshness and permissions. This is usually where most of the accuracy gains come from.

4. Design for the wrong answer

The model will be wrong sometimes. The question is what happens next.

  • Show sources, so users can check the answer.
  • Let the system say “I don’t know” when confidence is low.
  • Keep a human approval step where a mistake costs money or trust.
  • Block inputs and outputs that break your rules: personal data, prompt injection, off-topic requests.

Guardrails are product design as much as security.

5. Set a budget for cost and latency

A prototype that costs a few euros a day can cost thousands at scale. Model the cost per request and per active user before launch. Then decide where you can use a smaller model, cache results, cut the context size or batch work in the background.

Latency matters just as much. If an answer takes 12 seconds, users stop waiting. Stream partial results, move slow work off the critical path, and measure the real end-to-end time.

6. Keep the core, replace the scaffolding

You rarely need to rewrite everything. The prompt logic, the retrieval idea and the user flow that convinced people are usually worth keeping. What needs replacing is around them:

  • notebooks and scripts become versioned services with tests;
  • hard-coded keys become managed secrets;
  • a single model call becomes a component you can swap, with fallbacks;
  • manual runs become a pipeline with logging and alerts.

Keep the model behind a clean interface. Providers change prices and versions often, and you want to switch without touching the product.

7. Monitor quality, not only uptime

A normal service is healthy when it responds. An AI service can respond quickly and still be wrong. Track answer quality on a sample of real traffic, user feedback, the rate of “I don’t know” answers, cost per request and drift after model updates. Feed the failures back into the evaluation set.

8. Check privacy and compliance early

Know where your data goes, which provider processes it, in which region, and whether it is used for training. In Europe, GDPR applies from day one, and the EU AI Act adds duties depending on the use case. A short review at the start costs far less than a redesign after a security audit.

In a regulated product, the AI feature also inherits the rules of the product around it. In a banking app that means the bank’s controls for ICT providers under DORA and, if the feature touches onboarding, the KYC rules. In a car, an AI voice assistant in the infotainment system still has to respect distraction limits and reach drivers through the approved over-the-air update process.

9. Give it an owner

Production AI needs the same ownership as any other product: someone accountable for quality, a release process, an on-call plan and a roadmap. Without an owner, the prototype stays a prototype, however good it is.

The challenges I still see

Even with all of this in place, some questions stay open:

  • How much accuracy is enough for your users, and who decides?
  • When does a human in the loop stop being a safety net and become the bottleneck?
  • How do you keep your product different when everyone uses the same models and gets similar answers?

That last one matters most. The model is becoming a commodity. The judgement of the people who decide what the product should do is not.

From our work

We have taken AI into real products: the software of an autonomous warehouse drone for D-ARIA with more than 99% inventory accuracy (case study), and AI-based person following for a mobile robot with EFS Consulting. If you have an AI prototype, our free AI prototype to production review tells you what to keep, what to fix and what it will take.

If you have a prototype that works in the demo but not yet in production, we offer a free AI prototype review. You get a clear list of what to keep, what to fix and what it will take.

Frequently asked questions

Why do AI prototypes fail to reach production?

Usually because quality was never defined and measured, the data behind the prototype does not hold up at scale, costs and latency were not planned, and nobody owns the system once it is live.

Do I need to rewrite my AI prototype for production?

Rarely. Keep the prompt logic, retrieval approach and user flow that work, and replace the scaffolding: tests, services, secrets, model abstraction, monitoring and release process.

How do you measure the quality of an AI feature?

Build an evaluation set of real examples with expected answers, run every change against it, and monitor answer quality, user feedback and cost on a sample of live traffic.

How long does it take to move an AI prototype to production?

It depends on data quality, risk level and integration work. A focused review in the first weeks shows what to keep, what to fix and a realistic plan for the rest.

Does an AI feature in a banking app or a car need extra checks?

Yes. It inherits the rules of the product around it: DORA controls and KYC rules in banking, distraction limits and over-the-air update rules in a car. Plan a short compliance review before you build.

Working on something like this?

Tell us where the product is stuck. We answer with a concrete next step.

Send a few lines about the product, the deadline and the team you have today. A senior engineer replies within two working days.