- Glossary
- Few-shot prompting
Glossary term
Few-shot prompting
Including a few worked examples of input and desired output in the prompt so the model copies the pattern.
Also called few-shot, few-shot examples, multishot.
Open lesson 12.4
Few-shot vs step-by-step reasoning · Chapter 12, and 4 more lessons below
In plain words
Examples are powerful: make them varied and representative, or the model will copy their quirks.
Taught in
- 12.4Few-shot vs step-by-step reasoningChapter 12, Few-shot examples · main lesson
- 4.4Where embeddings show up in real systemsChapter 4, Embeddings and semantic search
- 12.1When examples beat instructionsChapter 12, Few-shot examples
- 54.4Procedural memory: how to do thingsChapter 54, The memory types map
- 28.3Reading a model card and benchmarksChapter 28, Open-weight models
Also in these lessons
BenchmarkEmbeddingEmbedding modelEvalModel cardOpen-weight modelProcedural memorySemantic search