Course contents · Lesson 10 of 24

Rapid AI Prototyping: A Working Demo in Days

From Prototype to Production AI · Lesson 10 of 24 · 10 min Engineer

It is week 4 at Nimbus Assure, and Meera expects a demo at the week-5 gate. Production work runs to week 9, yet nobody knows whether an AI can read Nimbus's scanned claim forms at all. Finding out first is the job of rapid AI prototyping: building a rough, working version of an AI solution in days. This lesson covers what to build, what to fake and when to stop.

Cardboard before concrete: why prototype fast

As lesson 3 said, a prototype is a quick working version, built in days or weeks, to test the riskiest idea cheaply. The riskiest assumption, the belief that would sink the project if wrong, goes first, while being wrong is cheap.

AI work needs this more than most: no description tells you how well a model will read one customer's documents, and trying is quick, since a general-purpose LLM needs no training of your own. Rewording a prompt takes minutes; changing software already wired into the claims system takes weeks: cardboard against concrete.

Each prototype answers one question, written down before you build. Nimbus's comes from lesson 9: will a handler check an AI-drafted claim record faster than the 15 minutes re-typing takes? The flowchart is the loop that answers it.

Flowchart of four steps from top to bottom. 1, ask one question: the riskiest thing you don't know; for Nimbus, can checking a draft beat re-typing? 2, build the smallest prototype: past claims, one prompt, one page. 3, test it with real users: handlers check drafts, timed. 4, decide at the gate: what did the test show? Three exits fan out to the right. Yes: go, build it properly, with an eval set, guardrails and production. Unclear: not yet, change one thing, such as the prompt, the sample or the slice, and run the loop again from step 2. No: stop, a cheap no, a weak idea caught early. A note says to timebox the whole loop: for Nimbus, weeks 4 to 5, then the gate. Weeks are illustrative
Every exit is an answer: go, change one thing and loop, or stop cheaply.

The aha: every exit is a result. Stop is not failure; it catches a weak idea before production money is spent. The only bad loop is one that never decides.

Choosing the thinnest slice that proves value

A thin slice is one narrow path through the whole workflow, from the input to the person who uses the output, for a small set of cases. You build every step of that path roughly, rather than one step of every path well.

Why the whole path? Value appears only where a user meets the output. A spreadsheet of drafts shows how many fields the model got right, but not whether checking beats re-typing; only a handler, timed, shows that.

The Nimbus slice, from past claim to saved draft:

  • In: past emailed claims, an AI draft of each claim record, and a page where a handler checks it.
  • Left out: the live inbox, the claims system, logins, posted claims and reliability work such as retries.

Aim the slice at the riskiest cases, not the easy ones. Lesson 8's risk list warned that handwriting may be read badly, so the sample includes the 50 handwritten forms promised there. Neat typed claims alone would answer a question nobody was worried about.

Off-the-shelf models, prompts and sample data

An off-the-shelf model is a general-purpose LLM used as it comes, through its provider's API or a chat app, with no training of your own. Choose one that accepts images, since most Nimbus forms are scans or photos (lesson 7). Fine-tuning, further training a model on your own examples, can wait: Fine-Tuning vs RAG vs Prompting explains why prompting comes first.

The prompt is the instructions and text you send the model; in a prototype it holds most of the logic (see Prompt Engineering Basics). Nimbus's claim-summary prompt asks for a draft claim record in fixed fields and says what to do when a fact is missing:

You draft claim records for Nimbus Assure's claims handlers.
For each claim below, fill in exactly these fields:

Policy number:
Claimant name:
Date of loss (the day it happened):
Claim type (motor, home or travel):
What happened (one sentence):
Amount claimed:
Missing or unclear:

Rules:
- Use only facts written in the claim. Never guess.
- If a fact is not in the claim, write MISSING.
- If two parts of the claim disagree, give both and
  explain the clash under "Missing or unclear".

The rules matter more than the fields. "Write MISSING" gives the model an honest answer when a fact isn't there, so a handler sees a gap, not a confident guess that looks right. In code you would request these fields as structured JSON output.

Sample data is a small set of real past examples: here, past emailed claims and the records handlers typed from them, checked by Lin's team, as right answers. Remove or replace personal details first, as lesson 3 said, and get Nimbus's written approval before sending any claim to a model provider, or run a model locally if nothing may leave Nimbus.

The sketch puts the parts together, joined by a short script.

Architecture sketch of the Nimbus prototype. Inside a frame labelled the prototype, four parts run left to right: sample claims, past emails and PDFs with personal data removed; an off-the-shelf LLM, no training needed, reading scanned forms, marked kept real, the part under test; a review page with the scan beside the draft, where a handler fixes and saves it; and a results sheet of fields fixed per claim and seconds per check. The claim-summary prompt, with fields and rules, feeds the LLM, and Lin's handlers check every draft on the review page. Below the frame, three real systems not connected yet are drawn dashed in amber, each linked to its stand-in: the live claims inbox, replaced by the sample claims; staff logins, none yet, a local page only; and the claims system, replaced by the results sheet
The model reading real claims is real; every dashed part is a labelled stand-in.

The aha: all three dashed systems are stand-ins, but the model reading real claims is real, because that is what the prototype tests.

Faking what isn't ready yet, honestly

A stand-in, often called a stub, is a simple substitute for a part that isn't ready, behaving just enough like it for the test. Live claims wait for security approval in week 8, so a folder of past claims stands in for the inbox, and a results sheet for the claims system.

The rule: fake the plumbing, never the part under test. A stand-in inbox doesn't change whether handlers check drafts faster; hand-picking claims that work, or quietly fixing bad drafts, does, and the gate would approve on false evidence.

Honest faking means everyone who judges the prototype knows what is fake. Keep a fakes list, one line per stand-in: what is faked, what the real version needs, and who delivers it by when. For example: "Claims system: drafts go to a sheet; the real link needs IT's API and security approval, week 8."

The list keeps a good demo from sounding finished and becomes production's to-do list; showing it to stakeholders comes in lesson 11.

When to stop prototyping

Stop when the question is answered, and set a deadline so that it is. A timebox is a fixed length of time agreed in advance; when it ends, you decide with what you have. Nimbus's prototype has weeks 4 and 5, ending at the week-5 gate.

At the gate you show lesson 9's model metrics, field accuracy and seconds per draft, beside the handlers' timed checks and every failure. Meera decides: go, not yet or stop. If handwriting fails, lesson 8's risk plan already says what changes: handwritten claims leave the scope.

Two signs say you have gone past prototyping. The first is building production parts, such as retries, logins or the real claims-system link: concrete work with its own plan, covered in lesson 13.

The second is tuning the prompt claim by claim, by eye, as each fix breaks another draft. Measuring changes across many examples at once is the job of lesson 3's eval set, real examples with expected answers, built in lesson 12.

Check yourself

In week 4, IT offers to connect the prototype to the live claims system, which would take most of a week. Should you accept?

No. The link doesn't help answer whether checking drafts beats re-typing, it eats half the timebox, and live claims must wait for security approval anyway. Keep the stand-in and put the link on the fakes list.

Ten of the 50 handwritten drafts are poor, so you fix them by hand before the demo. What have you done?

Faked the part under test. Handwriting was the riskiest question, so those ten failures are the prototype's key result; hiding them lets the gate approve on false evidence.

Each prompt change fixes one claim's draft and breaks another. Should you keep tuning?

No: tuning by eye, one claim at a time, has reached its limit. Take the evidence to the gate, and measure later changes across many examples with an eval set.

Go deeper