few-shot prompting

Providing a small number of input-output examples in the prompt to demonstrate the desired format, tone, or reasoning pattern.

Syntax

prompt-engineering
Example 1: Input -> Output
Example 2: Input -> Output
Now: [actual input] ->

Example

prompt-engineering
Prompt:
"Classify sentiment as POSITIVE or NEGATIVE.

Review: 'Great product!' -> POSITIVE
Review: 'Total waste of money' -> NEGATIVE
Review: 'Arrived fast and works perfectly' ->"