From the course: Getting Hands-On with GPT Models: Tips and Tricks
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Improving prompting with examples and quotes
From the course: Getting Hands-On with GPT Models: Tips and Tricks
Improving prompting with examples and quotes
- [Narrator] In this video, we're going to talk about using quotes and examples to reinforce the precision of our prompting. So let's ask a question that many of us have been thinking about: what is the most reliable car? So let's type it in. "What is the most reliable car?" And we'll hit Enter. So here we go. Once again, we can see the structure of ChatGPT. We have the bold, we have the emojis, and so forth. We have this overview of the most reliable brands and the most reliable cars. Now let's say we wanted this information in a list. We can ask, "Can you make this in a list format?" And hit Enter. And once again, we have this similar structure. Let's learn how we can help structure our outputs by using quotes and examples. So let's head over to the exercise files and open up 02_02. I'm going to copy in this prompt and paste it in. So here we have: "What is the most reliable car. List the top three. The list should look like car model A, car model B, car model C." Let's hit Enter…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
An overview of OpenAI GPT and Reasoning Models3m 11s
-
(Locked)
Improving prompting with examples and quotes2m 23s
-
(Locked)
Using completion sequences and few shot2m 16s
-
(Locked)
Using chain-of-thought reasoning3m 29s
-
(Locked)
Challenge: Give GPT a tricky problem25s
-
(Locked)
Solution: Give GPT a tricky problem1m 35s
-
(Locked)
-
-