Deployed Lab

Module 6 · Models, prompting and context · Chapter 19 · Free

Pick the model: capability, cost and context in one decision

16 min1 clickable picture1 matching exercise1 predict, 2 quick quizzes, final quiz5-min video review
In 30 seconds

The picture: choosing vehicles for a delivery fleet, not buying the fastest truck for every parcel.

Exam objective: Models, Prompting and Context

Models, Prompting and Context is 13 percent of the CCAR-P exam. You should be able to:

The problem Northgate Health is made up, and so are these figures. Relay's pilot runs at 2 clinics, 18,000 portal messages a month. A launch post persuades the team to switch every draft to the newest, largest configuration: Ruth's verdict: the team bought a headline, not a decision.
The plan for this chapter
  1. Measure capability on your own golden set.
  2. Price the decision: cost per draft and per resolved thread.
  3. Tier the work and escalate by confidence.
  4. The lab: write the model selection record.

Next: why your own cases beat anyone's launch post.

Step 1: Capability is what your golden set says it is

Think of hiring: a glossy CV is a claim, a trial shift on your own ward is evidence. A model launch post is the CV. Your golden set is the trial shift.

Chapter 11, "Build the eval set: golden cases from real work, not guesses", gave Relay a golden set of 400 real, de-identified message threads. That set is where capability gets measured:

Published benchmarks still help you shortlist candidates. They cannot rank them on Northgate's messages, in Northgate's tone, against Northgate's rules. Foundations built the underlying skill in explicit criteria and few-shot examples: state what good means before you judge output. The AI engineering course covers the serving side in model selection and serving.

One caution: exact model names, sizes and prices change between versions. Treat every such detail as version-dependent: check the current docs before you commit a design to it.

Next: the routing picture, from message to draft.

Step 2: Tier the work, escalate the hard minority

Press Next to walk a message through the tiers.

How Relay routes a message to a tier A message is classified. Routine work goes to the smaller configuration for a draft. A confidence check either accepts the draft for nurse review or escalates it to the larger configuration, whose draft also goes to nurse review. Messageportal thread Classifyroutine or hard Small configdrafts routine Confidencecheck the draft Nurse reviewhuman sends Larger configurationhard or low-confidence work, redrafted
  1. One of 18,000 pilot messages a month lands in the portal.
  2. Routine, needs judgment, or clinical. Clinical work escalates to a clinician, as always.
  3. Routine drafts start cheap. A nurse still reviews every one.
  4. Low confidence, missing facts or a tangled thread: the draft is not trusted yet.
  5. Escalated work is redrafted on the larger configuration. Confident drafts go straight to nurse review.

Tiering is not two systems. It is one system with a routing rule, a confidence check and an escalation path. The mix does the saving: Northgate's audit says about 55 percent of messages are routine, 30 percent need a nurse's judgment and 15 percent are clinical or urgent.

Context needs belong in the same decision. A configuration that cannot hold a long thread plus the patient summary forces truncation, and truncation quietly deletes facts. Check the longest real threads from the golden set, not the average one.

Latency too: chapter 9, "Design for cost and latency: set the budgets before the features", set the end to end budget. A slower configuration that eats the budget on routine work leaves nothing for the EHR calls that dominate the path.

Next: the arithmetic that settles the argument.

Step 3: Price it per draft, then per resolved thread

Worked example. Tiering arithmetic at pilot volume. All per-call costs are made up.

Volume: 18,000 messages a month. Routine share: 55 percent, so 18,000 x 0.55 = 9,900 routine messages. The rest: 18,000 minus 9,900 = 8,100 messages.

Small configuration: a made-up $0.03 per draft. Routine cost: 9,900 x $0.03 = $297.00.

Larger configuration: a made-up $0.14 per draft. Hard-share cost: 8,100 x $0.14 = $1,134.00.

Tiered total: $297.00 + $1,134.00 = $1,431.00. Blended cost per draft: $1,431.00 / 18,000 = $0.0795, about $0.08.

Everything on the larger configuration: 18,000 x $0.14 = $2,520.00, which is $0.14 per draft.

Check against the target: $0.0795 is under the $0.09 ceiling, with about $0.01 of headroom. The all-large design misses the target by $0.05 per draft, about $900 a month at pilot volume.

Monthly saving from tiering: $2,520.00 minus $1,431.00 = $1,089.00.

Cost per draft is only half the story. The steering group reviews cost per resolved thread: total spend divided by threads actually resolved. A cheap configuration that nurses rewrite from scratch resolves nothing, so its cost per resolved thread is worse than a pricier one whose drafts get accepted. That is why capability and cost sit in one decision, never in separate meetings.

New blend: 0.70 x $0.03 + 0.30 x $0.14 = $0.021 + $0.042 = $0.063. Mix, not volume, moves the blend.

Next: when to re-run the whole decision.

Step 4: Versions change, so the decision expires

A model selection is a snapshot. Configurations are revised, prices move and behaviour shifts between versions, sometimes on the same task in opposite directions. So the record carries an expiry rule:

Next: the lab, where the decision becomes a record.

Hands-on lab: the model selection record

Part A: build it locally

Do this: copy this record, fill it from a golden-set run, and keep it with the engagement artifacts. Figures below are made up, from a sample run.

Lab: Relay's pilot drafts replies to portal messages at Northgate Health. This lab runs in your browser and needs JavaScript enabled.

What to notice. The smaller configuration wins its tier honestly: 74 percent on routine threads is above target, and its weak 51 percent on hard threads is exactly why escalation exists.

Part B: match the task to the tier

Do this: click a task, then its tier. Wrong picks show a hint.

Mix-ups to avoid

Field note, November 2026

Production teams routinely find their own eval rankings differ from public leaderboards, because real traffic mixes easy and hard cases in proportions no benchmark copies. Treat that as practitioner experience, not a statistic: run your own set and keep the record.

Chapter quiz

Five questions in the exam's style. Score 70% or more to finish.

Review this chapter in 5 minutes

Watch the whole chapter recapped: Golden-set capability, tiering and escalation, cost per resolved thread, and a model record that expires on purpose.

Decision rule: no configuration earns traffic until it clears acceptance and unsafe gates on your golden set, inside the cost target.

Independent exam preparation. Not affiliated with or endorsed by Anthropic.

Review

Glossary

Tiering
Routing work to configurations by difficulty. Example: routine drafts go small, hard ones escalate.
Blended cost per draft
Total drafting spend divided by all drafts, across tiers. Example: $0.0795 at the pilot mix.
Cost per resolved thread
Total spend divided by threads actually resolved. The steering group's monthly metric.
Golden set
Fixed real cases used to score changes. Example: Relay's 400 de-identified threads.
Escalation
Moving work to a stronger configuration or a human. Example: low-confidence drafts go large.
Re-evaluation trigger
A named event that forces the model decision to be re-run. Example: a version change.

Next: "Prompts as contracts: versioning, testing and change control".