← All practice questions
QUESTION 112 OF 245Domain: Prompt Engineering & Structured Output
A source document sometimes lacks a field, but your schema marks it required. What happens, and what's the fix?
Show answer and explanation
Answer: A
A required field on possibly-absent data pressures the model to invent a value. Make it optional/nullable so it can correctly return null.
جو ڈیٹا شاید ہو ہی نہ، اسے لازمی خانہ بنانا ماڈل کو قدر گھڑنے پر مجبور کرتا ہے۔ اسے optional/nullable بنائیں تاکہ وہ درست طور پر null دے سکے۔
One practice question a week
Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.
We only use your email for these updates. See our privacy policy.