Macha
AI Support & Agents

Few-Shot Learning

Definición

Few-shot learning is when you guide an AI model to perform a task by including a small number of examples in the prompt, so it can follow the demonstrated pattern without any retraining.

También conocido como: few-shot promptingin-context learningexample-based prompting

How it works

You show the model a few input-output pairs — for instance, several tickets already labeled with the right category or answered in your preferred tone — then give it a new input. The model infers the pattern from those examples and applies it, a behavior known as in-context learning because no weights are updated.

It sits between zero-shot learning (no examples) and full fine-tuning (retraining on a large dataset). Few-shot is fast to set up and easy to adjust: change the examples, change the behavior.

Why it matters for support

Few-shot prompting is the quickest way to make an AI agent match your team's voice and formatting. Feeding it a handful of your best real responses — often drawn from macros or resolved tickets — nudges it toward consistent, on-brand answers without a fine-tuning project.

Preguntas frecuentes

What is the difference between few-shot learning and fine-tuning?

Few-shot puts examples in the prompt at runtime, with no model changes — fast and flexible but limited by the context window. Fine-tuning retrains the model's weights on many examples, which is more durable but slower and costlier to set up.

How many examples is few-shot?

Typically a handful — often two to a few dozen, depending on the task and the context window. The goal is enough examples to demonstrate the pattern without crowding out the actual input.

Pon estas ideas a trabajar

Macha es una capa de agentes de IA que va sobre el help desk que ya usas, Zendesk, Freshdesk, Front, Intercom o Gorgias.

Empezar prueba