Glossary

What is Zero-shot and few-shot learning?

In Turkish: Sıfır atışlı ve az örnekli öğrenme · Topic: Using AI

A model's ability to perform a task without seeing any examples (zero-shot) or by working from a few examples given in the prompt (few-shot).

How does it work?

In zero-shot use, the model is only told the task: "Classify this review as positive or negative." In few-shot use, a few solved examples are added to the prompt, and the model infers the format of the task from them. The model's parameters do not change; learning happens only within that prompt.

Why does it matter?

It largely removes the need to retrain a model for every new task. A small number of good examples noticeably improves results, especially when a specific output format or style is required.

Example

Adding three examples to a prompt to have a company's product codes written in a particular format leads the model to generate the remaining codes in the same format.

FAQ

What does few-shot mean?

Few-shot learning means showing the model a few examples within the prompt to explain how to perform a task.

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

In few-shot learning, examples are provided only in the prompt and the model does not change. In fine-tuning, the model is retrained on a large number of examples and its parameters are permanently updated.

Related guides

All terms