What is the difference between zero-shot and few-shot prompting?easy

Type
conceptual
Topic
zero-shot-few-shot
Frequency
common
Tags
zero-shot, few-shot
Answer

Zero-shot prompting gives only instructions, while few-shot prompting includes examples of the desired input-output behavior.

Explanation

Few-shot examples help the model infer style, structure, edge cases, and label definitions. They are useful when the task is ambiguous or format-sensitive, but they consume context and can bias the model.

Follow-upWhen would you avoid few-shot examples?