In prompt engineering, what does “few-shot prompting” typically involve?

Answer

Providing several example input-output pairs before the task

Explanation

Few-shot prompting gives the model concrete examples so it can infer the desired pattern and format for new inputs.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list