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

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

This interactive level needs JavaScript. Built by (cybernerdie).