Module 6 · Models, prompting and context · Chapter 19 · Free
Pick the model: capability, cost and context in one decision
- Model choice is an architecture decision, made on your own eval set, not on launch posts.
- Four measures decide it: golden-set capability, cost per resolved thread, latency, context fit.
- Tier the work: routine drafts on the smaller configuration, hard work escalated to the larger one.
The picture: choosing vehicles for a delivery fleet, not buying the fastest truck for every parcel.
Models, Prompting and Context is 13 percent of the CCAR-P exam. You should be able to:
- Compare candidate configurations on a golden eval set, not on published claims.
- Build cost per draft and cost per resolved thread from per-call prices.
- Design tiering and escalation rules that hold a cost target.
- Record the decision and set a trigger for re-running it when versions change.
- Blended cost jumps from a designed $0.08 to $0.14 per draft, against the $0.09 target Elena agreed.
- At 18,000 messages a month, that gap is about $1,080 a month, with no measured quality gain.
- Nobody can say whether drafts got better, because the golden set was never run on the new configuration.
- Measure capability on your own golden set.
- Price the decision: cost per draft and per resolved thread.
- Tier the work and escalate by confidence.
- 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:
- Acceptance: the share of drafts nurses accept with no or minor edits. Target: 70 percent.
- Unsafe rate: drafts that would have misled or harmed if sent. Ceiling: under 0.5 percent, and a nurse approves every send, so none reaches a patient.
- Split by difficulty: a configuration can win on routine threads and lose on tangled ones. Read the split, not just the average.
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.
- One of 18,000 pilot messages a month lands in the portal.
- Routine, needs judgment, or clinical. Clinical work escalates to a clinician, as always.
- Routine drafts start cheap. A nurse still reviews every one.
- Low confidence, missing facts or a tangled thread: the draft is not trusted yet.
- 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:
- Re-run on version change: any candidate configuration changes version, the golden set runs again before traffic moves.
- Re-run on drift: production acceptance or unsafe rate moves outside its band, as chapter 14's monitoring would catch.
- Re-run on mix change: the routine share moves enough to change the blend, as the predict above showed.
- Never swap silently: a version change is a release, gated like any other, not a config tweak on a quiet afternoon.
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
- "The top benchmark model is the right model." Benchmarks shortlist. Your golden set decides.
- "Cheapest per call is cheapest overall." Rewrites cost nurse time. Judge cost per resolved thread.
- "One configuration for everything is simpler." Simpler to describe, and it either overspends on routine work or underpowers hard work.
- "We picked a model last quarter, that is settled." Versions change. The record needs a re-evaluation trigger.
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.
- Decide on your set: 400 golden threads, acceptance 70 percent, unsafe under 0.5 percent.
- Tier: routine on the smaller configuration, hard or low-confidence escalated to the larger one.
- Blend: 9,900 x $0.03 + 8,100 x $0.14 = $1,431, about $0.08 per draft, under the $0.09 target. Prices made up.
- Judge: cost per resolved thread, not cost per draft alone.
- Expire: re-run the record on version change, drift or mix change.
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".