Przykłady w poleceniu (few-shot)

Few-shot prompting and in-context learning · id fewshotprompting · aliases: few-shot prompting, in-context learning, ICL, one-shot prompting, zero-shot prompting, uczenie w kontekście, przykłady w prompcie

Kilka par wejście–wyjście umieszczonych w prompcie pokazuje modelowi zadanie i format odpowiedzi bez zmiany wag.

A few input–output pairs placed in the prompt show the model the task and answer format without changing its weights.

In one sentence

Zamiast długo tłumaczyć, czego chcesz, pokazujesz modelowi kilka gotowych przykładów, a on robi kolejny w tym samym stylu.

Instead of explaining at length what you want, you show the model a few finished examples and it makes another in the same style.

Problem it solves

Trudno słowami opisać dokładny format, ton albo sposób klasyfikowania, więc odpowiedzi za każdym razem wyglądają inaczej.

It is hard to describe an exact format, tone or way of sorting in words, so answers come out different every time.

What it does

Działa jak wzór wypełnionego formularza pokazany nowemu pracownikowi: od razu widać, co wpisać w które pole.

It works like a filled-in sample form shown to a new employee: it is instantly clear what goes in each field.

Everyday example

Wklejasz trzy opisy produktów napisane przez sklep i prosisz o czwarty, a model trzyma ich długość, ton i układ.

You paste three product descriptions the shop wrote and ask for a fourth; the model keeps their length, tone and layout.

This concerns you if you…

Related topics

Sources