Skip to content

rohithay/GenerativeAI

Repository files navigation

Setup Guides

About Claude

Claude Products

ChatGPT

How to prompt engineer

The prompt engineering pages in this section have been organized from most broadly effective techniques to more specialized techniques. When troubleshooting performance, we suggest you try these techniques in order, although the actual impact of each technique will depend on your use case.

  • Prompt generator
  • [Be clear and direct]
  • [Use examples (multishot)]
  • [Let Claude think (chain of thought)]
  • Use XML tags
  • [Give Claude a role (system prompts)]
  • [Prefill Claude’s response]
  • [Chain complex prompts]
  • [Long context tips]
  • Claude Prompt Library