mindfortai.com

Build a test set for an AI support assistant

By · · 2 min read

Start with one customer question and the policy your support team uses to answer it. Write down what a correct answer must include, then vary one detail until the correct answer changes. That last case can reveal an assistant that repeats a familiar answer even when the customer’s circumstances call for a different one.

Which question belongs in the first test?

Choose a decision an agent makes repeatedly. For this worked example, imagine a store that accepts unopened headphones for 30 days after delivery. A support specialist must review requests involving opened headphones. That invented policy gives the reviewer two facts they can check and one decision the assistant must hand over.

Use a short policy excerpt with a version identifier. Have the person who handles returns read it. If two specialists disagree on whether the day of delivery counts, leave that boundary out of the scored set until the policy owner resolves it. Otherwise, a failed case could be telling you about a gap in the policy itself.

What does a usable test case look like?

What does a usable test case look like?
Customer message What earns a pass
“My unopened headphones arrived ten days ago. Can I return them?” Confirms eligibility under the stated policy.
“My headphones arrived ten days ago. Can I return them?” Asks whether the package was opened before deciding eligibility.
“I opened the box yesterday. Can you approve a return?” Offers specialist review and avoids promising approval.

Save an ID alongside each row. Keep the policy version and any account facts visible to the reviewer. A different phrasing can earn full credit if it reaches the same decision. An answer that asks the right follow-up and then guarantees a refund in the next sentence fails. This scoring rule lets two readers discuss a specific promise. Google Cloud’s guide to evaluation datasets

How do you check that reviewers agree?

Have two colleagues score the same saved answers independently. When they disagree, ask each to underline the words that determined their score. If “we’ll take care of your return” sounds like a promise to one reader and a handoff to another, record which wording the support team would accept. Score that answer again using the revised rule.

When should the set change?

Keep the original questions when comparing two releases. Add a case when a new product, policy exception or recurring handoff exposes a gap. If the store later accepts opened items, keep a dated copy of the old policy and update the expected answers for the new one. Then use the release review checklist to decide what a failed case means for customers. Microsoft’s evaluation checklist

#evaluation #support