AlgoViz

Prompt patterns and reasoning strategies

medium 7 min

A prompt specifies a task using instructions, examples and supplied facts.

Where it shows up

The same pattern appears across everyday software.

  • Prompt an extractor to handle an absent date

    State the output contract and evidence boundary. Include one example with a date and one example where the date is missing. The document contains payment terms, but no calendar date. A valid test includes this exact distinction. The evaluator checks an absent value and verifies that the system did not invent a date. More elaborate reasoning is useful only if it improves this result.