What is prompt engineering?

Prompt engineering is the craft of writing instructions that reliably get useful answers out of a language model. It is 60% clarity and 40% iteration.

Mark Barclay
Answer curated and reviewed byMark Barclay

Key takeaways

  • Prompt engineering is the craft of writing instructions that reliably get useful answers out of a language model.
  • It is 60% clarity and 40% iteration.

The name sounds fancier than the job. Prompt engineering means:

  1. Being specific about role, task, audience, format and constraints.
  2. Giving examples of good output.
  3. Iterating: change one thing at a time and see what improves.

You do not need a PhD. Two weeks of daily use and a good prompt library will make you better than 90% of casual users.