transcript

Skill Leap AI - I Discovered The Perfect ChatGPT Prompt Formula

Thumbnail of the video “Skill Leap AI - I Discovered The Perfect ChatGPT Prompt Formula”
Download Markdown
Community upload. AI output has not been independently verified.

If you use the perfect prompt when you prompt ChatGPT, Bard, or Bing, you're going to be really blown away by the result you get, and it's going to save you a ton of time. I've studied this for three to four hours a day since GPT-3 came out. I've taken a bunch of courses, anything I could get my hands on, and tested a whole lot of different ways to prompt these platforms. I think I've crafted a really useful formula that you could implement for pretty much any situation. I want to share that with you in this video, and hopefully after this you can just copy and paste this prompt, because most people who use ChatGPT, Bard, or Bing are stuck in beginner mode. They just ask a question and then try to follow up with the AI to get the answer they're looking for. But if you give the right prompt up front, most of the time you'll get to the answer without having to revise it many different times. Let me show you exactly how it works.

The way I crafted this perfect prompt came from seven best practices that I'll share with you. This is basically the most effective way of prompt engineering, these seven different steps, and they go inside our formula. These steps will help you understand it a little better, and I'll show you some real-life examples that are going to be handy.

Number one: you need to be specific. You want to give as much detail as you can. A lot of times people rush this because they want to see an output, and they think they'll revise it after that. Don't do that. Be very specific. Here's a super simple example: you could ask, "Tell me about all the different dog breeds that exist." The more specific example is, "What are the different breeds of small dogs suitable for apartment living?" You get a lot more specific, so your answer is going to be a lot more relevant.

Number two: you need to state your intent. You need to state that in the prompt. A good example: a lot of times people say, "Explain quantum physics," and they get some kind of long response. But if you give it your intent, in this case, "I'm helping my son with his science homework. I want to explain quantum physics. Can you explain it in a very simple way?" Then I get a very specific answer tailored to that. So stating your intention means the output is designed for that.

Number three: use correct spelling and grammar the best you can. Even though the model will figure that out, a small spelling error can send it in the wrong direction. Even if you spell-check by right-clicking on something you misspelled and correcting it, that will often ensure your prompt actually gets you the best response.

Number four: direct the output format. Give it some direction on the kind of output you're looking for. For example, "Could you list the steps to break down a chocolate cake?" Then it will give you a step-by-step guide. Or, "Could you explain a process in a paragraph?" Then it knows to give you a paragraph, not a whole bunch of text.

Number five: follow up with questions. Sometimes even if you use the perfect prompt, you still need to give it some follow-up to clarify, or to change one of the inputs in the formula that I'm going to give you now.

Number six: if you don't get the result you're looking for, experiment with different phrasing. Sometimes the model doesn't understand how you phrased something. But this perfect formula, if you use it in the order I'm going to show you, will get you the result most of the time. If it doesn't, just experiment with phrasing and moving things around.

Number seven: sometimes I do a fact-checking prompt. I usually get my results, then I feed them back and say, "Can you fact-check this statement," or whatever output I got. This just ensures it runs through it one more time.

Now let me show you the formula. If you use it based on all the specific information I've given you, in this order, you're going to get results far better than what you're getting right now. Here's the formula: context plus specific information plus your intent plus the response format you want equals the perfect prompt.

Here are a couple of examples. For context, in this case, "I'm a beginner cook." That's the context. Then specific information: "I'm trying to make Italian cuisine." Then my intent: "Can you provide me..." This is what I'm asking, my goal: "Can you provide me a simple and easy-to-follow recipe?" And the format I want could be a numbered list from one through ten, so it will summarize in that way. So here's the perfect prompt: "I'm a beginner cook trying to make Italian cuisine. Could you provide me a simple and easy-to-follow recipe and put the steps in numbered order from one through ten?" You could give it something else, like "Make me lasagna," for example, "Can you give me the perfect recipe?" You could even add more context to the formula, but this is the perfect prompt. Now you copy and paste this prompt and you'll get a result that's far better than going back and forth many times, and it will save you sometimes five to ten times the amount of back and forth it usually takes.

Here's another example. Context: "I'm a software developer." Specific information: "I'm working on a Python project." Intent: "Can you explain how to implement exception handling in Python?" Response format: "Tell me in a simple paragraph." So the perfect prompt is: "I'm a software developer working on a Python project. Can you explain how to implement exception handling in Python? Give it to me in a simple paragraph."

This perfect prompt formula works for ChatGPT, it works for Bard, and it works for Bing. I will post it in the description below the video so you can copy and paste the formula. Every time you give a prompt to any of these tools, just put in those four pieces. What I recommend next is that you learn something called prompt priming, which means the things you do before you even give it a prompt. You never ask a question before you prime it. I'll make a video about that and link it here. I'm also putting together an entire learning platform, Netflix-style, all about AI, so you don't fall behind. You get the latest tools, the latest tutorials, and complete courses, with much more detail than I could do online. Make sure you sign up using the link in the description. I hope you found this useful, and I'll see you next time.