ReAct: rozumowanie przeplatane z działaniem

ReAct (interleaved reasoning and acting) · id reactagents · aliases: ReAct, Reason+Act, reasoning and acting

Wzorzec promptowania, w którym model generuje naprzemiennie ślady rozumowania i akcje, a obserwacje z narzędzi wracają do kontekstu.

A prompting pattern in which the model alternates reasoning traces and actions, with tool observations fed back into context.

In one sentence

Agent zapisuje krótką myśl, wykonuje jedno działanie, czyta wynik i dopiero na tej podstawie pisze kolejną myśl.

The agent writes a short thought, takes one action, reads the result, and only then writes its next thought.

Problem it solves

Model rozumujący tylko „w głowie” zmyśla fakty, a model działający bez namysłu wykonuje przypadkowe kroki.

A model that only reasons in its head makes up facts, while one that acts without thinking takes random steps.

What it does

Przypomina detektywa, który po każdym przesłuchaniu notuje wnioski i z nich wybiera, kogo przesłuchać następnie.

It resembles a detective who notes conclusions after each interview and uses them to pick the next witness.

Everyday example

Pytasz asystenta, kto był starszy z dwóch pisarzy; sprawdza datę urodzenia pierwszego, potem drugiego i porównuje.

You ask an assistant which of two writers was older; it looks up the first one's birth date, then the second's, and compares.

This concerns you if you…

Sources