Skip to content
anythingai.space
Prompting & Contextbeginner10 min · 8 steps

Few-Shot and In-Context Learning

Teach a task with examples in the prompt instead of training: how many, which ones, in what order, and when many-shot beats fine-tuning.

free textTHREE RUNS, THREE FORMATSSentiment: neutral-ishMIXED!!It seems mixed because…Review“okay weather, late flight”LLMzero-shotParserexpects one label
requesterrordataresponse
1 / 8
ProblemStep 1 of 8

Zero-shot, the labels drift

You ask a model to label review sentiment. The review is “The weather is okay, but the flight was late.” Without examples, the model has to invent the label set and the output format, and it invents a different one on each run.

Your parser expects exactly Sentiment: Mixed. It gets prose.

Lesson 2 of 8 in Prompting & Context