← AI Docs

Prompt patterns

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