Plain-English AI definitions for legal professionals. For what bars actually require, see the Legal AI Compliance Register.

Few-shot prompting

Using AI Last reviewed 2026-06-11

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

About the editor: MHSB Solutions, Research desk. MHSB Solutions is not a law firm. This glossary is educational information, not legal advice.

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.