# Few-shot prompting

Canonical page: https://www.theglitch.ai/ai-glossary/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.](https://www.theglitch.ai/images/cards/glossary/few-shot-prompting.png?v=516ce373d475685b)

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](https://www.theglitch.ai/ai-glossary/prompt) · [Fine-tuning](https://www.theglitch.ai/ai-glossary/fine-tuning) · [Held-out test set](https://www.theglitch.ai/ai-glossary/held-out-test-set)

## Try it here

[Build a prompt brief](https://www.theglitch.ai/tools/prompt-workbench)

## Guides that use it

[Prompting that actually works.](https://www.theglitch.ai/learn/prompting)

## Sources

- [Google: Prompt design](https://ai.google.dev/gemini-api/docs/prompting-strategies)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
