AI Hints
Home›Generative AI Tutorial›Trust, Verify and Use AI Well
Generative AI · Lesson 27 of 77

Evaluating Outputs

Judging AI answers fairly.

⏱ 2 min read▶ Video at 1:04:56🎓 Free
Watch this lesson in the Generative AI courseWatch on YouTube ↗Full Generative AI course

How do you know if an answer is good? Or if one model is better than another? Gut feeling is not enough. In this lesson, you will learn a simple scorecard for judging answers, and how professionals test A I systems.

Evaluating Outputs
From the video: Evaluating Outputs
  • Good answer, or just fluent?
  • A simple scorecard
  • How professionals test

A simple answer scorecard

Here is a scorecard you can use for any answer. Is it accurate, are the facts right? Is it complete, does it cover what I asked? Is it relevant, does it stay on topic? Is it clear, easy to understand? And is it safe, free from harmful or private content? Score each from one to five, and you will quickly see where an answer falls short.

CriterionThe question to ask
Accurateare the facts right?
Completedoes it cover everything I asked?
Relevantdoes it stay on topic?
Clearis it easy to understand?
Safeis it free of harmful or private content?

Testing an A I system properly

If you build something with A I, test it properly. First, collect a set of real example questions, with good answers. This is your test set. Second, run every question through your system. Third, score the answers, with the scorecard, or with another model acting as a judge. Fourth, change something, a prompt, or a model, and run the test again. Now you can see, with numbers, whether you improved things.

  1. Collect test questionswith known good answers
  2. Run them allthrough your system
  3. Score the answersscorecard or a judge model
  4. Change and compareimprove with evidence
Measure, do not guess
Testing an A I system properly
From the video: Testing an A I system properly

About benchmarks

You will often see benchmarks, public tests, where models compete. They are useful, but take them with care. Models may be trained on the test questions. A benchmark may measure something different from your task. And small differences in scores often do not matter in real life. The best test is always your own examples, from your own work.

Public testscompare models on shared questions
Beware of leakstest data may be in the training set
Different from your taska high score may not fit your needs
Your own examplesthe test that matters most

Summary

Good. Use a scorecard, accurate, complete, relevant, clear, and safe. Test systems with a set of real questions, and compare changes with numbers. Treat public benchmarks with care, and trust your own examples. Next, let's put this to work, with everyday uses of generative A I.

Key takeaways
  • Scorecard: accurate, complete, relevant, clear, safe
  • Test with your own real examples
  • Benchmarks are a guide, not the truth
Next up: AI in Everyday Life — writing, learning and planning