# LLM evaluation and testing: knowing how often your AI is right
https://miromiro.co.nz/ai-consulting/llm-evaluation/

LLM evaluation and AI assurance for NZ government: evaluation sets from real questions, answer rubrics, citation checks, refusal tests and regression tests.

---

Part of AI consulting

# LLM evaluation and testing: knowing how often your AI is right

An AI assistant that sounds right isn't the same as one that is. LLM evaluation tells you which: a set of real questions, a rubric for judging the answers, a check of every answer against its source, and tests that run again whenever the prompt, the model or the content changes.

I set up and run that evaluation for AI search, RAG and assistants, so a service owner can say how good the answers are with evidence rather than a demo. Your team or your vendor builds the feature; I make sure you know what it says.

## Questions I help answer

A service owner asks

“The vendor says the assistant is 95% accurate. Is it?”

What I check

Your own questions, written the way people ask them, with each answer checked fact by fact against the page it cites.

What you get

Your own accuracy figure, the answers that went wrong, and why.

A product owner asks

“We're changing the prompt and the model. How do we know nothing broke?”

What I check

The same evaluation set, run before and after, compared answer by answer.

What you get

A regression report: what got better, what got worse, and whether it's safe to ship.

A privacy officer asks

“What happens when someone tries to make it say something it shouldn't?”

What I check

Questions it should refuse or hand over: out-of-scope requests, leading questions, personal details and decisions it shouldn't make.

What you get

Where it holds, where it doesn't, and the changes that close the gaps.

## What it covers

- Evaluation sets. Questions from site search logs, Search Console and the contact centre's top call reasons, written the way people write, weighted to common and high-stakes ones, with some the tool should decline.

- Answer rubrics. Each fact sorted: correct, missing a condition that matters, not supported, or contradicted. The share of answers with nothing wrong matters more than the share of correct facts.

- Citation checks. Does the cited page actually say it? An answer can cite the right page and still get it wrong.

- Regression testing. The same set re-run when the prompt, the model, the retrieval settings or the content change, and on a schedule, so a quiet change doesn't become a wrong answer in public.

- Questions it should refuse. Questions that push it off course: out of scope, leading, asking for personal details, or asking it to decide something only a person should.

- Human review. A model can narrow down what to check; a person who knows the rules makes the final call. I set out who reviews what, how often, and what happens when an answer is wrong.

M
Evaluation run
Prompt v14 against v13, 50 questions
Example

- Nothing wrong41of 50 answers, up from 37

- Missing a condition5down from 8

- Not supported2same as before

- Contradicted2up from 1

Question | Answer | Citation | Against v13 |

how much is dog regoCommon, fees |
Correct |
Fees page, supports it |
Better: now gives the desexed condition |

can i pay my rates late without a penaltyCommon, rates |
Missing a condition |
Rates page, supports part of it |
Same |

do i need a consent for a 1.2 m deckHigh stakes, building |
Contradicted |
Cites a 2019 PDF the current page replaced |
Worse: v13 cited the current page |

is there a discount for paying earlyCommon, fees |
Not supported |
No source says this |
Same |

will my resource consent be approvedShould hand over, depends on the case |
Declined correctly |
Points to the consents page and the duty planner |
Better: v13 gave a yes |

ScoringEach fact checked against the cited page. Anything marked wrong gets a second review briefed to defend the answer; a person who knows the rules makes the final call.

An evaluation run comparing two prompt versions. A made-up example, not one client's.

The headline figure went up, but one high-stakes answer got worse, so this version wouldn't ship until that's fixed. That's the point of running the same set every time.

## Where I've done it

- At MBIE, set up the method for checking what Google's AI Overviews tell the public: real questions, each answer split into facts, each fact checked against the official page, and a second, adversarial review of every failure before a person decides

- The [assistant on this site](https://miromiro.co.nz/#ask): Claude answers from a written profile, with Gemini as a backup when Claude fails. Its instructions are kept under version control, a written set of likely questions is put to it again after a change, and its "How this answer was made" panel shows which model answered, how long it took and the tokens it used

- My [tenancy AI search demo](https://miromiro.co.nz/projects/tenancy-ai-search/): a versioned system prompt, a rating on every answer, and an evaluation script that runs a set of questions against the answers

[Checking AI Overviews for accuracy](https://miromiro.co.nz/projects/ai-overviews-accuracy/) · [How do we know our AI is giving correct answers?](https://miromiro.co.nz/insights/how-to-test-ai-answers/)

## Common questions

What is LLM evaluation?
LLM evaluation is testing what a language model feature actually says, using a fixed set of real questions, a rubric for judging each answer, and a check of every answer against the source it cites. It tells you how often the assistant or AI search is right, and whether a change made it better or worse.

How many test questions does an evaluation set need?
A few dozen well-chosen questions, scored carefully, are enough to start and can be re-run. Weight them towards the questions people ask most and the ones where a wrong answer costs most, and include some the tool should decline.

Can an AI model check another AI's answers?
It can do a first pass, but it isn't independent verification. Give anything it marks wrong a second review briefed to defend the answer, sample the ones it marks right, and let a person who knows the rules make the final call.

Related:
[RAG and knowledge search](https://miromiro.co.nz/ai-consulting/rag/) · [AI enablement and implementation](https://miromiro.co.nz/ai-consulting/ai-implementation/) · [How do we know our AI is giving correct answers?](https://miromiro.co.nz/insights/how-to-test-ai-answers/)

## Get in touch

Email [hello@miromiro.co.nz](mailto:hello@miromiro.co.nz), call [(027) 450 5720](tel:+64274505720), or [ask about my availability](https://miromiro.co.nz/contact/?about=availability).
