CCARF Practice Question

Paper 1 · Question 26

D4 Prompt Engineering & Structured Output · Paper 1

An extraction pipeline uses `tool_use` with a 15-required-field schema. For some document types, only 8 of those fields ever appear in the source material. The model consistently fabricates plausible values for the missing 7, and the instruction 'do not fabricate data' has not helped. Should the team (A) keep all fields required and add post-extraction validation, or (B) redesign the schema? Which is correct and why?

Show answer & explanations

Correct answer: B

Related Prompt Engineering & Structured Output questions

Paper 1 Q14A validation-retry loop still fails on the same documents after three attempts each. In which situations will further retries not help? (Sel…Paper 1 Q17Your data extraction pipeline uses tool_use with tool_choice set to 'auto'. You need guaranteed structured output for every request, but som…Paper 1 Q18Your extraction pipeline validates that line item amounts sum to the stated total. For Document A, the sum is £450 but the stated total is £…Paper 1 Q25The pipeline validates each tool_use extraction against a Pydantic model with model_validate(). Validation succeeds and every field has the …Paper 1 Q28An extraction pipeline processes 50-page legal contracts in a single API call. It captures parties and dates from the first few pages but mi…

More: Paper 1 · All practice questions