AISim › Chapter 5: Advanced
Same question, different answers
Level 23. Upload the same invoice twice, get two different totals.
Your accounting tool reads invoices and returns the total, VAT and due date as JSON. Customers have noticed that uploading the same invoice twice can give two different totals. It also writes the odd product description. Someone suggests a bigger model.
Goals
- accuracy at least 88%
- error rate at most 2%
- cost per 1,000 requests at most $6
Concepts: Temperature, Sampling, Determinism.
Hint
Open the LLM settings. One of them decides how adventurously the model picks each word. What should it be for a task with exactly one right answer?
What you learn
Temperature controls randomness, not intelligence. For extraction, classification and anything with one right answer, run near 0 so the same input gives the same output. Keep some temperature for writing where variety helps. A bigger model doesn't fix sampling; it just costs more.
More in this chapter
- The walkie-talkie (Level 21)
- One user, half your bill (Level 22)
- The evals say it's fine (Level 24)
- The email that hijacked the agent (Level 25)
- The agent goes public (Chapter 5 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).