Łańcuchy promptów

Prompt chaining · id promptchaining · aliases: prompt chaining, LLM chains, AI chains, sequential prompting, łańcuchowanie promptów, task decomposition

Złożone zadanie dzieli się na stałą sekwencję prostszych wywołań modelu, w której wynik jednego kroku jest wejściem następnego.

A complex task is split into a fixed sequence of simpler model calls in which one step's output is the next step's input.

In one sentence

Zamiast prosić model o wszystko naraz, dzielisz zadanie na kilka kolejnych kroków i każdy wynik przekazujesz do następnego.

Instead of asking the model for everything at once, you split the task into steps and pass each result on to the next.

Problem it solves

Jedna długa prośba o wiele rzeczy naraz daje chaotyczny wynik, a trudno ustalić, w którym miejscu model się pomylił.

One long request for many things at once gives a messy result, and it is hard to tell where the model went wrong.

What it does

Jak taśma montażowa: każde stanowisko robi jedną prostą rzecz, a między stanowiskami kontrola może zatrzymać wadliwy element.

Like an assembly line: each station does one simple thing, and checks between stations can stop a faulty part.

Everyday example

Asystent najpierw pisze konspekt artykułu, potem sprawdza, czy konspekt obejmuje wszystkie punkty, a dopiero potem pisze pełny tekst i go tłumaczy.

An assistant first drafts an article outline, then checks it covers every point, and only then writes the full text and translates it.

This concerns you if you…

Sources