few-shot prompting

Including a few worked input and output examples in the prompt to show the model the task and format.

In more detail

Brown and colleagues showed in 2020 that large models learn from such demonstrations without retraining. Later work found that the format and label balance of examples matter as much as their correctness, and that their order alone can swing accuracy, so treat order as a parameter and measure every change.

Related terms

Taught in

References

Certification courses