# AI agent and LLM evals

Know how often your AI gets the job right. For agents, support bots and AI that reads documents or email. A test set built from your own work, a grader checked against a person's grades, and a score you rerun after every change. You see which answers were wrong or made up, why, and what to change.

Page: https://quirkyagents.com/evals/ · By Dave (dave8172) · Contact: dave@quirkyagents.com

## What published evals measured

- 36 of 40: An AI grader agreed with a person's grades, at a twenty-fifth of the cost. [Calibrating an LLM judge](https://quirkyagents.com/wizard/blog/calibrate-llm-judge-evals/)
- 61 of 64: Fields read right from real inbound emails. All three misses were on one field. [Measuring AI on inbound email](https://quirkyagents.com/wizard/blog/measure-ai-reading-inbound-emails/)
- 2 points: Accuracy between two set-ups on 105 invoices (98.3% vs 96.3%), at a 12× cost gap. [Invoice extraction, cost vs accuracy](https://quirkyagents.com/wizard/blog/invoice-extraction-cost-accuracy-benchmark/)

## If you need to know…

The cases come from your own work, so the score means something for your business.

- **…whether its answers are right** Answers checked against your own documents and policies: right, wrong, or made up. Questions your documents don't cover count too. Needs: your help pages or documents, and about 40 real questions or tickets. [How the support bot's answers were graded](https://quirkyagents.com/agents/support/#report)
- **…whether an AI grader can be trusted** A grader that scores thousands of answers is only useful if it agrees with the person whose judgment counts. Agreement is measured, beyond what luck would give. Needs: a person who knows the answers to grade a sample. [How a judge was calibrated](https://quirkyagents.com/wizard/blog/calibrate-llm-judge-evals/)
- **…which model to pay for** The same cases through each model or set-up: accuracy, the kinds of mistakes, and cost per answer or per document. Needs: a set of labelled examples, or the time to label them together. [Two set-ups, a 12× cost gap](https://quirkyagents.com/wizard/blog/invoice-extraction-cost-accuracy-benchmark/)

## How it goes

No live systems needed: past cases, your documents, or a test copy.

1. **Collect real cases.** Past tickets, documents, emails: the work the AI really gets. About 40 cases is enough to start.
2. **Agree what right means.** A person grades a sample. The grader, a model or plain code, is checked against those grades before it's trusted.
3. **Run and score.** Every system on the same cases. Each miss sorted by kind, so you see what to fix, not only a score.
4. **Keep it.** The test set and the grader are yours, to rerun after every change of prompt, model or documents.

## How to start

**Start with one week of evals: one week, $200.** $100 to start, $100 at handover. Pick the question you can't answer today. In a week you have a number for it, and the cases behind it.

If one of these sounds like your AI:

- **$200: A model update broke it, and nothing caught it.** Same prompts, new model version, and the answers changed. About 40 of your real cases, scored on every model or prompt change, so the break shows up before your customers see it. [The support bot's tests ran on two models](https://quirkyagents.com/agents/support/).
- **$200: You check answers by reading them.** Reading a sample by eye doesn't scale or repeat. A grader checked against your team's grades takes over the reading, and you know how far to trust it. [One grader agreed with a person on 36 of 40](https://quirkyagents.com/wizard/blog/calibrate-llm-judge-evals/).
- **$200: Customers say your bot makes things up.** And you can't tell how often. 30 questions from your own help pages and past tickets, each answer graded right, wrong or made up, with the page that was missing or misleading. [How the support bot was graded](https://quirkyagents.com/agents/support/).
- **$200: Your agent says "done". Did it happen?** A reply can say the address was changed when nothing changed, and no error shows. Each task is checked in your system afterwards, not from the reply. [The support bot did 15 of 21 normal tasks before its fixes, 21 of 21 after](https://quirkyagents.com/agents/support/).
- **$200: Your model is being retired, or a cheaper one might do.** Your own examples through the model you use and the ones you're weighing: accuracy, the kinds of mistakes, and cost per answer. [In one test, a 12× cost gap bought 2 points of accuracy](https://quirkyagents.com/wizard/blog/invoice-extraction-cost-accuracy-benchmark/).
- **$200: Some fields come out wrong, and you check them all by hand.** AI that reads invoices, emails or forms, each field scored on your real examples and the misses sorted by kind, so you check the fields that break, not all of them. [In one test, all three misses were on one field](https://quirkyagents.com/wizard/blog/measure-ai-reading-inbound-emails/).

A different question about your AI? Describe it, and you'll hear back whether it fits in a week.

### Or go further

- **Evals set up in full.** A test set from your own cases, a grader checked against your team's grades, and a score you rerun on every change. Priced once the job is clear.
- **Pick the model, with numbers.** Every model or set-up you're weighing, run on the same cases: accuracy, mistakes and cost side by side. Priced once the job is clear.
- **Keep it measured.** The evals rerun each month and after every change, with new cases added from real misses. A monthly price, agreed together.
- **Evals and security together.** Most agents that act need both: how often it's right, and what it can be talked into. [Security testing](https://quirkyagents.com/agent-security-testing/). Priced once the job is clear.

**A project with your team, on contract.** A scoped piece of work your team needs, such as an agent, its tests or the harness around it, done alongside your team and paid by time. The scope comes first, then the hours.

## Evals published here

- [How I calibrated an LLM judge to grade like me, 25× cheaper](https://quirkyagents.com/wizard/blog/calibrate-llm-judge-evals/): 188 answers from four AI systems over product datasheets, and a grader that agrees with a person.
- [AI turns emails into spreadsheet rows. Did it get them right?](https://quirkyagents.com/wizard/blog/measure-ai-reading-inbound-emails/): What sorting the misses shows that an accuracy score hides.
- [98.3% vs 96.3%: the cost of an auditable extraction pipeline](https://quirkyagents.com/wizard/blog/invoice-extraction-cost-accuracy-benchmark/): 105 labelled invoices and receipts, two set-ups, the eval set and the audit log.
- [Security-One on an email agent](https://quirkyagents.com/wizard/blog/security-one-prompt-injection-classifier-email-agent/): A safety classifier scored on 49 texts an agent reads and 424 real tool calls.
- [Ask twice: seven measurements from building with Jev](https://quirkyagents.com/wizard/blog/jev-ask-twice/): Two claims argued, not measured, turned out wrong.
- [Small model vs LLM](https://quirkyagents.com/wizard/projects/small-model-vs-llm-benchmark/): One small job, five kinds of tool: accuracy, speed and cost.
- [doceval](https://quirkyagents.com/wizard/projects/doceval/): Free, open-source: field-level accuracy, the kinds of mistakes and cost per document for any extractor.
- [The three agents' test reports](https://quirkyagents.com/agents/): Each agent graded before and after the fixes, with the code and every conversation.

## Questions

**What is an eval?** A repeatable test of an AI system: fixed cases, scored the same way every time. A change of prompt, model or documents then shows up as a number, not a feeling.

**Can an AI grade the answers?** Yes, once it has been checked against a person's grades on a sample. In one published check, an AI grader agreed with Dave's grades on 36 of 40 answers and cost $0.03 for 188 answers, against $0.80 for a grader on Claude Sonnet alone.

**Why not just an accuracy score?** A score hides where the AI fails. Sorting the misses by kind shows what to fix: in one test, all three misses reading inbound emails were on the same field.

**Does it need my live systems or real data?** No. Past cases with personal details removed, your documents, or a test copy with fake accounts.

**Evals or security testing?** Evals measure how often the AI does the job right. Security testing checks what it can be talked into. Most agents that act need both, and the agent reports on this site do both. [Security testing](https://quirkyagents.com/agent-security-testing/).

**Does it work with my model and framework?** Yes. The cases go in the way your users send them, and the answers and actions are scored, so the model and framework don't matter.

**Who runs the evals?** Dave (dave8172), an AI engineer who builds AI agents and the harness around them, and publishes the tests. [About Dave](https://quirkyagents.com/wizard/about/). He works remotely with teams in the US, Canada, the UK, Europe and Australia, in English.

## Tell Dave what your AI does

A few lines is enough: what it does, what a wrong answer costs you, and how you check it today. dave@quirkyagents.com
