Lattice
Skip to content

Few-shot prompting

Including worked examples in the prompt instead of only describing what you want.

By Entry last reviewedmethod

What it implies

The single highest-leverage prompting technique, and routinely skipped in favour of another paragraph of instructions. An example conveys format, tone and edge-case handling simultaneously, in a way that prose specifications approach but do not reach.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.