SECAI Core · phase 5 of 15 · noun

One-shot prompting

An AI prompting technique where one example input-output pair is included in the prompt before the real query so the model can learn the desired format or behavior from that example and apply it to the new request

The Explain card

Plain English
One-shot prompting includes a single example input and output in the prompt before the real query, so the model can copy the desired format or behaviour.
Example
A prompt shows one log line and the exact JSON the analyst wants, with fields for source IP, event and severity. Then it supplies a new log line. The model mirrors the structure, producing output a script can parse without surprises.
Why it matters
One example sharpens consistency and output format, which matters when downstream automation consumes the result. It also means the example itself must be trustworthy, since the model will imitate mistakes and anything else hidden in it.
Hook
One-shot is "do it like this one", so pick a good "this one".

Word knowledge

How the word is built, where it came from, and what it sits beside in memory.

In a sentence

The log-parsing job uses one-shot prompting, putting one labeled syslog line and its JSON above the next unread event.

Why these words
  • one-shot Old English ān, a single unit, plus sceot, a missile or a try the hyphenated adjective that sets the count at a single try
  • prompting Latin promptus, brought forth, from promere, plus English -ing the head noun that names the writing of the cue
Where it came from
Origin
English collocation from one-shot (Old English ān, one, plus sceot, a try) and prompting (Latin promptus, brought forth, from promere)
Entered the language
c. 2020
What changed
One has meant a single unit since Old English. Shot meant a missile, then a try, then a photographic exposure, then a film take. English hyphenated them for work finished in a single take, then for a monostable circuit pulse. Vision papers around 2006 used one-shot for classification from a lone labeled picture. The GPT-3 paper of 2020 applied the same count to prompting, and the three-word phrase became the usual label for a cue that carries one worked sample.
How it is spelled
Pattern
hyphen joins a numeral to a noun used as an adjective: one-shot, not oneshot or one shot
Pattern
Latin -pt- stays a cluster, never simplified to -t-
Pattern
-ing turns a verb into a noun of activity
Breaks the pattern
one-shot keeps its hyphen as a unit; prompting stays a free word
Breaks the pattern
one is not spelled like its homophone won
Breaks the pattern
shot is noun, verb, and past of shoot with no spelling change

Spelled like

  • one-off
  • one-time
  • attempt
  • exempt
Broken into chunks
  • one
    • someone
    • anyone
    • oneself
  • shot
    • snapshot
    • gunshot
    • screenshot
  • pro
    • produce
    • promote
    • propose
  • mpt
    • attempt
    • exempt
    • contempt
  • ing
    • training
    • learning
    • testing
What it sits beside

Same subject

Same shape

Prompting techniques

Hyphenated shot compounds

  • long-shot
  • cheap-shot
  • jump-shot

Numeral-hyphen adjectives

  • one-off
  • one-time
  • two-shot

Where it sits in the deck

Phase 5: Interacting with Models: Prompting, APIs, and Retrieval

With a working model and clean data, learn the interaction layer — how users and systems communicate instructions and retrieve grounded answers.