SpinTheMic
Pro

Interview practice question

Testing features that use non-deterministic AI outputs

Backend Engineering · Testing · Experienced

Your backend calls a large language model to summarise support tickets. How do you test something whose output changes every time?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Test deterministic parts normally (prompting, parsing, fallbacks).
  • Mock model in unit tests.
  • Evaluation sets with graded criteria.
  • Assertions on structure, not exact text.
  • Monitor quality in production.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics