What's the structure of a prompt?
Use these common elements to get the best results when you create your prompts.
Element | Description | Example |
---|---|---|
Instruction | The basic task you're asking the model to perform. | What do you want the model to do? |
Context | Any extra information to help obtain a desired response. | A specific scenario, role, or situation. |
Input data | Details of the task that reinforce the instruction. | Any extra data or variables. |
Output format | The format of the desired response. | How do you want the response to look? |
Tip: A prompt doesn't need to have all these elements,
but responses can change significantly when these elements are added to or removed
from the prompt.