Technique Atualizado 2026-04
Few-shot
Few-shot Learning
Definição
O few-shot consiste em incluir alguns exemplos no prompt para guiar o modelo até o formato ou o estilo de resposta desejado.
Veja também no glossário
Z
Zero-shot
Zero-shot enables a model to accomplish a task without any prior examples, solely from the instruction.
P
Prompt
A prompt is the instruction or question you give an AI to get a response. It's the interface between you and the model.
P
Prompt Engineering
Prompt engineering is the art of crafting precise instructions to get the best results from an AI model.
L
LLM (Large Language Model)
An LLM is an AI model trained on billions of texts, capable of understanding and generating human language.
Ferramentas que usam few-shot
Perguntas frequentes
Quantos exemplos são necessários no few-shot?
Em geral, de 2 a 5 exemplos são suficientes. Além disso, o ganho marginal diminui e você consome tokens desnecessariamente.
O few-shot funciona para imagens?
Sim. No Midjourney, fornecer imagens de referência (image prompts) é uma forma de few-shot visual. No Stable Diffusion, os LoRAs são o few-shot para estilos.