Prompting · 2026-09-12

You need output in a very specific, unusual format.

Your long prose description of the format keeps being approximated, not matched.

  1. ADescribe the format in even more detail
  2. BShow two or three concrete input→output examples in the exact format
  3. CLower the temperature to 0
  4. DRepeat the format instruction at the end of the prompt too

Answer: B

Show two or three concrete input→output examples in the exact format

Why

For an idiosyncratic format, a few worked examples convey the exact shape far more reliably than any prose description. Show, don’t just tell - few-shot pins down what instructions only approximate.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path