Skip to content
RED SAGSkills
mediumAI Engineer (LLM & Generative AI) interview question

How would you build and maintain a golden evaluation set for an LLM feature?

What the interviewer wants to hear

  • Start from real user inputs covering common and edge cases
  • Define expected outputs or rubrics with domain experts
  • Include known failures and adversarial cases
  • Version the set and run it on every prompt or model change
  • Refresh it from production as traffic changes

Model answer

I start from real inputs, sampled from logs or pilot users, so the set reflects actual traffic rather than what I imagine. I make sure it covers the main intents plus edge cases: empty input, long input, other languages, and questions we should refuse. For each case I write an expected answer or a grading rubric together with domain experts, since some tasks have many valid answers. Every bug report becomes a new case, so past failures never quietly return. The set is versioned in the repo and runs in CI on every prompt, model or retrieval change, with results compared per category. I keep it large enough to detect the size of change we care about, and refresh it regularly from production so it follows shifts in what users ask.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium AI Engineer (LLM & Generative AI) questions