Glossary

LLM evaluation

LLM evaluation is the practice of measuring how well an application built on a large language model does its actual job, by running it against a fixed set of test cases, scoring the results and comparing them with agreed thresholds. It runs before launch and again after every change to the prompt, model, data or tools.

Book a workflow review

Leaderboards are not your evaluation

Public benchmarks compare models on general tasks. They say little about whether your assistant answers your refund questions correctly, in your tone, in Arabic and English, from your data. Application evaluation uses your own cases. It also catches regressions: providers update models, and a prompt that worked last month can behave differently today.

The parts of an evaluation

  • A test set built from real cases: common requests, hard edge cases, questions that should be refused and hostile inputs, each with the expected outcome.
  • Graders. Code checks for anything exact, such as valid JSON, the right tool called or the correct total. A model-graded rubric for qualities such as faithfulness to sources and tone, compared with human ratings before you rely on it. People for a sample, especially specialists and native speakers.
  • Metrics and thresholds agreed with the business, such as the share of answers fully supported by sources, correct hand-offs to staff and response time.
  • Regression runs on every change, with results kept so versions can be compared.

An example

Imagine a team preparing a bilingual support assistant. They collect a few hundred real questions from past tickets, half in Arabic, including Gulf dialect and messages that mix both languages. Each case has an expected answer or action. A rule checks that order lookups call the right tool, a model-graded rubric scores faithfulness to the help centre, and native speakers rate a sample for tone. The release goes ahead only when every category meets its threshold. This example is hypothetical.

Common mistakes

  • Testing by trying a few questions and going on a good feeling.
  • One average score that hides a failing category, such as Arabic questions or refunds.
  • Trusting a model grader without checking it against people; model judges can favour longer or more confident answers.
  • Writing test cases that are easier than real traffic.
  • Never adding production failures to the test set.

Related terms

Evaluation measures quality, AI red teaming probes for harm and misuse, and AI observability keeps watching after launch. See our AI agent testing service and the article on testing AI agents before launch.

A small first step

A 30-minute workflow review

Pick one process that costs your team time. We look at it with you and tell you honestly whether automation or an AI agent pays, what it would take, and what to measure first.

Message us on WhatsApp

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy