What is Few-Shot?
Prompting
Few-Shot Learning — Providing a small number of examples (2-5) in the prompt to guide the model output format and behavior. A key prompt engineering technique for improving LLM accuracy.
FAQ
What is few-shot learning?
Including 2-5 examples in your prompt to show the model what output format and behavior you want.
How many examples do I need?
Usually 3-5 is optimal. More examples use more tokens (cost) with diminishing returns.
Related Terms
Learn Few-Shot in depth
Free hands-on course with code examples and Google Colab notebooks.
Start Course →