Structured output interview questions
LLM output validation
Why validate model output before using it? (Easy)
A reply should be JSON and arrives wrapped in a code fence. How do you handle it? (Medium)
What should happen when validation still fails after retries? (Hard)
How do you validate free-text output that has no schema? (Extra hard)