The short version
- Normal software follows rules and gives the same answer every time. An AI model predicts a likely answer, so it can differ from one run to the next.
- This is why AI can read messy language, and also why it can be wrong with full confidence.
- Use rules where the answer must always be the same. Use AI where judgment and language are needed, and check its work.
The idea
Traditional software is deterministic. A person writes the rules, and the same input always produces the same output. A tax calculation or a stock check works this way.
A language model is probabilistic. Nobody wrote its rules. It learned patterns from a very large amount of text, and for every request it estimates which words are most likely to come next. A setting called temperature controls how much it varies. A low value makes the answers steady, and a higher value makes them more varied.
Think of a train and a car. A train runs on fixed rails and always arrives at the same place. A car can go anywhere, but it needs a driver, a map and guardrails. Old software is the train. AI is the car.
- Input
- Fixed rules
- Same answer every time
- Input
- Learned patterns
- Most likely answer
This changes what “good” means. For rule-based software, good means correct, and one test can prove it. For a probabilistic system, good means right often enough, on the cases that matter, at a cost you accept. You measure it across many examples, the way you would judge a new employee across many tasks.
An example
A distributor receives purchase orders by email. Checking the price on an order is a rule: look up the contract and compare the numbers. That belongs in normal software. Reading a customer’s free-text note, such as “same as last time but ship half to the Dallas site”, needs language skill. That part suits a model. A good design uses each where it fits, and a person reviews the cases where the model is unsure.
Common mistakes
- Expecting the same answer twice, then losing trust when the answer differs.
- Testing an AI feature with three examples and calling it done.
- Using a model for arithmetic or lookups that a rule would do perfectly.
- Giving a model no way to say “I am not sure”.
What to do this week
- List the steps in one process. Mark each as “always the same answer” or “needs judgment”.
- For the judgment steps, write down what a wrong answer would cost.
- Ask your team how they measure quality today. If the answer is “we tried a few”, ask for a test set of at least 50 real cases.
The terms, in plain language
| Term | What it means |
|---|---|
| Deterministic | Same input, same output, every time |
| Probabilistic | The output is a best guess and can vary |
| Temperature | A setting that controls how much the answers vary |
| Hallucination | A confident answer that is false |
Further reading
- Chip Huyen, AI Engineering (O’Reilly, 2025)
Section 1.1 of the AI Engineering Guide · Last reviewed November 2026




