LyraLearn AI Learning Platform
Exams
← Module 13 Β· Monitoring and Observability
🎧 Listen

Metrics That Matter

A table of raw calls is only useful once you aggregate it into a handful of metrics you actually watch. The goal is not a wall of dashboards β€” it is a few numbers that, when they move, tell you something is wrong before a user complains. Every metric below is a simple GROUP BY over ops.AiEvaluations.

A dashboard of four key AI metrics β€” refusal rate, p95 latency, token spend, and local-versus-cloud mix β€” all aggregated from one evaluation table.

Refusal rate β€” a quality and knowledge-gap signal

The fraction of calls where Refused = true is the most underrated AI metric. A healthy refusal rate means the system is correctly declining when it lacks evidence β€” that's the system working as designed. But the trend is what you watch:

Refusal rate is both a quality gauge and a product-discovery tool. Track it per feature.

p95 latency per provider

Averages hide the pain; p95 latency is what your slowest 5% of users actually feel. Compute it per provider and model, because a local embedding model and a cloud LLM have completely different profiles. Watching p95 per provider lets you:

Token spend per feature, per day

Cost is a first-class operational metric. Summing InputTokens + OutputTokens grouped by feature and day answers "what is the AI costing us, and where?" This is how you find the summarizer that quietly tripled its prompt size, or justify moving a high-volume feature to a cheaper local model.

Local-vs-cloud mix

LyraLearn is local-first: embeddings and many calls run on-box, with cloud reserved for harder generation. The ratio of local to cloud calls β€” again straight from the Provider column β€” tells you whether that design is holding. A drift toward cloud means rising cost and latency; a drift toward local may mean quality slipping. The mix is a single number that captures a core architectural promise, and it's worth a place on the dashboard right next to refusal rate, p95, and spend.

🧠 Quiz yourself on this lesson →

Ask the AI Tutor

Grounded in the course lessons β€” it cites its sources and says when it doesn't know.