SabaKore

Home / Articles / AI guides

Checking Whether AI Answers Are Correct with Your Own Data

How to check whether an AI's answers are correct using your own data instead of gut feeling. We also cover how to build a mechanism for checking quality continuously.

Ren, a junior infrastructure engineer

Ren

The AI's answers seem about right, but I can't be confident they're really correct...
Procura, a cloud AI robot who explains

Procura

Judging by 'about right' is risky. A mistake that's written plausibly is hard to notice just by reading it. It's reassuring to build a mechanism for checking correctness that fits your own use.

How to check with your own data

  • Prepare your own pairs of representative questions and correct answers
  • Have the AI answer the same questions and check how well they match the answers you prepared
  • When you find patterns of questions it tends to get wrong, add them to the list
Ren, a junior infrastructure engineer

Ren

Preparing correct answers for every question sounds like a lot of work...
Procura, a cloud AI robot who explains

Procura

You don't need all of them. Just preparing a handful of representative patterns is enough to be useful as material for comparison when you change the model or the prompt.

Why keep checking continuously

You can't check once and be done. Answer tendencies change when the model is updated or when you tweak the prompt a little. Treat the question list as an asset that you assume will be rerun with every change. If doing it by hand each time is too much work, it's also worth automating the check itself.

  • Recheck with the same question list every time you make a change
  • Compare against the state before the change to see whether results have gotten worse
  • Making the checking itself run automatically makes it easier to keep up
Procura, a cloud AI robot who explains

Procura

Think of this checklist as something you grow. As you keep using it, you'll find more things like 'it tends to get this kind of question wrong,' and if you add them each time, the precision of your checks keeps improving.
Ren, a junior infrastructure engineer

Ren

How do I check questions that don't have a single correct answer?
Procura, a cloud AI robot who explains

Procura

For those, check not whether it 'matches exactly' but whether it 'meets the conditions that must not be missed.' For a summary, for example, it's easier to check if you look at whether the elements that must be included are there.

What to do when you find a mistake

When you find an error during checking, it helps not only to fix it on the spot but also to record why it was wrong. The fix differs depending on the cause: the prompt was vaguely worded, the material you had it refer to was out of date, and so on. If the same kind of mistake keeps turning up, it's more efficient to review the prompt or the mechanism itself than to fix cases one by one.

  • Classify and record the errors you find by cause
  • If the same kind of mistake keeps repeating, review the mechanism itself
  • After fixing, recheck with the same questions before returning to operation
Procura, a cloud AI robot who explains

Procura

It may look like a lot of work, but if you set things up a little at the start, the peace of mind afterward is completely different. Try it as a first step toward graduating from 'it seems about right.'
Ren, a junior infrastructure engineer

Ren

So you compare against standards you built yourself, not gut feeling.

This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.