← All practice questionsAn extraction marks a field
QUESTION 126 OF 245Domain: Prompt Engineering & Structured Output
An extraction marks a field required, but some documents genuinely lack it, and the model keeps inventing values. Fix?
Show answer and explanation
Answer: A
A required field on possibly-absent data pressures the model to hallucinate. Making it nullable lets the model correctly return null instead of fabricating a value.
جو ڈیٹا شاید ہو ہی نہ، اسے لازمی خانہ بنانا ماڈل کو باتیں گھڑنے پر مجبور کرتا ہے۔ خانے کو 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.