LearnThatStack Ace your next interview
AI Evals & Observability · question
Question 2 of 57

What are the main types of evals used for LLM applications?

beginner
← All AI Evals & Observability questions
Re-explain

Evals are usually grouped by how the output gets graded, and four types cover most LLM applications. Code-based checks and reference-based scores are cheap and mechanical. LLM-as-judge and human review cost more, and they grade what fixed rules cannot express.

Type How it grades Best for Cost
Code-based checks fixed rules: JSON schema, regex, exact match, does it compile format, tool arguments, banned strings free, instant
Reference-based scores compares output to a known correct answer by exact match, F1 or embedding similarity classification, extraction, short factual answers cheap
LLM-as-judge a model scores the output against a rubric open-ended prose, tone, faithfulness cents per row
Human review people label a sample by hand ambiguous cases, ground truth slow, expensive

Run them cheapest first. Deterministic checks run on every commit and catch most breakage.

Word-overlap scores like BLEU or ROUGE are weak for open-ended answers, since many correct wordings score low. Human labels are the reference that shows whether the cheaper graders agree with people.

Real suites mix all four types over the same dataset.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for AI Evals & Observability One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. I group evals by how the output gets graded, and four types cover most LLM apps: code-based checks, reference-based scores, LLM-as-judge, and human review.
  2. Code checks apply fixed rules like a JSON schema, a regex or exact match, so they fit format and tool arguments, and they're free and instant.
  3. Reference-based scores compare the output to a known correct answer with exact match, F1 or embedding similarity, which works for classification, extraction and short facts.
  4. For open-ended prose, tone or faithfulness I use an LLM judge with a rubric, and I keep human review for ambiguous cases and for building ground truth.
  5. I run them cheapest first, with deterministic checks on every commit, and a real suite mixes all four over the same dataset, with human labels showing whether the cheaper graders agree with people.
  6. One thing I avoid is BLEU or ROUGE for open-ended answers, because many correct wordings score low on word overlap.

Weak answers to avoid

  • Lists benchmarks like MMLU instead of eval types Public benchmarks grade models, not your product. The question asks how you grade your app's outputs, so group the types by grading method.
  • Treats LLM-as-judge as the only eval A judge costs money on every row. Say that cheap code checks catch most breakage first, and judges cover what fixed rules can't express.
  • Uses BLEU or ROUGE for open-ended answers Word overlap scores many correct wordings low. For free-form prose, use a rubric-based judge and check it against human labels.
  • Names the types but never says when to use each A bare list sounds memorized. Tie each type to what it's best for and what it costs, and say you run them cheapest first.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the AI Evals & Observability cheatsheet.

← Back to all AI Evals & Observability questions
Pro · $10/mo

50 of 57 AI Evals & Observability answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime