AISim › Chapter 4: Running it for real
Finance wants a word
Chapter 4 boss. The bill is huge, legal is nervous, and the night jobs are eating the day.
Your claims platform works, and it costs a fortune. Every call carries a long policy prompt, half the traffic is overnight classification nobody waits for, customers paste medical details, and the house labelling style is something the base model keeps getting wrong. Finance, legal and support all want it fixed this quarter.
Goals
- cost per 1,000 requests at most $1.5
- personal data leaked at most 2%
- error rate at most 1%
- accuracy at least 80%
Concepts: Prompt caching, Batch jobs, Fine-tuning, Privacy.
Hint
Where does each dollar go? The same long prompt every call, real-time prices for work nobody waits on, and a big model doing a narrow job.
What you learn
Most of an AI bill is waste you can see: the same tokens resent, urgent prices for patient work, and a general model for a narrow task. Cache it, batch it, specialise it, and strip personal data before any of it leaves.
More in this chapter
- The 20-page system prompt (Level 16)
- The nightly job ate the day (Level 17)
- Fine-tune it? (Level 18)
- Nothing changed. Everything broke. (Level 19)
- Compliance is calling (Level 20)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).