2-Shot Prompting

Also known as: Two-shot prompting

Quick definition

Showing a model exactly two examples of a task in its prompt.

Showing a model exactly two examples of a task in its prompt.

Example: A prompt includes two completed records before asking for another extraction.

Where it is useful: AI assistants, content generation, prompt workflows, and language-model applications.

Examples

  • A prompt includes two completed records before asking for another extraction.

Use cases

  • AI assistants, content generation, prompt workflows, and language-model applications.

Frequently asked questions

What is 2-Shot Prompting?

Showing a model exactly two examples of a task in its prompt.

Can you give an example of 2-Shot Prompting?

A prompt includes two completed records before asking for another extraction.

Categories and tags