3. Process Flow
4. Caveats
5. LLM Prompt Engineering Techniques
6. Text-to-Image Prompting Engineering Techniques
5.3. Few-shot Prompting
It refers to the ability of a model to understand and generate appropriate responses to a given input after being provided with a small number of examples or training data for that specific task or prompt.
In few-shot prompting, the model leverages its general understanding of language and knowledge acquired during the pre-training phase, as well as the limited examples provided, to generate meaningful responses to new prompts. This approach allows AI models to quickly adapt to new tasks with minimal additional training, demonstrating their flexibility and capacity to handle a wide range of situations and problems.
Demonstration 1:
Input: "happy"
Output: "joyful, content, delighted"
Demonstration 2:
Input: "cold"
Output: "chilly, freezing, frosty"
New Prompt:
Input: "quick"
"fast, rapid, swift"
Start with zero-shot, then few-shot (example), neither of them worked, then fine-tune.
← Previous
On this page: