Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M9158

Few-shot Prompting

Few-shot Prompting
TechnicalmediumArtificial Intelligence
Included
account_tree

Updated 2026-08-15

Loading revision record…

INTRODUCTION

English translation pending.

CORE DEFINITION

Few-shot prompting places a small number of input-output examples, typically three to five, inside the prompt so the model infers the task format and pattern from them, a behaviour known as in-context learning. The model's parameters are not updated. The qualification is that example quality and consistency matter more than quantity, since contradictory or noisy examples degrade performance rather than improving it.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

- Use Example Selection: pick a few examples that cover the boundary cases of the task. - Use Format Consistency: keep every example in the same structure so the pattern is unambiguous.

anchor

Anchor fast decisions

The model conditions its output on the whole prompt, so examples act as a specification expressed in the target format rather than in instructions. Because the pattern is demonstrated rather than described, formats and edge-case handling that would be tedious to state in words are conveyed directly.

MINIMUM ACTION

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Prompt_engineeringZH · Explicit
    verified

RELATED MODELS