Few-Shot Learning

Level 2

Short Description

A prompting technique where a model is given a few examples of the desired task in the prompt to guide its response.

Friendly Description: Few-Shot Learning is when you teach an AI what you want by showing it just a handful of examples right inside your prompt. It's like training a new coworker by saying, "Here are three emails I wrote in my voice. Now write me a fourth in the same style." That tiny demonstration is often enough for the AI to follow your lead.

Example: If you want an AI to extract names and phone numbers from messy text, you might paste two or three short examples showing the input and the cleaned-up output you want. After seeing those few shots, the AI can reliably do the same thing for hundreds more entries.