AI test tool
AI Output Benchmark
Compare two sets of structured AI answers against expected JSON and an optional schema, case by case.
Tool area
Everything runs in the browser.
Reference results
{
"type": "object",
"properties": {
"seats": {
"type": "integer"
}
},
"required": [
"seats"
]
}| Input | Result |
|---|---|
{"id":"R1","expected":{"seats":2},"actual_a":{"seats":2},"actual_b":{"seats":2}} | A · 1/1 exact · 1/1 schema-valid
B · 1/1 exact · 1/1 schema-valid |
{"id":"R2","expected":{"seats":6},"actual_a":{"seats":5},"actual_b":{"seats":6}} | A · 0/1 exact · 1/1 schema-valid
B · 1/1 exact · 1/1 schema-valid |
{"id":"R3","expected":{"seats":6},"actual_a":{"seats":"6"},"actual_b":{"seats":6}} | A · 0/1 exact · 0/1 schema-valid
B · 1/1 exact · 1/1 schema-valid |
{"id":"R4","expected":{"seats":12},"actual_a":{"seats":12},"actual_b":{}} | A · 1/1 exact · 1/1 schema-valid
B · 0/1 exact · 0/1 schema-valid |
{"id":"R5","expected":{"seats":8},"actual_a":{"seats":7},"actual_b":{"seats":9}} | A · 0/1 exact · 1/1 schema-valid
B · 0/1 exact · 1/1 schema-valid |
{"id":"R6","expected":{"seats":4},"actual_a":{"seats":4}} | A · 1/1 exact · 1/1 schema-valid
B · 0/0 exact · 0/0 schema-valid |
How it works
Enter one JSON test case per line with an expected value and at least one actual value. Exact comparison disregards object key order but preserves array order. An optional schema gives a separate count of structural passes. The evaluation runs on supplied outputs without making model calls.
Worked examples
- An editor compares two date extraction prompts and decides which failing cases to add to a review.
- A catalogue maintainer checks whether a revision changes item order before updating an import.
- A librarian spots a schema-valid but wrong date and checks the source record before correcting the benchmark.
Common mistakes
- Evaluating two versions on different case sets.
- Equating a schema pass with a correct answer.
- Adding private records to shared evaluation fixtures.
FAQ
What does the denominator represent?
It is the count of cases with an actual output for that version.
How do I handle a missing answer?
Track missing answers explicitly and review version denominators before comparing rates.
Does the order of keys matter?
Object key order is disregarded. Array element order is significant.
