Prompting concept illustration

Prompting

Few-shot

Giving a model a handful of examples in the prompt so it copies the pattern. More reliable than zero-shot, but the examples add input tokens.

In practice

Show three "review → label" pairs, then ask it to label a fourth.

Related terms

See what your tokens really cost

Track usage and spend across every model and platform, free.

Image: Aedrian Salazar on Pexels. Definition free to reuse under CC BY 4.0.