Chapter 3
Writing Prompts for ChatGPT
IN THIS CHAPTER
Learning prompting basics
Mastering prompt engineering
Budgeting tokens
Chaining prompts and other strategies
Chatting in threads
In this chapter, you learn how to use ChatGPT prompts like a pro. It’s kind of like a microwave: You tell it what to do and it does it, no technical skill or understanding required. However, you do have to master prompting if you want outputs that are more than general encyclopedia-like narratives.
Indeed, prompting is both the easy part and the most difficult part of using a generative AI model. Difficulties in the complexity of cues and nuances in text-based prompts are why some organizations have a prompt engineering job role. Prompt engineering is the act of crafting an input, which is a deed borne partly of art and partly of logic. And yes, you can do this! However, you might want to practice and polish your prompting skills before you apply for a job.
If you have a good command of the subtleties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access