Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Final weekLesson 17 of 22
22 lessons

AI Evaluation

By Sourav Banerjee · Last updated 13 Oct 2026 · Report an issue

8 min readFrom the Forward Deployed library

Concise Interview Module

1. What the Interviewer Is Testing

  • Can you turn “good AI” into measurable criteria?
  • Can you evaluate retrieval, generation, agent operations, and task outcome separately?
  • Can you use deterministic checks and semantic review appropriately?
  • Can you connect offline tests to real production outcomes?

2. Core Mental Model

Customer outcome → Representative cases → Explicit rubric
                                               ↓
                  Component checks + end-to-end evaluation
                                               ↓
                      Release decision + production feedback

Good answer ≠ successful task.

RAG:   Find evidence → Use it correctly
Agent: Choose permitted operations → Complete actual task
Both:  Quality + safety + latency + cost

3. Essential Concepts

1. Define Success — Start From the Task

Agree on correct completion, unacceptable outcomes, and operating limits. A refund task succeeds only when the correct permitted refund is confirmed, not when the model says “done.”

“What must be true in the system of record for us to count this task as successful?”

2. Representative Dataset — Cover Real Work and Hard Cases

Include normal requests, ambiguous inputs, missing evidence, restricted data, tool failures, long workflows, and harmful instruction attempts. Separate development examples from held-out assessment.

Real task mix + edge/failure cases + critical segments
                         ↓
                Versioned evaluation set

“I’d report results by task and risk segment, not only one overall score.”

3. Retrieval Evaluation — Did We Find the Evidence?

Check relevance and recall against labelled evidence, with a defined retrieval cutoff. Inspect whether relevant content survives into final context.

Correct evidence absent → Retrieval/data problem
Correct evidence present → Inspect generation next

“I’d separate candidate retrieval from context selection so we know where evidence was lost.”

4. Answer Evaluation — Correct, Supported, and Useful?

Evaluate correctness, groundedness, relevance, citations, and appropriate limitation statements. Groundedness means claims are supported by evidence; stale evidence can still make an answer wrong.

“I’d check claim support and case correctness rather than reward the presence of a citation.”

5. Agent Evaluation — Inspect Operations and Outcomes

Check routing, tool selection, argument validity, access/policy compliance, observable trajectory, and actual completion.

Request → Tool request → Arguments → Result → Final state

Evaluate recorded operations and decision summaries, not private model chain-of-thought, which is often hidden and not always faithful. Allow different valid paths when the task permits them.

“The response and the enterprise state must agree about what actually happened.”

6. Deterministic Checks — Test Explicit Conditions

Use code or trusted assertions for schemas, required fields, known tool permissions, policy boundaries, duplicate effects, latency limits, and confirmed final state.

Valid tool arguments? Authorized action?
Correct order updated? No duplicate refund?

“I’d use deterministic checks wherever the requirement has an unambiguous test.”

7. Semantic Evaluation — Use Clear Rubrics

Human or model-assisted judges can assess relevance, completeness, explanation quality, and claim support. Calibrate against expert labels and inspect disagreements.

“A judge score is evidence from a rubric, not an unquestionable ground truth.”

Keep judged content separate from judge instructions. Track judge/rubric versions and limitations; do not rely on the same model's self-confidence as proof.

8. Offline vs Online — Test Before and Observe After Release

Offline evaluation supports repeatable candidate comparisons. Online evaluation uses production traces, outcomes, overrides, and user feedback to detect real behaviour and drift.

Offline cases → Candidate comparison → Release gate
Production → Outcomes / traces → New cases / regression checks

User ratings are useful but biased and incomplete. Reopened tickets or incorrect downstream state can contradict a positive rating.

9. Compare and Diagnose — Quality Within Operating Limits

Compare candidates on the same task set with quality, policy, latency, and cost criteria. Repeat or quantify uncertainty for variable behaviour where needed.

“I’d locate the failing stage and critical segment before claiming an overall improvement.”

4. Requirement → Component Reasoning

Requirement Evaluation pattern Why Trade-off
Verify enterprise knowledge answers Evidence labels + claim rubric Separate retrieval and generation Labelling effort
Confirm business actions Tool/state assertions Check real completion Test-system integration
Detect policy violations Boundary and permission cases Check critical constraints Maintaining realistic cases
Assess open-ended quality Calibrated human/model rubric Score semantic properties Judge variability
Compare candidates Versioned held-out benchmark Repeatable comparison Coverage limits
Catch production regressions Outcome/traces + feedback Observe actual workload Delayed/noisy labels

Support example: evaluate policy retrieval and answer support, order tool arguments, refund approval, confirmed payment state, duplicate prevention, and resolution/reopen outcomes. Report latency and cost alongside task success.

5. Important Distinctions and Gotchas

  1. Retrieval vs generation: missing evidence and mishandled evidence need different fixes.
  2. Groundedness vs correctness: evidence support does not establish freshness or applicability.
  3. Deterministic vs semantic: explicit assertions vs rubric-based judgement.
  4. Offline vs online: controlled comparisons vs actual production behaviour; neither replaces the other.
  5. Response quality vs completion: polished language cannot prove a cancelled order or issued refund.

6. Trigger → Concept Table

Hear… Think… Evaluate…
“Wrong policy retrieved” Retrieval Relevant evidence at cutoff
“Right policy, unsupported claim” Generation Claim support and rubric
“Says cancelled, order active” Task success Confirmed downstream state
“Wrong tool arguments” Deterministic checks Schema and task-specific values
“New prompt better on 20 cases” Coverage/uncertainty Held-out segments and failures
“Ratings high, tickets reopen” Online outcomes Resolution and delayed feedback
“Judge approves everything” Calibration Expert disagreements and rubric

7. Interview Phrases

“I’d evaluate retrieval, generation, and final task completion separately.”

“I’d use code for explicit assertions and calibrated rubrics for semantic quality.”

“I’d report critical segments and failure cases instead of hiding them in an average.”

“Offline evaluation informs release; online outcomes show whether it works in practice.”

8. Practice Questions

  1. Design evaluation for policy answers and an action-taking refund workflow.
  2. Which assertions can be deterministic, and which need semantic judgement?
  3. A model cites the wrong policy but sounds correct. How do retrieval and answer checks catch it?
  4. The response says an order was cancelled, but it remains active. What evidence proves failure?
  5. A candidate improves overall scores but fails more high-risk cases. How do you make the release decision?

Rate your confidence and keep notes on the module page.