Skip to content
mentoor

Testing non-deterministic outputs

For engineers

Tolerances, n-run sampling, seeds and flaky LLM tests in CI

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

A support bot gives two differently worded but correct answers to the same question at temperature 0.8. What is the most likely source?

Choose one answer

Check yourself · 2 of 5

Which test is the most robust way to check a summary of a news article?

Choose one answer

Check yourself · 3 of 5

A team sets temperature to 0 on a hosted API and sends the same prompt 30 times. What is a realistic outcome?

Choose one answer

Check yourself · 4 of 5

An LLM test fails about 1 time in 20 on an unchanged build. What is the best first step?

Choose one answer

Check yourself · 5 of 5

A test passes for a month and then fails with no code change. The suite calls a model alias that ends in "latest". What should you check first?

Choose one answer

Topics

  1. Why the same prompt gives different answers4 min read · Sampling, model updates and tool state as sources of variation in LLM features
  2. Testing with tolerances, not exact matches5 min read · Pass rates, thresholds and n-run sampling instead of a single golden output
  3. Seeds, temperature and what they do not fix5 min read · The limits of deterministic settings across providers and model versions
  4. Flaky LLM tests in CI5 min read · Quarantine, re-run policies and alerting rules that keep the pipeline trustworthy

Start here

110 questions · last verified 2026-12