Determining If AI Is Actually Good

Objective

After completing this lesson, you will be able to explain why AI quality should be evaluated against expected outcomes and relevant metrics, rather than judged only by how convincing a response appears.

Determining If AI Is Actually Good

Two answers. Both sound good.

Imagine you are testing an AI assistant for customer service. A customer service representative asks: "Why was this customer’s delivery delayed, and what should I tell them now?".

You run the same request through two different models. The first produces a polished answer, it is fluent, confident, and easy to read. The second also produces a polished answer, it sounds just as professional and perhaps even a little more concise.

Now imagine both answers on a screen in front of you: Which model is better?

At first, the question sounds easy, read both answers and choose the one you prefer. But that is where the problem begins.

A response can sound convincing and still omit an important fact. It can answer most of the question, but ignore an instruction. It can be beautifully written while giving information that does not match the expected result.

If we judge AI only by how good an answer looks, we may be measuring style rather than quality. So the better question is: What does "good" actually mean for this use case?

Before you measure quality, define success

Let’s continue our customer-service example.

Suppose we want the AI response to do three things:

  • Explain the reason for the delivery delay
  • Use the available business information correctly
  • Recommend an appropriate next step

Now we have something much more useful than: "Does this answer sound good?", we have expectations against which the response can be tested.

For another use case, success might look very different: an HR assistant answering a policy question may need to provide a correct answer that stays closely grounded in the policy, a summary use case may need to preserve the important information while remaining concise, and an AI agent may need to follow a set of instructions correctly and produce the expected result. The important point is that quality depends on what the AI is supposed to accomplish.

There is no single measure that automatically tells you whether every AI system is good.

Give the AI something to be tested against

Let’s suppose we have a set of test questions and, for each one, we have defined what a good answer should include.

For each test case, we can provide:

  • The prompt
  • The model we want to evaluate
  • The input and expected output
  • The evaluation metric that matters for the use case

The Evaluation Service can then evaluate the result and provide use-case-specific performance information. This is a very different way of testing AI from simply opening a chat window, trying a few prompts, and deciding that the responses "seem pretty good."

Instead, the AI is being compared against an answer we have already defined as accurate, complete, and appropriate for the task.

How to Evaluate Different Models

What is a "golden output"?

In this evaluation flow, the expected answer is often referred to as the "golden output." Think of it as a reference answer or expected result for a particular test case.

For example, suppose the prompt is: "Summarize the reason this invoice was rejected.". The golden output might state that the invoice failed because the purchase order amount did not match the invoiced amount.

Now imagine Model A says: "The invoice was rejected because the purchase order could not be found.". Model B says: "The invoice was rejected because the invoiced amount did not match the purchase order.". Both sentences sound perfectly plausible, but only one matches the expected result. That is why fluent language alone is not enough.

A golden output gives the evaluation something concrete to compare against.

Quality is not always just "right" or "wrong"

Now let us make the problem slightly harder: suppose both models identify the correct reason for the invoice rejection. Model A gives the correct answer but adds several paragraphs of irrelevant explanation, while model B gives the correct answer clearly, follows the requested format, and stays focused on the information the user needs.

Which one is better?

Simple correctness is not enough, we may also care about:

  • Whether the answer is relevant
  • Whether it follows the instructions
  • Whether it captures the expected meaning
  • Whether it performs well according to another metric that matters for the use case

The Evaluation Service supports different kinds of evaluation metrics, including measures such as Correctness, Answer Relevance, and Instruction Following, as well as other standard or custom metrics that can be selected depending on the use case.

The goal is not to collect as many metrics as possible, it is to choose the measures that tell you whether the AI is doing the job you actually need it to do.

The same model can look very different depending on what you measure

Imagine two models again. Model A produces longer, more polished responses, model B produces shorter answers that more consistently contain the expected information and follow the requested instructions.

If you ask a group of people which answer they prefer, Model A might win. If you evaluate both models against correctness and instruction following across hundreds of test cases, Model B might perform better.

That difference matters, it means AI evaluation should not depend entirely on individual impressions. A systematic evaluation gives teams a more consistent way to compare models and make decisions based on evidence.

Evaluation Service

Different use cases need different measures

In the previous lesson, we saw that different business problems may require different kinds of AI. The same is true for evaluation: different use cases may need different measures of quality.

If the AI is answering an HR policy question, correctness and answer relevance may matter most. If it is generating content according to detailed instructions, instruction following may become particularly important. If a team is comparing generated text against reference outputs, other metrics may be useful.

And for a highly specialized business scenario, the organization may decide that standard metrics are not enough and define its own measure of success.

This is why evaluation starts with the use case: you do not choose a metric because it exists, you choose it because it measures something that matters for the outcome you are trying to achieve.

Evaluation Service

Evaluation is not just about choosing a winner

Suppose Model A performs better overall, but one part of the evaluation reveals a consistent weakness. Perhaps the model understands the business question but regularly ignores one part of the prompt, that does not necessarily mean you immediately discard the model. The prompt itself may be improved.

SAP’s Prompt Optimizer can use examples of good expected answers and a selected evaluation metric to help improve a prompt for the models being tested. It can then refine that prompt for the target models and return optimized versions that can be evaluated again.

So evaluation becomes part of an improvement cycle. You define what good looks like, you test, you identify where the result falls short. You improve the prompt or configuration, then you test again.

The goal is not simply to declare one model "best", it is to create a solution that performs well for the specific business need.

Turning evaluation into better decisions

Evaluation gives teams a clearer basis for choosing between models and improving the solution they are building. People define what matters for the use case and what a good result should look like. The Evaluation Service can then help compare results systematically, while tools such as Prompt Optimizer can support further refinement where needed.

The result is not simply a score, it is a better understanding of which model, prompt, or configuration is most suitable for the business problem.

And importantly, the final judgment stays with the people designing and using the solution, they decide what success means and how the evaluation results should influence the next step.

When you build with AI, you do not have to rely on whether a result simply feels right, you can define what good looks like for your use case, evaluate against it, and make the final decision with much more confidence.

To see how evaluation can be applied in practice, explore AI evaluations in SAP AI Launchpad.

Lesson Summary

  • A convincing AI response is not automatically a high-quality response. To evaluate AI meaningfully, organizations first need to define what success looks like for a particular use case.
  • The Evaluation Service can compare model outputs against expected results using relevant evaluation metrics. These can include measures such as correctness, answer relevance, instruction following, and other pre-built or custom metrics.
  • Evaluation also supports continuous improvement. Results can reveal where a model or prompt needs refinement, and tools such as Prompt Optimizer can help improve prompts before the solution is evaluated again.
  • The goal is to move from "this looks good" to "we have evidence that this performs well for our use case."