From Deterministic Assertions to Semantic Evaluation for LLMs
Traditional software testing relies on deterministic assertions such as string or JSON matching to verify expected outcomes. This approach is effective for predictable software components, ensuring exact matches for predefined conditions. However, Large Language Models (LLMs) break this traditional model due to their non-deterministic nature and susceptibility to hallucinations, rendering exact string matching ineffective for quality verification.
Monika Sharma highlighted this shift, stating, "Traditionally u we how we used to test is we usually rely on deterministic assertions like uh for example string assertions or JSON assertions... but LLM breaks this model many teams report hallucinations issues outputs are nondeterministic in nature."


