IT lexicon AI & ML Few-shot prompting

Few-shot prompting

AI & ML På svenska → Updated: 2026-05-23

Giving an LLM a few examples in the prompt before asking — the model mimics the pattern.

"Translate: dog → hund. cat → katt. horse → ?". Surprisingly powerful — the model learns "in-context" without retraining. Opposite: zero-shot (no examples).

← Back to the lexicon