Question 1
Topic: Design Applications
Skill tested: Selects prompt structure and output constraints to elicit reliably formatted model responses.
A claims-operations team uses an LLM to classify incoming notes into a downstream JSON workflow. The consumer requires exactly three keys: `category`, `urgency`, and `summary`; `urgency` must be one of `low`, `medium`, or `high`. The model often adds prose before the JSON or invents new urgency labels. The team needs to improve adherence through prompt design, without adding a separate parsing or validation service. Which change is the best first step?
Explicitly specifying the required keys, permitted enum values, and JSON-only response addresses both the structural and vocabulary failures. A representative example further clarifies the expected format. Concision alone does not constrain the schema, removing a required field violates the consumer contract, and placing a schema after user content without clear instructions may not resolve the behavior. Higher temperature generally increases output variability rather than improving adherence.