teacher
Sign in

Prompt Engineering

Write prompts that are specific, structured and testable, and learn which tricks actually help and which are folklore.

30 min4 interactive

What a prompt is

A prompt is the text you give a model so it can continue it. In chat APIs it is a list of messages, each with a role:

RolePurpose
systemStanding instructions: who the assistant is, rules, output format
userThe request or the data to work on
assistantEarlier model replies (and, in few-shot prompts, example answers)

The model has no hidden knowledge of your goal. Everything it knows about your task is in the prompt, plus what it learned in training.

1 of 8