AISim › Chapter 4: Running it for real
Compliance is calling
Level 20. Half your prompts contain someone's medical history.
Your insurance assistant works well, and every claim question that customers paste in (names, policy numbers, diagnoses) goes straight to a third-party model provider. The compliance team has found out. They want personal data to stop leaving your systems without killing the product.
Goals
- error rate at most 2%
- personal data leaked at most 2%
- accuracy at least 74%
- cost per 1,000 requests at most $12
Concepts: Privacy, PII redaction, Compliance.
Hint
Personal data can be stripped before it leaves, or the model can run somewhere data never leaves. What does each cost you?
What you learn
Anything in a prompt is data you're sending to whoever runs the model. Redact personal details before they leave (swap them for placeholders and put them back in the answer), or keep sensitive traffic on models you host yourself. Detection is never perfect, so combine it with provider agreements, retention settings and data minimisation.
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)
- Finance wants a word (Chapter 4 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).