Question 450
A model endpoint returns a JSON envelope but the application saves the entire envelope as the business answer. Which technical action BEST resolves the primary problem?
Explanation
Correct Answer
Parse the supported response schema and extract the correct generated content field. This targets the primary issue because HTTP response metadata and generated text are different parts of the payload. Verification: A fixture response yields the expected text without transport headers. Prevent recurrence: Version and validate provider schemas.
Incorrect Answers
Generated output is not guaranteed to follow instructions unless independently checked.
Data minimization reduces prompt exposure and cost without losing relevant context.
Numeric reconciliation is a structured calculation, not a reason to hallucinate an answer from documents.