Artificial Intelligence

Few-Shot Prompting

A prompt engineering technique where a small number of input-output examples are provided before the actual query, demonstrating the desired format and behavior to the model.

Why It Matters

Few-shot prompting is the most practical way to customize LLM behavior without fine-tuning. 3-5 good examples can dramatically improve output quality.

Example

Providing 3 examples of product descriptions in your brand's tone before asking the model to write a 4th — it matches the style consistently.

Think of it like...

Like showing a new employee examples of completed work before asking them to do a similar task — the examples communicate expectations better than abstract instructions.

Related Terms