AI and LLMs · Junior · Question 35 of 75
Which check is reliable for an LLM that must return a category from a fixed list?
- 1Assert the output is exactly one of the allowed values
- 2Assert the output is longer than ten characters
- 3Assert the output matches one example answer word for word
Show the answer
Correct answer: Assert the output is exactly one of the allowed values
Explanation
Classification tasks have clear right answers, so accuracy against labelled examples works well.