DefinitionAI evals (evaluations) are repeatable tests that check whether an AI feature, such as a chatbot, assistant or agent, does its job well. Each test gives the system a realistic input and checks the output against agreed criteria, automatically or by a person. Evals are run before launch and again after every change of model, instructions or data.
Why does AI need its own kind of testing?
Ordinary software gives the same output for the same input, so a test passes or fails. A language model can answer the same question differently each time, and a change of model, instructions or documents can quietly make some answers worse. Evals turn “it seems fine” into something you can check again and again.
How does an eval work?
- Tasks. A set of realistic inputs: questions customers actually ask, documents the system has to read, steps an agent has to complete.
- Criteria. What a good result looks like for each task: the right fact, the right tone, the right action, nothing invented.
- Grading. Anthropic’s guide describes three kinds of grader: code that checks the result exactly, another model that scores it against a rubric, and a person who reviews it.
- Repeating. The same set runs after every change, so you can see whether things got better or worse.
Where do the test cases come from?
From real use. A good start is a small set built from questions that already caused trouble and from the checks people do by hand today. Every new mistake reported by a customer or an employee becomes another test case, so it cannot quietly come back.
What to ask a vendor or developer
- How do you test the answers before launch, and on what kind of questions?
- What happens when the model changes: do the tests run again before the switch?
- Can we add our own test cases, for example from questions that went wrong?
- Who reviews the results that cannot be checked automatically?
How a chatbot for a business website is set up and kept accurate is covered in the article on an AI chatbot for your website.
Frequently asked questions
Are evals only for large companies?
No. Even a small business with a chatbot can keep a list of typical questions with the expected answers and run it after every change. The scale grows with the risk of the feature.
Can AI grade AI?
Partly. A model can score answers against a clear rubric, which is fast and cheap, but its grading should be checked against a person’s judgement from time to time, especially for important cases.
See also
Sources