MemotivaPrompt Engineering Patterns: Instruction Following, Negative Constraints, and Output Format Control

How do you handle ambiguous user inputs in a prompt?

Prompt Engineering Patterns: Instruction Following, Negative Constraints, and Output Format Control

Audio flashcard · 0:17

Nortren·

How do you handle ambiguous user inputs in a prompt?

0:17

Handle ambiguity by instructing the model to ask clarifying questions when input is unclear, by providing fallback behavior for missing information, by listing common ambiguities and how to resolve them, or by rephrasing the user's input internally before answering. Never let the model silently guess in high-stakes applications.
docs.anthropic.com