productinterview.tools
MenuClose

Code Check, LLM Judge or Human Review: How Would You Grade It?

The interviewer asksYou're building evals for an AI assistant that answers HR policy questions. How would you decide what to grade with code, with an LLM judge, and with people?

Model PMApplied AI PMAI Safety PM (secondary)CoreTechnical roundRepresentative5–7 min

On this page
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Start from the failure modes, ranked by severity. Wrong policy advice is the worst.
  2. Code checks for anything with one right answer: format, links that resolve, refusing out-of-scope topics.
  3. LLM judges for meaning: 'is every claim supported by the policy text?', given the policy as context.
  4. People (HR experts) for the reference labels that validate the judges, and for the riskiest topics.
  5. Pass/fail per criterion, never one 1–10 score.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Matching each failure mode to the cheapest reliable grader
  • Knowing what code checks can't judge
  • Using humans where they add the most: labels and high-stakes cases
  • Binary criteria over vague scales

How to structure your answer

  1. List the failure modes and rank them by how much harm they cause.
  2. For each one, ask: can code check it? If not, can a judge, given the right context? If not, a person.
  3. Explain how people keep the judges honest (validation labels).
  4. Close with the cost and coverage trade-off.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveMissed signalRevealed when asked
  1. Interviewer
    You're building evals for an AI assistant that answers HR policy questions. How would you decide what to grade with code, with an LLM judgeLLM-as-judge. Using a language model, with a rubric, to grade another model's outputs. Read the full explanation, and with people?
  2. Candidate
    I'd start from how it can fail, then pick a grader for each. Can I assume it answers from the company's policy documents?
  3. Revealed when asked
    Yes, it retrieves from about 300 policy documents.
  4. Candidate
    Then the failures I'd expect are: stating a policy that isn't in the documents, getting a detail wrong like the number of leave days, answering things it shouldn't, like legal advice about a specific dispute, broken links to policies, and tone that's off for sensitive topics.
  5. Interviewer
    Which matters most?
  6. Candidate
    Wrong policy advice. Someone could act on a wrong leave entitlement. Then answering out-of-scope legal questions. Tone and links matter less.
  7. Missed signal
    Should have ranked severity unprompted; it drives every grader choice.
  8. Interviewer
    So how do you grade each?
  9. Candidate
    Links are a code check: does each one resolve to a real policy page. Out-of-scope questions can be partly code: a test set of legal-dispute questions where the expected behaviour is to refer to HR, and a check that it didn't give an answer.
  10. Strong move
    Uses code for everything with one right answer.
  11. Candidate
    Whether the advice matches the policy needs meaning, so that's an LLMLarge language model. A model trained to predict the next token of text, used to generate and reason over language. Read the full explanation judge. I'd give it the retrieved policy text and ask one question: is every claim in the answer supported by this text? Pass or fail.
  12. Strong move
    Gives the judge the context it needs and a single binary criterion.
  13. Interviewer
    Why not ask the judge to rate overall answer quality from 1 to 10?
  14. Candidate
    Because nobody agrees what a 6 means, and a score doesn't tell you what's wrong. Separate pass/fail checks per failure mode are easier to trust and to act on.
  15. Interviewer
    Where do people come in?
  16. Candidate
    Two places. HR experts label a few hundred answers pass or fail, and I measure the judge against those labels before trusting it. And for the most sensitive topics, like disciplinary or medical leave, I'd keep a human review sample even after launch.
  17. Interviewer
    That's expensive. Worth it?
  18. Candidate
    For the labels, yes: a few hundred labels make thousands of judge runs trustworthy. For the sensitive-topic review, it's a small slice of traffic, and those are the answers where a mistake hurts most.
  19. Interviewer
    Summarise.
  20. Candidate
    Code for links and scope, a validated judge for policy accuracy, and HR experts for the labels and the highest-risk topics. All pass/fail, ranked by harm.

The strong answer, distilled

  • Failure modes, ranked by harm: wrong policy advice; out-of-scope legal or medical answers; sensitive-topic tone; broken links.
  • Code checks: links resolve; out-of-scope test questions get a referral, not an answer; format.
  • LLM judges, one per criterion, pass/fail: "Is every claim supported by the retrieved policy text?" with the text provided. A second judge for tone on sensitive topics.
  • People: HR experts label a few hundred answers to validate each judge (TPRTrue positive rate. Of the answers the expert passed, the share the judge also passed. Read the full explanation and TNRTrue negative rate. Of the answers the expert failed, the share the judge also failed. Low TNR means a lenient judge. Read the full explanation above 90%), and review a sample of sensitive-topic answers after launch.
  • Trade-off: human effort goes where it multiplies (labels) or where mistakes hurt most (sensitive topics).

This is one strong answer, not the only one.

How it's scored

Dimension Weak (2) Passable (3) Strong (5)
Failure modes Generic quality Specific modes Specific modes, ranked by harm
Grader choice One grader for everything Mixes graders Cheapest reliable grader per mode, with reasons
Judge design "Rate quality 1–10" Binary criterion Binary criterion with the policy text as context
Human role None, or everything Some human review Labels for validation, plus review of high-risk slices

Round scorecard: Model PM: technical round, filled in for the mock candidate

DimensionWeakPassableStrongThe mock candidate
Problem framingJumps to a method before saying what decision the eval supports.States the goal, but not who acts on the result or what threshold matters.Names the decision, the owner and the cost of each kind of error before choosing a method.Passable. Listed failure modes, but only ranked them by severity when asked.
Measurement rigourReports one accuracy number, or trusts the metric without checking it.Uses the right metrics but misses how the labels or splits could mislead.Separates error types, uses held-out labels, and says how they'd catch fooling themselves.Strong. Used binary criteria and planned to validate the judge on expert labels.
Technical depthUses terms loosely; can't say how the method works.Explains the method correctly when asked.Explains the mechanism unprompted and knows where it breaks.Strong. Correct on what code checks can and can't catch, and gave the judge the policy text.
Judgment and trade-offsTreats every option as equally good, or picks one without reasons.Names trade-offs but doesn't commit.Commits to a choice, states the trade-off accepted, and what would change their mind.Strong. Kept people for labels and the highest-risk topics, and explained the cost trade-off.
CommunicationHard to follow; no structure.Structured, but long or missing a summary.Signposts the plan, checks in, and lands a clear recommendation.Passable. Clear, but the summary came only when asked.

How the answer changes by role

Role What to emphasise
Model PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation Judge validation and how the suite gates model changes
Applied AI PM User harm from each failure, and the cost of human review
AI Safety PM Out-of-scope and sensitive-topic handling, and keeping humans on the riskiest slice

Common mistakes

  • Using an LLM judge for things a code check can verify
  • Asking a judge to check facts without giving it the source text
  • Treating human review as the default instead of the scarce resource
  • One overall quality score

More follow-ups to practise

  • "HR experts disagree with each other 20% of the time. Now what?" Hint: tighten the policy definitions before labelling more.
  • "How would you catch the assistant inventing a policy?" Hint: groundedness against retrieved text, plus questions about policies that don't exist.
  • "What changes if the assistant can also take actions, like filing a leave request?" Hint: outcome checks on the action.

Go deeper

Sources

Representative question: written to match what AI product interviews test on grading, not a specific reported interview.