Deterministic rule
A deterministic rule is a fixed instruction that always produces the same result for the same input, with no judgement or chance involved.
What it means
"Reject any bill whose total does not equal the sum of its lines" is deterministic: run it a thousand times and the answer never varies. AI answers can vary between runs. For arithmetic, limits, approval thresholds and tax calculations, deterministic rules are preferred because they can be tested and audited. Many good systems combine both: AI reads the document, then rules check the figures it read.
Example
A cloth merchant's system adds up each purchase bill's line amounts. If the sum differs from the printed total by even ₹1, the bill is held for a clerk, whatever the reader reported.
Records and checks
- Record the rule wording, its owner and the date it took effect.
- Verify it with test inputs covering normal, edge and wrong cases.
- The accounts head approves changes, and an auditor can rerun tests.
Common mistakes
- Using an AI prompt where an exact rule would give a guaranteed answer.
- Writing rules that fail on legitimate cases such as rounding differences, then overriding them casually.
Did not find your answer?Message the lamp team on WhatsApp. Ask about setup, your records, or anything we have not covered here.Ask us on WhatsApp →