Stage 4 · Assumes you can code · Evals & Quality

Metrics: Accuracy, Faithfulness, Cost & Latency

The dimensions along which an AI system's quality is measured.

A good eval suite looks at multiple dimensions, not just "did it get the right answer":

Accuracy/correctness — did the output match the expected result? Faithfulness/groundedness — for RAG systems, did the answer actually rely on the retrieved context, or did the model hallucinate? Latency — how long did it take? Cost — how many tokens/dollars per request?

One Response, Four Metrics
Question: "What was our Q3 refund rate, and why did it rise?"
Retrieved doc: "Q3 refund rate was 4.2%, up from 2.8% in Q2, driven mainly by a shipping delay affecting the West region."
Model answer: "Q3 refund rate was 4.2%, up from Q2's 2.8%. The increase was mainly due to shipping delays in the West region." (returned in 2.1s, 340 tokens)
Accuracy
✓ Correct
Faithfulness
✓ Grounded
Latency
2.1s
Cost
$0.006
Accuracy: Both numbers (4.2%, 2.8%) match the reference answer exactly.
Click a metric. This response is accurate and faithful, but its latency and cost mean it may still need optimization before shipping at scale.

Click each metric to see how the same response scores across all four dimensions.

All lessons in Stage 4: Builders (optional)