CCAR-F practice › Prompt Engineering & Structured Output · Question 71 of 105
Prompt Engineering & Structured Output
A review prompt contains a detailed paragraph specifying that every finding must include location, issue, severity, and suggested fix. Output still varies: some findings are prose paragraphs, some are bullets, and some omit the fix. What is the most effective next step?
Show answer and explanation
Answer: C — Add a few examples, each showing one finding in the exact four-field format
When detailed instructions alone produce inconsistent output, few-shot examples demonstrating the exact format are the most effective technique. Repeating (a) or emphasizing (b) the same instruction rarely changes the result, and max_tokens (d) isn't the cause when findings are short and still missing fields.
Keep going
More Prompt Engineering & Structured Output questions
- A test-generation reviewer is inconsistent about whether an untested error branch counts…
- An extractor pulls sample size from research papers. It is accurate when the paper has a…
- A pipeline prompts Claude to "reply only with a JSON object," but roughly 5% of…
- A ticket classifier uses a closed enum of five categories. New kinds of tickets, such as…
- An intake pipeline has three extraction tools (invoice, receipt, contract) and doesn't…