AI Product Metrics
How do you know whether Campus Helper is actually working? Parents seem to like it, and the office is a little quieter. "Seems" isn't enough to decide whether to expand it, fix it, or switch it off. The team needs numbers, collected every week.
This lesson covers six metrics every AI feature needs, calculated from a small sample of Campus Helper's log.
Six Metrics
| Metric | Question it answers | How it's measured |
|---|---|---|
| Quality | Are the answers correct? | Share of answers checked as correct, on the evaluation set and on samples of real conversations |
| User satisfaction | Do people find it helpful? | Thumbs up and down, short surveys |
| Response time | Is it fast enough? | Seconds per answer |
| Cost per interaction | Is it affordable? | Model cost per answer |
| Adoption | Are people using it? | Weekly active users, questions asked |
| Safety incidents | Did anything harmful happen? | Reported or detected problems |
Calculating Them
# One week of Campus Helper conversations (a small sample of the log)
log = [
# (answer correct?, seconds to answer, cost in dollars, user rating, safety incident?)
(True, 1.8, 0.004, "up", False), (True, 2.1, 0.005, "up", False),
(False, 2.6, 0.006, "down", False), (True, 1.5, 0.003, None, False),
(True, 1.9, 0.004, "up", False), (True, 3.2, 0.007, "up", False),
(False, 2.2, 0.005, "down", True), (True, 1.7, 0.004, None, False),
(True, 2.0, 0.004, "up", False), (True, 1.6, 0.003, "up", False),
]
n = len(log)
quality = sum(correct for correct, *_ in log) / n
avg_seconds = sum(seconds for _, seconds, *_ in log) / n
cost = sum(c for _, _, c, _, _ in log) / n
rated = [r for *_, r, _ in log if r]
satisfaction = rated.count("up") / len(rated)
incidents = sum(flag for *_, flag in log)
print(f"Answer quality: {quality:.0%} correct")
print(f"Average response time: {avg_seconds:.1f} s")
print(f"Cost per interaction: ${cost:.4f}")
print(f"Satisfaction: {satisfaction:.0%} thumbs up ({len(rated)} rated)")
print(f"Safety incidents: {incidents}")Answer quality: 80% correct
Average response time: 2.1 s
Cost per interaction: $0.0045
Satisfaction: 75% thumbs up (8 rated)
Safety incidents: 1Speed and cost are fine; quality and satisfaction are below target, and there's one safety incident. The two wrong answers are the first thing to investigate: if both came from an outdated document, the fix is a document update, not a new model.
Reading Metrics Well
| Situation | What it suggests |
|---|---|
| Quality falls after a change | Roll back, or re-evaluate the change |
| Satisfaction low, quality high | The answers are right but unhelpful: check tone, length or UX |
| Cost rising faster than usage | Longer prompts or answers, or heavy users |
| Any safety incident | Investigate before expanding |
Common Mistakes
Tracking only usage. Popular and wrong is still wrong.
Measuring quality only before launch. Keep sampling real conversations.
Ignoring a single safety incident. Investigate every one.
Interview Corner
What metrics would you track for an AI feature?
Quality (correctness), user satisfaction, response time, cost per interaction, adoption and safety incidents, compared against targets and tracked over time.
Satisfaction is low but quality is high. What might be wrong?
The answers may be correct but unhelpful: too long, too technical, hard to find, or missing a next step. Look at the user experience and the tone.
Practice
Exercise: add a week of data. Add five more conversations to the log, including one slow, expensive answer and one more incorrect one. Rerun the program. Which metrics changed, and what would you investigate first? Then write a target for each of the six metrics for a product you know.
Check your understanding:
- Name the six metrics.
- Which two metrics were below target in the example?
- What might low satisfaction with high quality mean?
Key Takeaways
Quick reference
| Metric | Example target |
|---|---|
| Quality | 90% correct |
| Satisfaction | 80% thumbs up |
| Response time | Under 3 seconds |
| Cost | Under 1 cent per answer |
| Safety | Zero incidents |
Was this tutorial helpful?