How does testing an AI system differ from testing deterministic software?
Answer
Deterministic rules often support exact expected results for a defined input. AI behavior also depends on data, model, prompt, retrieval and sampling, so evaluation uses representative datasets, task rubrics, statistical thresholds and reviewed failure slices. Deterministic system invariants such as authorization, privacy and tool limits still require exact tests.
Strong answer includes
- uses datasets and statistical evidence
- separates model behavior from system invariants
- segments failures instead of relying on averages
Practical example
For a support chatbot, the team can't write a single exact-match test for 'how do I reset my password' because the model phrases answers differently each run. Instead they run 200 representative user questions against a rubric scored by a judge model, requiring 95 percent to mention the correct reset URL, and they track accuracy separately for non-English speakers after noticing it dropped to 80 percent for Spanish queries. Meanwhile a completely deterministic test still checks that the bot never calls the refund-processing tool without an authenticated session, regardless of what the model says.