← AI Docs
Prompt patterns
- State the goal first. One sentence on what a good answer looks like.
- Give the inputs, not a description of them. Paste the text, table or code.
- Constrain the format. Ask for a table, JSON or a numbered list when you need to parse the reply.
- Ask for the reasoning separately from the final answer so you can check it.
- Iterate with diffs. Tell the model what to change instead of re-asking from scratch.