Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Basics

few-shot prompt

in English: few-shot prompting

basicwidespread

An instruction where you show the artificial intelligence a few worked-out example cases so it can solve your task in the same style and format based on them.

In plain terms

Imagine you are training a new colleague. You can tell them to "write a polite reply letter to complaints", but it is much safer to give them three previous, successful letters. You do not need to explain the tone, length, and structure at length, because they will read it from the examples. Few-shot prompting is the same with a language model: you add two or three (rarely ten or twenty) examples to the request.

It is most useful when it is hard to put into words what you want but easy to show: a specific tone, a fixed table format, or an internal company categorization. The model infers the rule from the examples and applies it to your new case.

From this, the model learns nothing permanently. Examples only affect the current conversation, like a cheat sheet during an exam. If you start a new conversation, you usually have to show them again.

How it works

  1. You formulate the task in one or two sentences, for example: 'Categorize the following customer reviews into positive, neutral, or negative.'
  2. You add several input–output pairs: an opinion and the correct label, then another, and another. It is advisable to choose varied examples to cover rarer cases.
  3. At the end, you write the new case to be solved in the same format, leaving only the answer blank.
  4. The model formulates its response based on the entire preceding text, including examples, so it follows the pattern of the examples: it answers in the same format, length, and style as seen in the samples.
  5. If the result goes off track, you fix the examples: you replace the misleading one, add a missing case, or change the order.

An everyday example

You want ChatGPT to write your webshop product descriptions in your usual, casual tone. You paste three of your previous descriptions, then provide the new product data, and the model writes the fourth in the same style and similar length.

Who is affected

employeeIf you have AI generate repetitive texts, summaries, or tables, a few good examples will yield much more consistent results. → Work & HR
marketerA brand's voice is easier to demonstrate with three well-crafted texts than to explain with a long style guide. → Marketing
developerIn instructions built into applications and agents, examples help ensure the model responds reliably in the expected format. → Code
parent, student, teacherYou can request practice exercises or evaluation criteria most quickly by showing one or two examples of what you want. → Education & Family

A common misconception

MythI train the model with examples, and next time it will know on its own what I need.
In realityThe model's internal knowledge does not change; the examples only affect the current conversation. In a new conversation, you must provide them again, unless the application saves them for you as a template or memory.

Limits and risks

Similar, but not the same

Related concepts

Broader

Prompt, Prompt engineering, in-context learning

Narrower

One-shot prompt

On the edge

zero-shot prompt (a prompt without examples), Chain-of-thought, Fine-tuning, Kontextusablak, Rendszerprompt

A brief history

In machine learning, the term "few-shot learning" has long meant that a system learns from a few examples. The method of putting examples in the prompt became widely known in 2020, when OpenAI researchers, in their paper introducing the GPT-3 model, "Language Models are Few-Shot Learners", showed that a large language model can solve many kinds of tasks from a few examples, without retraining.

Where things stand

By the end of 2026, it is one of the basic techniques of prompt writing, and the official guides of major AI developers also recommend it. Today, models solve many tasks well even without examples, so examples are mainly used to ensure precise format, tone, and consistency. With reasoning models, developers often suggest trying first without examples, as too many examples can even worsen the result.

Status: 2026 November

In the news

Appears in 1 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

few-shot prompt · few-shot prompting · few-shot learning · few-shot learning · few-shot prompting · few-shot prompt · multishot prompting · in-context learning

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.