# How Do You Take a Prototype to Production?

> The test set, the limits, the staged launch and the watching that turn a working demo into a system a team can run, explained for your AI interview.

**In short:** Test it on real past work first, limit what it can touch, and measure cost and speed. Launch to a small share of users with a way back, then keep watching quality, because models and data change.

AI and LLM interview question Q392, Forward Deployed Engineering and applied AI. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/how-do-you-take-a-prototype-to-production

## Say it in 30 seconds

A demo works on a few clean examples. To take it live, I first test it on real past cases, messy ones included, and limit what it can touch. I measure cost and speed, then launch to a small share of users with a way back to the old process. After launch I watch quality every day, because each failure becomes a new test. That loop keeps it working, and it is most of the job.

## Say it in 2 minutes

The demo is the easy part. It usually runs on a handful of examples someone picked, with clean files and a person watching. Production means real customers, messy inputs, slow systems, a bill that arrives every month, and failures nobody planned for. So I treat the prototype as a claim to test, and ask what has to be true before a customer relies on it.

First I build a test set from real past work, including the messy cases, and score the new version against the live process. In a made-up claims project, the demo routed 18 of 20 hand-picked claims correctly. The real test set of 400 past claims scored 71 percent, mostly on scanned forms and missing dates. Before any launch I also set a limit on each tool, check the cost per claim, and decide when a person takes over.

Then I launch in stages. A small share of real claims goes to the new version, the old path stays ready, and a switch rolls back in minutes. After launch I track quality, speed, cost and how often a person has to step in. Every failure becomes a new test case, so the system keeps improving. Google Cloud's MLOps guide (MLOps means running machine learning systems day to day) says the hard part is keeping the system running in production over time.

If an interviewer asks when a prototype is finished, my answer is when it has tests, an owner, a way back and someone watching it. Until then it is still a demo, however good it looks on stage.

## What does taking a prototype to production mean, in plain words?

A prototype shows that an idea can work. It usually runs on a few examples someone picked, with clean inputs and a person watching. Production means real customers, messy inputs, slow systems and a bill that arrives every month. Taking a prototype to production is the work of closing that gap.

Think of a flight simulator. A pilot can fly a perfect approach in it, but an airline still needs a schedule, maintenance, weather plans and a way to land when an engine fails. The prototype is the simulator. Production is the airline.

Here is the real case. A claims team wants an agent that reads a claim, checks the policy and routes it to the right desk. In the demo it looks great. Then it meets scanned forms, missing loss dates and a customer who wrote the claim at midnight.

- **Production:** A system real people rely on, every day, with real costs.
- **Eval set:** A fixed set of real cases, used to score each change before it ships.
- **Staged rollout:** Giving the new version to a small share of real users first.
- **Rollback:** Switching back to the old way, fast, when the new one misbehaves.

## What has to be true before a real user sees it?

Start with the simplest thing that could work. Anthropic's engineering team recommends the simplest solution possible, and Google's machine learning rules say a product can launch without machine learning at all.

> "When building applications with LLMs, we recommend finding the simplest solution possible, and only increasing complexity when needed." (Anthropic)
>
> "Don't be afraid to launch a product without machine learning." (Google's Rules of Machine Learning)

Next, build the test set. Anthropic says that once you have evals (scored test cases, the same idea as a test set), you get baselines (a starting score to compare against) and regression tests (checks that catch a change which breaks what used to work) for free. Cost per task and error rates can be tracked on that fixed set. OpenAI lists biased design as one of its anti-patterns: an eval set that doesn't faithfully copy real production traffic. A set like that can pass while the live system fails, so build it from real traffic.

Worked example. A mid-size insurer built a triage agent that sends claims to motor, home, travel or injury desks. In the demo it routed 18 of 20 hand-picked claims correctly. The first real test set, 400 past claims, scored 71 percent. Most misses were scanned forms with tilted pages, and loss dates that were missing or in the wrong format. The team fixed the parsing, sent low-confidence claims to a person, and set one bar: no claim type may score worse than the live process. These are made-up numbers with a realistic shape.

A made-up claim note, typed in a hurry, reads: "Kitchen flooded overnight. Photos in the portal, please pay today." The agent should not decide that one alone, because the amount is missing and the policy check has to run first.

A release gate (a check that must pass before a change goes live) can be a few lines of code that check the rule above. This standard-library Python script blocks the release when any claim type gets worse.

```python
# A simplified release gate for a made-up insurance claims triage agent.
# Each row: claim type, did the live process route it right, did the new version route it right.
RESULTS = [
    ("motor", True, True), ("motor", True, True), ("motor", False, True),
    ("home-water", True, True), ("home-water", False, True), ("home-water", True, True),
    ("travel", True, False), ("travel", True, True), ("travel", False, True),
    ("injury", True, True), ("injury", True, True), ("injury", True, False),
]

def rate(rows, index):
    return sum(row[index] for row in rows) / len(rows)

def gate(rows):
    worse = []
    for kind in sorted({row[0] for row in rows}):
        group = [row for row in rows if row[0] == kind]
        live, new = rate(group, 1), rate(group, 2)
        print(f"{kind:<11} live {live:.0%}  new {new:.0%}")
        if new < live:
            worse.append(kind)
    if worse:
        print("HOLD: worse on " + ", ".join(worse))
    else:
        print("SHIP: no claim type got worse")

gate(RESULTS)
```

Output:

```text
home-water  live 67%  new 100%
injury      live 100%  new 67%
motor       live 67%  new 100%
travel      live 67%  new 67%
HOLD: worse on injury
```

The example has only three or four cases per claim type, so one case flips the result. On the real 400-claim set, each group needs enough cases that one claim cannot decide the gate, or the bar needs a small allowed margin.

> **Tip:** Asked how you would know it's ready? Name the test set, the score you need and who signs off. A demo score alone proves little.

## How do you launch it and keep it working?

Launch in stages. Send a small share of real work to the new version, keep the old path ready, and make rollback a switch someone can flip in minutes. The demo has to clear three checks before the first real user: a real test set, limits on each tool, and cost and speed numbers. Every failure found later goes back into the test set.

*Diagram, From demo to a system people trust: A demo has to clear three checks before the first real user. The new version then goes live to a small share of work, and failures found later go back into the test set, so the loop keeps the system honest.*
1. Clear the demo, then test on real past work.
2. Nothing ships until the three checks pass.
3. A small share of real work goes first.
4. Failures in live use become new test cases.

> "the real challenge isn't building an ML model, the challenge is building an integrated ML system and to continuously operate it in production." (Google Cloud, MLOps guide)
>
> "Set up continuous evaluation (CE) to run evals on every change, monitor your app to identify new cases of nondeterminism, and grow the eval set over time." (OpenAI)

Watch what matters after launch: quality on real cases, cost per task, speed, errors, and how often a person steps in. Google Cloud's guide says to track the data and the model's online results, then send alerts or roll back when the numbers move away from what you expect. Microsoft's guidance adds that monitoring should support alerting, logging and a record of what the system did and why (auditability).

Log everything from day one. OpenAI advises logging as you develop, so the logs can be mined for good eval cases. That is how the test set grows from real traffic, and how the team spots a problem before a customer phones in.

### How would you run six weeks from prototype to a pilot?

1. **Week 1: real test set:** Pull 400 past claims, including the messy ones, and label the right desk for each. Score the prototype before touching it.
2. **Week 2: limits and numbers:** Give each tool only the access it needs, set a cost cap per claim, and write down when a claim goes to a person.
3. **Week 3: staged launch:** Send 5 percent of claims to the new version, keep the old desk running, and check the error rate every morning.
4. **Weeks 4 to 6: widen and watch:** Grow the share only while no claim type scores worse. Every failure joins the test set.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A clear line between a demo and a production system.
- [ ] A test set from real past work, with the messy cases in it.
- [ ] Limits on each tool, set in code, not in the prompt.
- [ ] A staged launch with a rollback someone can flip fast.
- [ ] Cost and speed numbers, and a person who takes over when unsure.
- [ ] Monitoring after launch, with failures turned into new tests.

**Common traps**

- Trap: "The demo worked, so we ship it." Better: A demo covers a few clean cases. Score the real work first, then decide.
- Trap: "We'll add monitoring after launch." Better: Without logs you can't tell a fix from luck. Logging goes in on day one.
- Trap: "We need the biggest model for production." Better: Start with the simplest solution that passes the test set. Move up only when a score shows the need.

## Can you spot the launch risk?

**Spot the launch risk:** Which plan is safe enough to put in front of real claims?

A. Send all claims to the new version on Monday, since the demo scored 90 percent.
B. Send 5 percent of claims first, keep the old process ready, and watch the error rate daily.
C. Skip the real test set, because the model already passed a public benchmark.
D. Add logging after launch, once users start complaining.

**Answer:** B. A staged rollout with a way back is the safe choice. A demo score says little about real claims, and logging added after complaints is too late to explain what went wrong.

**Quick check:** A live claims agent starts sending more claims to people than last month. What should you check first?

A. The length of the system prompt
B. The share sent to a person, by claim type, against the test set
C. The model's release date on its website
D. How many words the agent writes per reply

**Answer:** B. More claims sent to people can mean the agent is struggling, or that it now flags unclear cases on purpose. Splitting the share by claim type shows which. The other three options tell you little about the quality of real decisions.

## Can you answer these from memory?

**Flash cards**

- **What must you test before launch?** A real test set from past work, messy cases included, scored against the live process.
- **What is a staged rollout?** Sending a small share of real work to the new version first, with the old path ready.
- **What should a rollback be?** A switch someone can flip in minutes.
- **Why log everything from day one?** Logs show real failures, and those become new test cases. Without them, fixes are guesses.
- **What does production add to a demo?** Real users, messy inputs, slow systems, a monthly bill, and failures nobody planned for.
- **What should you watch after launch?** Quality on real cases, cost per task, speed, errors, and how often a person steps in.

## Likely follow-up questions

- Q391 After a month, how do you prove it's not just a demo? https://designervenkat.online/interview/ai/after-a-month-how-do-you-prove-it-s-not-just-a-demo
- Q387 How do you deal with messy customer data? https://designervenkat.online/interview/ai/how-do-you-deal-with-messy-customer-data
- Q386 How do you deploy into a customer VPC, on-prem or air-gapped environment? https://designervenkat.online/interview/ai/deploy-into-customer-vpc-on-prem-air-gapped
- Q388 How do you measure business impact and ROI? https://designervenkat.online/interview/ai/how-to-measure-ai-business-impact-and-roi
- Q390 "Your model hallucinates too much." What do you do in the first 48 hours? https://designervenkat.online/interview/ai/model-hallucinates-first-48-hours

## Learn it in depth

- [Production monitoring](https://designervenkat.online/learn/ai-engineering/production-monitoring)
- [LLM Evaluations](https://designervenkat.online/learn/ai-engineering/llm-evaluations)
- [Watching cost and speed](https://designervenkat.online/learn/ai-engineering/cost-latency-monitoring)
