AI Dictionary › Prompting
Few-shot prompting is the technique of providing the model with 2-5 examples of desired input and output before presenting the actual task. The examples act as a "demonstration" of what is expected, guiding the model toward the correct format, tone, and level of detail.
For example, to classify customer support emails by urgency, you can include 3 emails already classified as "High / Medium / Low" urgency before asking for classification of the new email. The model learns from the pattern of the examples and applies the same criterion to the new input.
Few-shot prompting is particularly effective when: the output format is very specific, the task requires a precise style or tone, the domain is technical and needs specialist terminology, or the model tends to misread the request in zero-shot mode. It's one of the most powerful techniques available to those who know how to build sophisticated prompts.
From our network
HSE Genius: AI for Safety Data Sheets
Extract SDS data, H phrases and ECHA compliance checks in seconds, powered by AI.
Visit hsegenius.com →From the Agora Intelligence blog
Say what you mean. Get what you need.
Grace Certified, the AI coach that trains and certifies your prompt engineering, by Agora Intelligence.