Few-shot prompting

Including a small set of example inputs and desired outputs to demonstrate the task or response pattern.

Few-shot prompting, common card #089 in The Glitch AI glossary: Including a small set of example inputs and desired outputs to demonstrate the task or response pattern.
GLS 089 · common

Also called: Few-shot, In-context examples.

For: Beginner · Creators · Builders

Why it matters

A couple of good examples often fix format and tone faster than paragraphs of instructions.

In practice

Show two well-labeled bookmarks before asking the model to label a third.

Watch for

Examples can teach the wrong pattern. Include varied cases and keep final evaluation examples separate.

Related terms

Prompt · Fine-tuning · Held-out test set

Try it here

Build a prompt brief

Guides that use it

Prompting that actually works.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term