Budowa polecenia: instrukcje, rola i znaczniki

Prompt structure: instructions, roles and delimiters · id promptstructure · aliases: prompt structure, XML tags in prompts, delimiters, role prompting, prompt templates, budowa promptu, struktura promptu

Układ promptu z jasnymi instrukcjami, celem, rolą w prompcie systemowym, oddzielonymi znacznikami sekcjami danych i opisem formatu wyniku.

Laying out a prompt with clear instructions, purpose, a role in the system prompt, data sections separated by delimiters and an output format description.

In one sentence

Dobre polecenie dla modelu ma porządek: co zrobić, po co, na jakich materiałach i w jakiej formie oddać wynik.

A good instruction to a model is orderly: what to do, why, from which material and in what form to hand back the result.

Problem it solves

Gdy w jednej prośbie mieszają się polecenia, wklejone dokumenty i przykłady, model myli jedno z drugim i odpowiada nie tak.

When instructions, pasted documents and examples blur together in one request, the model mixes them up and answers wrongly.

What it does

Przypomina dobrze zorganizowany segregator z przekładkami: osobno zadanie, osobno materiały, osobno wzór, więc nic się nie miesza.

It resembles a well-organised binder with dividers: the task, the material and the template each in their own section, so nothing gets mixed up.

Everyday example

Prosisz o streszczenie umowy: najpierw wklejasz dokument w wyraźnie oznaczonej sekcji, a na końcu piszesz pytanie i żądaną formę odpowiedzi.

You ask for a contract summary: first you paste the document in a clearly marked section, then end with the question and the answer format you want.

This concerns you if you…

Related topics

Sources