AlgoViz

Prompt patterns and reasoning strategies

medium 7 min

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

Trace the example

Follow the evidence through each stage, then test a change in the case.

Prompt an extractor to handle an absent date

Prompt an extractor to handle an absent date. Selected component: Task template inside Application.
Open full-size diagram

Application

Extract due_date or null

State the output contract and evidence boundary. Include one example with a date and one example where the date is missing.

An expanded prompt improves dated invoices but assigns dates to every missing case. Which metric reveals this?