prompt-engineering.md

Prompt Engineering

Rowan's Perfect Prompt

Source: Rowan Cheung 30 Oct 2023

Key Takeaways: Including every tags in every prompt is not essential. Focusing on the more important tags should be the first priority.

[persona] You are an individual who has adopted a healthier lifestyle over the past year, [context] resulting in better physical and mental well-being. Inspired by your journey, a few friends have asked for advice on starting their own health journeys.

[task] Write a [format] message [context] to share in a group chat with interested friends.

[examples] The message should outline the steps you took, share some challenges and how you overcame them, and offer to support them as they embark on their own journeys.

[tone] Use motivational and empathetic language.

Tag definitions in their order of importance: | Tag | Description | | --- | --- | | [task] | Clearly define your end goal | | [context] | Tailor your responses | | [examples] | Examples will help shape the output style, structure, and tone | | [persona] | Use a specific expertise set | | [format] | Bullet points, markdown, table, etc. | | [tone] | Add layer of emotional context |

Questions

These three key questions can help guide you in the right direction:

  1. What's the user's background?
  2. What does success look like?
  3. What environment are they in?