What's new
Techniques & Methods

Few-Shot Learning

Definition

A prompting technique where you provide a small number of examples (typically 2-5) in your prompt to show the model the pattern or format you want. The model learns from these examples to produce similar outputs.

In Plain English

Teaching the AI by showing examples. Instead of explaining what you want, you show it: "Here's example input 1 and its ideal output. Here's example 2 and its output. Now do the same for this new input."

Related Terms