Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. How to Know an AI Integration Is Working
AI Integration

How to Know an AI Integration Is Working

Testing an AI integration properly: build an evaluation set from real questions, run it on every change, sample live output weekly and judge what matters.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Build a set of real questions with agreed correct answers, run it on every change, and sample live output weekly. Without those, every change is a guess and every improvement is an assertion.

Conventional testing does not transfer

You cannot assert that an answer equals an expected string. Two correct answers can be worded entirely differently, and a subtly wrong one can be worded almost identically to a right one.

So evaluation is about judged correctness across a set, not exact matching on a case.

Build the set from real questions

  1. Take a hundred real questions from your support log or inbox
  2. Have someone who knows write the correct answer for each
  3. Include the ones with no good answer, where refusal is correct
  4. Include ambiguous ones, where asking back is correct
  5. Hold back a portion you never tune against
The refusal cases matter as much as the answerable ones. A system that never refuses will invent, and only the refusal cases catch that.

Run it automatically

On every prompt change, every model change and on a schedule. Manual evaluation happens once and then stops, which is the same as not having it.

Record the score over time so a gradual decline is visible rather than being discovered as a complaint.

Sample live output too

  • Twenty live answers a week, reviewed by someone who knows
  • Every reported wrong answer, added to the evaluation set
  • Every refusal, checked — is the content missing or is retrieval broken?
  • The unanswered-question log, reviewed monthly

Judge on what matters

DimensionQuestion
CorrectnessIs the claim true?
GroundingDoes the cited source support it?
CompletenessDid it answer the whole question?
RefusalDid it decline when it should have?
ToneWould you be happy for a customer to read this?

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

How many test cases do we need?

A hundred is a workable minimum; two to three hundred gives more stable numbers. Representative matters more than large.

Who writes the correct answers?

Someone in your business who knows. This is the part that cannot be outsourced and the part that makes the whole exercise meaningful.

How often should the set be refreshed?

Add new real cases monthly, especially the failures. Retire cases that no longer represent your work.

Can the AI evaluate itself?

Model-assisted grading is useful for scale and needs human-checked cases underneath it. Purely self-graded evaluation tells you very little.

Keep reading

More on AI Integration

Start here

Changing prompts and hoping for the best?

An evaluation set turns that into a measurement. We can build one around a system we did not write.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →