Few-shot prompting
Definition Including a handful of worked examples in a prompt—inputs paired with the desired outputs—so the AI model learns the pattern and applies it to new material. Often markedly improves accuracy and formatting consistency.
In more depth
The examples demonstrate, rather than describe, what good output looks like: show three clauses labeled the way you want, and the model labels the fourth the same way. No training occurs—the examples sit in the prompt and influence only that exchange. Few-shot prompting is among the most reliable techniques for getting consistent results on repetitive legal tasks such as document coding or clause extraction.
Related terms
Educational information, not legal advice. AI terminology and tools change quickly; definitions reflect usage as of the last-updated date. For what bar associations and courts actually require of lawyers using AI, see legalaicompliance.help and consult a licensed attorney in your jurisdiction.