SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

AI Evals — Cheatsheets

Quick reference — commands, syntax, and patterns

📄
Last updated Dec 2026
Expert Content

AI Evals Quick Reference

A single-page reference covering golden sets, scoring methods, RAG/agent-specific metrics, and the online/red-team layers. See Fundamentals, Intermediate, and Advanced for the full reasoning behind each line here.

text
# The three pieces, every eval setup needs all three
Golden set       -- fixed, representative inputs (+ expected outcomes where possible)
Scoring method   -- exact match / rubric / LLM-as-judge / human review
A tracked number -- comparable across versions and over time

# Scoring methods, by fit
Exact match      -- one genuinely correct answer (classification, extraction)
Rubric-based     -- checklist of specific criteria, applied consistently
LLM-as-judge     -- scales to open-ended output, inherits the judge's own blind spots
Human review     -- slowest, still needed periodically to catch a wrong judge/rubric

# Minimal eval loop
1. Define the golden set (real inputs, including known-hard cases)
2. Run current prompt/model against it, score every output
3. Record aggregate AND per-category breakdown
4. Change the prompt/model
5. Re-run, re-score, compare -- a per-category drop matters even if the aggregate looks fine

# Judge-prompt quality checklist
[ ] Specific, concrete criteria -- not just "rate this 1-5"
[ ] Example outputs for each score level, where practical
[ ] Calibrated against human ratings on a held-out sample
[ ] Re-checked periodically, not assumed correct forever

# Two failure modes an aggregate score hides
- One category gets worse while others improve enough to offset it in the average
- Gradual production drift that a one-time release-time check never re-runs against

# Evaluating a multi-step agent (not just single-turn output)
[ ] Was the sequence of actions reasonable?
[ ] Did each individual tool call use sensible arguments?
[ ] Did the final outcome actually solve the task?
      (a correct final answer can still hide a bad intermediate step)

# Keeping a golden set honest
- Refresh periodically with real, recent inputs
- Version it explicitly (like code) so a score is tied to a known set version
- Don't silently overwrite an old version -- keep it for historical comparison

# RAG-specific metrics
Context precision -- of what was retrieved, how much was relevant
Context recall     -- of what was relevant, how much did retrieval find
Faithfulness       -- is each answer claim actually supported by retrieved context
Answer relevance   -- does the answer address the question, independent of grounding

# Beyond the golden set
CI regression gate -- fails the build if a known case starts failing
Online eval (A/B, user feedback, traffic sampling) -- catches real, unanticipated usage
Red-teaming -- adversarial prompts testing whether the system can be misused;
               versioned and refreshed like a golden set, never a one-time check
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
→
Also Worth Exploring
← Back to all AI Evals modules
← CertificationNotes →