Skip to content

Prompting

Few-shot prompting

Giving a model a small number of examples to demonstrate the desired pattern.

Example

A prompt supplies three approved email examples so the assistant can follow their style.

Why people use it

Knowing how “Few-shot prompting” works helps teams give models clearer instructions and diagnose weak prompts.

What you'll hear

“Can we improve this with Few-shot prompting before we change the model?”

Related terms