One-Shot Prompting
Definition
One-shot prompting shows exactly one example of the desired result.
A prompting method that contains exactly one input-output example to illustrate the desired task.
Simply explained
You perform a task once and then give the new task in the same pattern.
Why it matters in practice
Supports informed decisions, governance, and effective AI deployment.
Example from business
An extraction prompt shows the desired JSON format once and then the new text.
Limits and pitfalls
- Treating example as guarantee, providing wrong pattern, or inserting confidential data in prompts.
Origin & history
One-shot prompting is a special form of in-context learning and was popularized with large language models.
Use in mid-sized companies
- Possible application: An extraction prompt shows the desired JSON format once and then the new text.
Frequently asked questions
What does prompting with one example mean?
A prompting method that contains exactly one input-output example to illustrate the desired task.
Which mistakes should be avoided?
Treating example as guarantee, providing wrong pattern, or inserting confidential data in prompts.
Sources
Source checked on 10.10.2026. Editorial application examples are hypothetical; no evidence of real customer results.
Editorially reviewed on: