AI Product Metrics

Updated · 5 min read
mediumPython 3.13aimetricsproduct-managementevaluationmonitoring

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

MetricQuestion it answersHow it's measured
QualityAre the answers correct?Share of answers checked as correct, on the evaluation set and on samples of real conversations
User satisfactionDo people find it helpful?Thumbs up and down, short surveys
Response timeIs it fast enough?Seconds per answer
Cost per interactionIs it affordable?Model cost per answer
AdoptionAre people using it?Weekly active users, questions asked
Safety incidentsDid anything harmful happen?Reported or detected problems

Calculating Them

Python
# 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}")
Output
Answer quality: 80% correct
Average response time: 2.1 s
Cost per interaction: $0.0045
Satisfaction: 75% thumbs up (8 rated)
Safety incidents: 1
One week of Campus Helper, against its targets

Speed 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

SituationWhat it suggests
Quality falls after a changeRoll back, or re-evaluate the change
Satisfaction low, quality highThe answers are right but unhelpful: check tone, length or UX
Cost rising faster than usageLonger prompts or answers, or heavy users
Any safety incidentInvestigate 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:

  1. Name the six metrics.
  2. Which two metrics were below target in the example?
  3. What might low satisfaction with high quality mean?

Quick check: AI product metrics

4 questions
1Which metric checks whether answers are correct?
2In the example, what was the cost per interaction?
3What should happen after any safety incident?
4Why is ten conversations not enough for decisions?

Key Takeaways

Quick reference

MetricExample target
Quality90% correct
Satisfaction80% thumbs up
Response timeUnder 3 seconds
CostUnder 1 cent per answer
SafetyZero incidents

Was this tutorial helpful?

Lesson 67 of 186