AI and LLMs · Middle · Question 31 of 75

Why is snapshot testing of exact LLM outputs usually a poor fit?

Show the answer

Correct answer: Outputs change slightly between runs, causing noisy failures

Explanation

Check properties, schemas or judged criteria instead. Exact snapshots can work for deterministic code around the model.

Further reading

Problem with a question

AI and LLMs · Middle · question 31

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz