Quick interview answer
Keep deterministic assertions for software contracts and use repeated, rubric-based evaluations for variable model behavior.
Detailed explanation
Conventional components usually have stable expected outputs for controlled inputs. LLM outputs can vary while remaining valid, so test factuality, task completion, safety, and format separately. Exact matches remain appropriate for schemas, authorization decisions, and explicitly constrained outputs. Use representative evaluation sets and human review for ambiguous or high-impact judgments.
Real-world example
For a support assistant, assert the response schema exactly but evaluate answer correctness against approved support documentation.
Interview tip
Separate failures in the application pipeline from failures in model behavior before choosing an assertion strategy.