0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09Three replies, three different failures
Here are three replies from Brightcart's assistant. The first is warm and polite, and states the wrong return window. The second is correct, but four hundred words long, in a chat window that fits eighty. The third is correct and concise, and takes fourteen seconds to appear. Each one fails, in a completely different way. No single score could capture all of that. Before we can build an evaluation pipeline, we have to decide exactly what to measure. Today: the six families of criteria for an AI assistant, and how to turn them into a scorecard.
Season Four, Module Sixteen: evaluating AI systems. First stop: what to measure.
0:55Start from the product's promises
Start from the product's promises, not from generic benchmarks. Brightcart's brief, together with the support team's requirements, says the assistant must answer policy questions correctly, never invent policies, protect customers, fit the chat window and talk to the order system, feel quick, and stay affordable at fifty thousand requests a month. Each promise maps to a family of criteria: domain capability, generation quality and factual consistency, safety, instruction-following, latency and cost. Let's take them one at a time.
1:33Domain capability
First, domain capability: can the model do Brightcart's tasks? Answer questions about its products and policies, reason through multi-step cases, like a damaged item returned within thirty days with a refund to the card, do the arithmetic on an order correctly, route tickets to the right team, and understand customers' photos. Measure these on a test set built from Brightcart's own work, using exact checks wherever possible: calculations for totals, F1 for routing, references for policy answers. Public benchmarks are only a rough proxy.
2:10Factual consistency: context vs world
Second, generation quality, and above all, factual consistency. Is the reply clear, relevant and in Brightcart's friendly tone? Rubrics and AI judges handle those. Factual consistency comes in two kinds. Consistency with the provided context: when the assistant is given Brightcart's policy text, is every claim it makes supported by that text? And consistency with the world: are its general claims actually true? The first is easier to check, by splitting a reply into claims and verifying each against the context, as in the last module.
For Brightcart, the key metric is the share of replies with no unsupported policy claims at all.
2:55Safety and red-teaming
Third, safety. Build a set of test prompts designed to probe failures, called red-teaming, and check how the assistant handles each. Requests for harmful information should be declined helpfully. Dangerous situations, like a frayed lamp cable, need clear safety advice. Customers should be treated consistently whatever their name or language, which you can test by changing only the name in otherwise identical requests. Private data must never leak: the assistant must not reveal another customer's order, however cleverly it's asked.
And it should resist manipulation attempts, which we'll study in episode sixty-three. There's a flip side: refusing harmless requests is also a failure. An assistant that won't answer "Can I return a gift?" because it sounds unusual is broken in a different way. Measure both the safe-handling rate on risky prompts and the over-refusal rate on ordinary ones.
3:56Instruction-following
Fourth, instruction-following: does the assistant obey its rules? Many instructions can be checked automatically. Under eighty words: count them. Always include the order number when known: search for it. Return JSON with a status and an arrival estimate: validate it against the schema. Never promise a delivery date that isn't in the tracking data: compare with the tool's output. Reply in the customer's language: detect the language. Softer instructions, like "friendly, plain English, no jargon", need a judge. The headline metric: the share of replies that satisfy every hard rule.
4:38Latency: time to first token
Fifth, latency, how fast it responds, which has two parts. Time to first token: how long before anything appears. Then time per output token: how quickly the rest streams out. If the first token takes zero point four seconds and each following token takes twenty-five milliseconds, a two-hundred-token reply takes just under five and a half seconds in total, streaming at around forty tokens a second. People are surprisingly tolerant of text that streams steadily, and very intolerant of a long silence at the start. Retrieval, tool calls and reasoning modes all add time, which we'll optimise in Season Five.
And measure the slow cases, the ninety-fifth percentile, not just the average. A system that's usually fast but sometimes takes twenty seconds will frustrate customers.
5:32Cost per conversation
Sixth, cost. Every model call costs its input tokens times the input price, plus its output tokens times the output price, plus any retrieval, tools or judging. At fifty thousand requests a month, with about eight hundred input tokens and two hundred output tokens each, that's forty million input tokens and ten million output tokens a month. Multiply by the current prices to get the bill. The big cost drivers are long prompts and lots of retrieved context, examples in the prompt, long reasoning, retries and judges.
Quality, speed and cost pull against each other; the scorecard helps you choose the trade-off deliberately. One caveat: this corner of AI moves quickly. These examples were current when we made this video, and they may look different on the day you watch it.
6:27The scorecard: gates and trade-offs
Put it all together in a scorecard with two kinds of rows. Must-pass gates: lines that can never be crossed, like zero private-data leaks on the red-team set, and a very low rate of unsupported policy claims. Any candidate that fails a gate is out, however good it is otherwise. Then the metrics to optimise: correctness, helpfulness and tone, over-refusal, slow-case latency and cost per conversation. Each row says exactly how it's measured: an exact check, a judge, a human review, or a production metric.
7:05Try it yourself: a longer reply
Using the latency numbers from earlier, four tenths of a second to the first token, then a fortieth of a second per token, how long does a three-hundred-token reply take? Pause. Zero point four, plus two hundred and ninety-nine times zero point zero two five: almost eight seconds. Double the generation speed, and it's just over four. For long replies, the speed of generating each token dominates; for short ones, the wait for the first token matters most. That tells you which part of the system to optimise.
7:47Which criteria matter most?
Which criteria matter most for live chat replies, for overnight catalogue tagging, and for a weekly digest of complaints? Pause. For live chat: speed, factual accuracy, safety and tone, all at once, because a customer is waiting. For overnight tagging, nobody is waiting, so speed barely matters, but accuracy and cost do, across three thousand products. For the weekly digest: covering every major theme, and staying faithful to the actual tickets. Same company, same models, completely different priorities.
8:30The average that hides a problem
Brightcart's evaluation has five hundred order-status tickets at ninety-six percent accuracy, two hundred returns tickets at seventy-five, and three hundred product questions at ninety. What's the overall accuracy? Pause.
Ninety percent, which sounds fine. But one in four returns answers is wrong, and returns involve money and frustrated customers. Averages hide problems in small slices. Always break results down by category, and by language, channel and customer type too, wherever it matters.
9:12Fairness tests with name swaps
Here's a simple, powerful fairness test. Take one complaint, about a cracked mug, and send it fifty times, changing only the customer's name, across many different cultural backgrounds. Then compare the replies: the tone, whether a refund is offered, whether escalation is suggested. Identical problems deserve identical treatment. Any systematic difference is a red flag that must be investigated before launch.
9:42Faithful to the policy, not the internet
For Brightcart, factual accuracy has a specific meaning: being faithful to the policy it was given, not to what's common on the internet. A model may have read that many shops offer fourteen-day returns, but Brightcart's policy says thirty. A good reply follows the provided context. So the key metric isn't general knowledge; it's consistency with the documents in the prompt, checked claim by claim.
10:11Try it yourself: cost per conversation
A single model call costs about sixteen hundredths of a cent. But a typical conversation needs three calls, and Brightcart judges each conversation for monitoring, which adds about a quarter of a cent. What does a whole conversation cost? Pause.
About seven tenths of a cent, more than four times a single call. Retries, tools and longer chats push it higher. That's why the scorecard tracks the cost of a whole resolved conversation, not just the price of one call.
10:47Why gates come before averages
Model X scores ninety-five for quality and leaks no private data in testing. Model Y scores ninety-seven, but leaked private data twice. A weighted average might choose Y. That's why the scorecard puts must-pass gates first: privacy leaks, unsafe advice and broken formats are checked before any averaging happens. Some failures can't be traded away for a slightly nicer tone.
11:16Instruction-following you can verify
Instruction-following is easiest to measure when the instructions can be checked. Reply in under eighty words: count them. Address the customer by first name: compare with the order record. Never promise a delivery date that isn't in the tracking data: extract any dates and compare. "End with a clear next step" needs a judge. Track the pass rate for each instruction separately, so you know exactly which one the model keeps ignoring.
11:47Try it yourself: a latency budget
Before the customer sees the first word, three things happen: fetching the order and policy text takes two tenths of a second, building the prompt takes five hundredths, and the model needs four tenths to produce its first token. What's the total? Pause.
Zero point six five seconds, comfortably under a one-second target. But notice: the model is only part of it. Each stage gets its own limit and its own line on the dashboard, so when things slow down, the team can see instantly whether the problem is the database, the prompt builder or the model.
12:31The metric that backfires
Brightcart is tempted by a simple target: increase the share of chats resolved without a person. What could go wrong? Pause. The assistant, or the team tuning it, can learn to make escalation hard. Frustrated customers give up, the number improves, and service gets worse. It's a classic trap: when a measure becomes a target, it stops being a good measure. The fix is to pair metrics that pull against each other: escalation rate together with customer satisfaction, and whether the customer had to come back within a week about the same problem.
13:11Myth vs Fact
Myth: just pick the model with the best overall average. Fact: averages hide failures. A model that's brilliant on average but occasionally leaks private data must not ship. Use gates for the non-negotiables, then trade off the rest deliberately.
13:29Recap
Let's recap. Evaluation criteria come from what the product promises. Measure domain capability on your own tasks, and factual consistency, especially against provided context. Test safety with red-team prompts, and measure over-refusal too. Check instructions automatically wherever possible. Track latency, both time to first token and streaming speed, and cost per conversation. And combine everything into a scorecard with must-pass gates and metrics to optimise. One sentence to remember: measure every promise the product makes, and gate the ones it must never break.
14:08Next: choosing a model
Mission complete. Brightcart has a scorecard: four must-pass gates and five metrics to optimise, each with a clear measurement method. Next, we use it. How do you choose a model, open or closed, buy or build, and how do you read public benchmarks without being fooled? Choosing a model, next. See you on the map.