Topic overview: practice interview questions.

Build this in an afternoon. Pick a task with an answer key.

Good choices include extracting invoice fields, classifying support requests or turning a job description into a structured role brief. Avoid a general chatbot. It is hard to judge a vague task, and an interview exercise with no clear pass condition turns into opinions about which model felt smarter.

The goal is not to announce a universal winner. It is to make a choice for one job under stated constraints, then show an interviewer how you reached it.

Define the task contract

Write a short contract before comparing models. It should answer five questions: who uses the output, what fields are required, which source defines the correct answer, what failure is unacceptable and what operating limit matters.

For an invoice extractor, the user may be an operations analyst who needs vendor, invoice date, currency, total and purchase-order number. The source of truth is the uploaded invoice. An unacceptable failure might be inventing a missing purchase-order number. The operating limit could be a response time and spend that fit a batch workflow.

Keep the scope narrow. If you ask a system to “understand invoices,” you will not know what it did well or badly. If you ask it to return five named fields with evidence from a supplied document, you can check the result.

Write a schema too. Use an explicit JSON shape, valid field types and a rule for missing data. A field that is absent should be null or a defined status, not a plausible guess. Structured output is not proof of correct meaning, but it exposes an important production condition: can the rest of the application consume the response safely?

Build a small evaluation set

Create 30 examples. Divide them on purpose. Use ordinary documents, messy layouts, missing fields and traps that resemble routine mistakes. Include different date formats, invoices with multiple totals, currencies that are easy to confuse and documents where a purchase-order number appears in a footer but does not belong to the invoice.

Label the expected result before running either model. Record the source passage or page that supports each field. This matters because you need to distinguish a model error from an unclear label you wrote after seeing the output.

Thirty cases will not establish production readiness. They can teach you the mechanics of an evaluation and give you a defensible interview story. Stanford’s AI Index records rapid progress across many tasks while also showing that results vary with the task and evaluation setup. Your small set is a way to see that variation instead of hiding it behind a public leaderboard.

Keep a short holdout set. Do not look at it while revising prompts or validators. After you make changes, run the holdout once. If every test example shaped the prompt, you are measuring how well you tuned to your own worksheet, not whether the approach transfers.

Compare two candidates fairly

Choose two models because they fit the stated constraints, not because they are the two names you saw most recently. One may be a hosted option with a clear structured-output feature. The other may be an option with different price, latency, deployment or data-handling characteristics. Write down the exact identifiers and access date. Vendor aliases, availability and behavior can change, which is why current documentation and deprecation notices matter.

Run the same inputs through both systems with the same prompt, temperature, validator and retry policy. If one system needs a different prompt to work, record that fact and decide whether prompt maintenance is part of the operating cost. Do not let one candidate have a generous retry loop while the other gets one attempt, then call the comparison fair.

Record four primary measures:

  • Valid-output rate: did the response match the agreed schema?
  • Field accuracy: did each extracted value match the answer key?
  • Latency: how long did the request take under the same conditions?
  • Cost: what did the request consume under the same usage pattern?

Add an error label to every failure. Examples include wrong value, missing value, unsupported value, wrong document region, invalid JSON and timeout. Aggregate scores help choose, but error categories tell you whether the system is safe enough for the job.

Read the failures yourself

Read at least ten failures by hand. This is where the exercise becomes useful.

Suppose Model A has a higher field-accuracy score but often turns missing purchase-order numbers into invented values. Model B returns null more often and takes 400 milliseconds longer. The right choice depends on the workflow. If an analyst can fill in missing fields but cannot safely detect invented ones, Model B may be the better starting point despite the lower headline score.

Now test a decision boundary. Choose the condition that routes a document to review: an invalid response, low confidence if your system supports it, a missing critical field or a mismatch between two checks. The boundary needs a real next action. “Ask a human” is incomplete until you say who sees the case and what they receive.

NIST’s AI Risk Management Framework calls for documented test sets, metrics and system behavior under conditions similar to deployment. Your afternoon lab is modest, but it teaches the right discipline: make the evaluation visible before a decision is made.

Give the interview answer

Bring a one-page table to a mock interview. It should list the task contract, the 30-case mix, the two model identifiers, the four measures, the most serious failure category and your decision.

Then say this in your own words: “I selected this model for this extraction task because it met the schema and accuracy threshold on the cases that matter, and its failures were easier to route. I would not call it a final production choice because the set is small. My next step would be a larger evaluation set and a limited workflow test.”

Use Openskill’s curated interviews and an interview track for AI engineering to rehearse the follow-ups. Openskill gives you a repeat session after you review the failure table. Expect questions about your labels, the missing cases, model changes and what would change your recommendation. Those questions are the exercise.

Test the answer in a live mock interview at Openskill.