AI Engineer Interview Question

How do you evaluate an LLM feature before it goes to production?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Define what good means for this feature, then build a test set from realistic inputs, including the awkward ones. Use exact checks where you can, such as valid JSON or the right tool called, rubric grading by people or a calibrated model judge for open answers, and separate metrics for retrieval. Agree a pass bar before launch, then run the suite on every prompt or model change so it works as a regression test.

Why interviewers ask this

Without evaluation, LLM work runs on gut feel, and interviewers have seen plenty of teams ship on the strength of a few good demos. They want to hear that you build a representative dataset, choose checks that match the task, mix cheap automatic scoring with human judgement, and keep the suite running as a regression test. Admitting that the first test set always misses real user behaviour, and that you refresh it from production, shows maturity.

How to structure your answer

  • Define success for the feature in concrete terms first.
  • Build a test set from real or realistic inputs, edge cases included.
  • Match each quality to a check: code, rubric or human review.
  • Run it as a regression suite and refresh it from production.

Example answer

Spoken example, first person

I start by writing down what good means for this specific feature, because summarise this ticket and answer from the policy handbook fail in completely different ways. Then I build a test set. Ideally that is real inputs from logs or from the team who will use it, a couple of hundred to begin with, deliberately including the nasty ones: vague questions, questions the documents cannot answer, very long inputs, attempts to drag it off topic. For each quality I pick the cheapest reliable check. Format and tool choice I check with code. Factual answers get a reference answer and a rubric, scored by a model judge that I have first compared against a few dozen human gradings, so I know where it agrees with us. Retrieval I measure separately. Before launch the team agrees a bar, for example no failures on the must pass cases and a target rubric score. After launch the suite runs on every prompt or model change, and I keep adding real failures from production, because the first test set never fully matches how users behave.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How big does a test set need to be before you trust it?
  • How would you evaluate a feature where there is no single right answer?
  • What would you do if the automatic scores and user feedback disagree?

Related ai engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot