SpinTheMic
Pro

Interview practice question

Outputs sometimes break the expected format

Machine Learning · LLM Evaluation · Beginner

Your app expects JSON from the LLM, but about 3 percent of responses fail to parse. How do you evaluate and fix this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Code check measuring parse/schema validity rate.
  • Use structured outputs / constrained decoding.
  • Validate schema; retry with error message.
  • Track rate in production.
  • Add failing examples to tests.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics