Grokking AI: 50 Questions Every Engineer Asks
0% completed
How Do I Test an LLM Feature When the Output Changes Every Run?
Short answer: Stop testing for one exact string, and test for properties over a set of cases. Collect real inputs, and define what a good answer must contain or satisfy. Score every output with code where possible and with a second model where needed. Track the percentage of outputs that pass (the pass rate) over time. Such a test set is called an eval.
Look at the two test cards under the answer. The answer is correct, but the test on the left fails, because it compares the exact words (the wording) and not the content.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%