Conceptos Fundamentales

Few-Shot

Providing a small number of input-output examples in the prompt to guide the model.

Few-shot prompting includes 2–10 worked examples before the actual task, helping the model infer the expected format and reasoning pattern. This consumes more input tokens but often dramatically improves output quality and consistency, especially for structured tasks like JSON extraction or classification with custom labels.

Términos Relacionados