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

How do you evaluate an LLM-powered feature before and after launch?

What the interviewer wants to hear

  • Build a test set from real queries and edge cases with expected outcomes
  • Mix code-based checks, LLM-as-judge with rubric, and human review
  • Evaluate components separately (retrieval, generation)
  • Run evals on every change like regression tests
  • Online: user feedback, task success, cost and latency monitoring

Model answer

Before launch I build an eval set of real or realistic inputs, including common cases, edge cases and adversarial ones, with expected outcomes or grading criteria. I use the cheapest reliable grader for each check: code checks for format, exact values and JSON validity; an LLM judge with a clear rubric for qualities like helpfulness and faithfulness to sources; and human review on a sample, which I also use to calibrate the judge. For RAG I evaluate retrieval separately with recall at k, then generation for correctness and citation support. I run the suite on every prompt, model or pipeline change and compare per category to catch regressions. After launch I track thumbs up and down, task completion, escalation rate, latency and cost, and regularly add failed production cases back into the eval set.

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