Quiz 10 Question 16 of 20

A software company's internal automation pipeline calls a Foundry-hosted chat model to extract invoice fields (vendor name, invoice number, total amount) from emailed PDFs and passes the result straight into an accounting API that requires a fixed set of named fields with no extra text. In several test runs the model wrapped its answer in a sentence like 'Here is the extracted data:' before the values, which broke the automated parser. Which approach should the team use so the model reliably returns only the required fields in a parseable form?

Select an answer to reveal the explanation.

Motivation