Technique Aktualisiert 2026-04

Few-shot

Few-shot Learning
Definition

Few-shot involves providing a few examples in the prompt to guide the model toward the desired response format or style.

Häufig gestellte Fragen

How many examples for few-shot?
Generally 2 to 5 examples are sufficient. Beyond that, marginal gains diminish and you consume tokens unnecessarily.
Does few-shot work for images?
Yes. On Midjourney, providing reference images is a form of visual few-shot. On Stable Diffusion, LoRAs are few-shot for styles.