Skip to content

Glossary: Building with LLMs Basics

Few-shot prompting

Also written: few-shot, shot

Showing a model a few example input and output pairs, written as earlier messages, so it copies their style and format. Two or three examples that differ in topic work best.

Where the book teaches it

Related terms

System prompt