Techniques

Few-shot Prompting

Also known as: few shot, n-shot

In one line

Giving the AI a handful of examples in the prompt so it copies the pattern.

What does Few-shot Prompting mean?

Few-shot prompting shows the model 2-5 input/output pairs before asking it to complete a new one. It dramatically improves consistency on formatted tasks without any training.

A real-world example

Showing 3 example product-description → tweet conversions before asking for a new one.

Related terms