AI Adoption & Operations

Moving an AI Pilot into Production: Test Suite, Monitoring and a Staged Rollout

Marin Niehues3 December 202613 min read

Laptop showing a developer interface with charts

An AI pilot is ready to move into production once three things are in place that a proof of concept never needs: a test suite that every change to the model, instructions or data sources has to pass, monitoring of answer quality during operation, and a rollout in stages in which thresholds agreed in advance release the next step. The organizational decisions that come first (an owner, a budget and a metric with a baseline) are covered in From Pilot to Scale: Embedding AI in Day-to-Day Operations. This article deals with the operational side: how an AI application is accepted, observed and released step by step.

Production needs the system around the model

A proof of concept answers a narrow question: can the model handle the task well enough on selected examples? Access to the model, a handful of documents and a team that checks the output by hand are enough for that answer. In production the application works with data nobody has seen before, for users the project team has never met, on a model its vendor keeps changing.

In 2015 a group of Google engineers described how small the share of actual model code is in a machine learning system running in production. Their figure shows the model code as a small black box surrounded by configuration, data collection, data verification, serving infrastructure and monitoring, and the caption calls that surrounding infrastructure “vast and complex” (Sculley et al., NeurIPS 2015, p. 4). Generative AI follows the same pattern. The model comes with instructions and templates, a connection to the company's documents, access rights, logs and a check of the answers. A proof of concept builds only the bare minimum of this, often as a makeshift.

In July 2024 Gartner predicted that by the end of 2025 at least 30 percent of generative AI projects would be abandoned after the proof of concept. The firm cited poor data quality, inadequate risk controls, escalating costs and unclear business value. Two of those four reasons sit on the operational side. Risk controls exist only once someone has defined how a wrong answer gets detected, and costs become visible only at full usage. The organizational break points are covered in Why AI Pilots Fail to Reach Operations.

The test suite is the acceptance test for every change

A test suite is a collection of typical cases from the actual workflow, each with a record from the business unit of what a good answer looks like. For a customer service assistant these are real inquiries with the correct information, for invoice checking they are real invoices with the correct result. The suite covers frequent cases, difficult edge cases and the cases where the application should decline to answer or hand over to a person. It is built from the pilot's logs and from the errors users reported during the pilot.

Before the first release, the business unit sets the share of cases that must pass and names the cases that may never fail. A wrong notice period in a customer reply weighs more than an awkward phrase, so it gets its own, stricter threshold. This is a business decision. IT cannot make it on the business unit's behalf.

The suite is needed because model behavior changes even when the name stays the same. Researchers at Stanford University and the University of California, Berkeley gave GPT-4 the same tasks in March and in June 2023. When asked whether a number is prime, its accuracy dropped from 84 to 51 percent within those three months (Chen, Zaharia, Zou, arXiv:2307.09009). Anyone running an application on such a service needs a way to notice changes like this before users do.

Exhibit 1

GPT-4 answered the same test task correctly far less often in June 2023 than in March

GPT-4 answered the same test task correctly far less often in June 2023 than in MarchGPT-4 answered the same test task correctly far less often in June 2023 than in March. Column chart. 2 values. Highest: March 2023 (84%). Lowest: June 2023 (51%).84%51%March 2023June 2023GPT-4 answered the same test task correctly far less often in June 2023 than in MarchGPT-4 answered the same test task correctly far less often in June 2023 than in March. Column chart. 2 values. Highest: March 2023 (84%). Lowest: June 2023 (51%).84%51%March 2023June 2023
Source: Chen, Zaharia, Zou: How Is ChatGPT's Behavior Changing over Time?, arXiv:2307.09009, 2023; accuracy on identifying whether a number is prime
Data and download
Download
Data as table
LabelValue
March 202384%
June 202351%

Chart: Niehues Consulting, CC BY 4.0. Data: Chen, Zaharia, Zou: How Is ChatGPT's Behavior Changing over Time?, arXiv:2307.09009, 2023; the source's terms apply.

Every change therefore runs through the suite before release: a new model version, revised instructions, new documents in the knowledge base or a switch of vendor. If the result falls below the threshold, the previous version stays in production. Software teams call this regression testing. For AI applications it is the acceptance step a proof of concept never had to pass, because it only ever knew a single version.

Monitoring measures the quality of the answers

Traditional IT operations monitor availability, response time and error messages. An AI application can meet all three and still give wrong information. Sculley and his colleagues note that unit tests and end-to-end tests are not sufficient in a changing world and that system behavior has to be monitored live (p. 7). The NIST AI Risk Management Framework asks in MEASURE 2.4 that the functionality and behavior of an AI system be monitored in production, and in MANAGE 4.1 for a monitoring plan after deployment.

For executives this means monitoring needs metrics the business unit understands and a fixed rhythm in which someone reads them.

Each metric gets an intervention limit. If the correction rate rises above the agreed value or the sample drops below the threshold of the test suite, the technical operations team reviews the latest changes and the business owner decides how to proceed. A wrong answer with consequences for customers or money is handled as an incident, with a reporting path, a root cause analysis and a new case in the test suite. MANAGE 4.3 in the NIST framework describes this step: incidents and errors are communicated to the relevant parties.

The rollout runs in three stages with thresholds

A rollout in a single step exposes all users at once to an application whose behavior under full load nobody has measured. We recommend three stages. Each stage has a threshold that releases the move to the next one and a way back if the threshold is missed.

Shadow mode costs little because nobody changes how they work. It delivers the first comparison with real data at full volume. In supervised operation users get to know the application, and the business unit sees where its people correct it. Effort per case only drops in regular operation. Case groups are released one by one, so simple standard requests can run in regular operation while special cases stay supervised.

The way back is written down before the start. The previous workflow remains usable until the application has reached regular operation in every planned case group, and a documented switch lets operations move individual case groups back to the previous stage. Business unit and operations assess together which risks each stage carries and how likely they are, for instance with a risk matrix. GOVERN 1.7 in the NIST framework calls for processes to decommission AI systems safely, and the way back is the first step toward that.

Who decides on changes in production

During the pilot, the project team changes instructions and model at its own discretion. In production every change needs an approval, and the roles for it are set before the rollout. The business owner is accountable for the test suite, the thresholds and the release of case groups. Technical operations is accountable for versions, monitoring and the way back. A person from the business unit rates the weekly sample. A RACI matrix, in which every task has exactly one accountable role, puts these responsibilities on one page.

The vendor's model version needs particular attention. Vendors of language models retire older versions after an announced period, and the successor behaves differently. Technical operations therefore follows the vendors' announcements, runs the new version through the test suite in good time and presents the result to the business owner for approval. Without this routine the application changes its behavior on a date the vendor chooses.

Operating costs belong in the same discussion. Usage fees rise with every user and every case group that moves into regular operation. How costs and risk fit into a decision paper with staged funding is described in AI Business Case for the Decision: Pricing in Risk, Staging Funding, Reviewing Results.

What executives require before approving the rollout

Before approval, executives ask six questions, each answered with a document or a number.

If an answer is missing, the application is still a pilot, even if it runs technically. The missing answer becomes the next work package with a date and an owner.

Niehues Consulting takes AI from pilot into production

At Niehues Consulting moving an application into production is part of AI management, together with business analysis, the business case and the steering of the AI portfolio. In the Delivery Model we use the Understand phase to define with you what a good answer looks like and which metrics measure success. In the Build phase, the test suite, monitoring and stage plan are built on your use case. In the Introduce phase, we take the application into daily work with your teams, one stage at a time. How this step fits into the overall rollout of AI is shown in the guide AI Implementation: From Prototype to Production. For a free introductory call, you choose a time slot, we call you and clarify where you stand and which next step will pay off for you.

Frequently asked questions

How do you move an AI pilot into production?

You build three things the pilot did not have: a test suite of real cases with thresholds, monitoring of answer quality and a staged rollout plan with a way back. You also decide who approves changes to the model and its instructions. Only then does the application go out to all users, step by step.

What is missing between proof of concept and rollout?

The operational side is missing. A proof of concept tests a single version on selected examples. Production needs an acceptance test for every change, continuous measurement of quality, clear responsibilities and a way back if quality drops.

What is a test suite for AI applications?

A test suite is a collection of typical and difficult cases from the real workflow, with a record from the business unit of what a good answer looks like. Every new model version and every revised instruction runs against it before release. If the result falls below the threshold, the previous version stays in production.

Why does an AI application need monitoring after go-live?

Model behavior and user input both change over time. In a study by Stanford University and UC Berkeley, GPT-4's accuracy on one test task fell from 84 to 51 percent between March and June 2023. Availability and response time do not reveal changes like this, while a sample of the answers does.

Which metrics belong in the monitoring of an AI application?

Monitoring covers quality in a weekly sample, the users' correction rate, the share of handovers to people, usage, cost per case and reported errors. Each metric gets an intervention limit and a named owner.

What is shadow mode in AI?

In shadow mode the AI application processes real cases in parallel with the existing workflow, but its output is not used. The business unit compares it with the decisions of its staff. This produces evidence of quality on real data without any change for customers.

Who is responsible for an AI application in production?

The business owner in the business unit is accountable for the test suite, the thresholds and the release of new case groups. Technical operations is accountable for versions, monitoring and the way back. Both roles are filled by name before the rollout, each with a deputy.

How long does a staged rollout of an AI application take?

The duration follows the thresholds. Each stage lasts until the agreed values have held for several weeks. Simple case groups reach regular operation sooner, while special cases stay in supervised operation longer.

Part of the guide: AI Implementation: From Prototype to Operations, the Guide for Decision-Makers

Let’s talk about your initiative.

In 30 minutes we clarify where AI creates value for you and which step will pay off most now.

Request a consultation

30 minutes · free · no obligation