Tip #5: Chain-Of-Thought Prompting | Prompt Engineering Tips

Tip #5: Chain-Of-Thought Prompting | Prompt Engineering Tips

Have you ever wondered how and why your AI chat-bot gave you the answer it gave you?

Whey you query a response by asking the model to explain themselves in detail, you're questioning its chain of thoughts.

That's one way to use this tip.

Example 1.1

As the example shows above, you can see that ChatGPT presents the "illusion" of a chain of thoughts. I took it a tiny step further in the next example:

Example 1.2

But here's what Chain-Of-Thought Prompting is...it's pre-defining the output of the language model within the prompt, for the purpose of a more structured result.

Think of it this way: if you asked ChatGPT, "What's the primary ingredient for bread?", it will probably come up with an article. You might just need a word. With Chain-Of-Thought prompting, you can predefine that.

Here's an example:

Example 2

That's how it works. You can pre-define the model's "chain of thought" and get it to respond just how you want. That's pretty much programming if you think about it.

There are so many possibilities and I'll be sharing a few tomorrow. Meanwhile, go try it out.

See you tomorrow!

- Your friend, Smiles.


要查看或添加评论,请登录

Emmanuel Ubiebifaye的更多文章

  • 100+ ChatGPT Prompts for Writers

    100+ ChatGPT Prompts for Writers

    Hey, pal. It's 11pm in Nigeria, and I really don't want to write a letter tonight.

    2 条评论
  • Practice Day!

    Practice Day!

    Hey there, pal! Just dropping a quick note to remind you about some weekend practice. It'd be awesome if you could go…

  • Tip #10: HOW TO ASSIGN ROLES LIKE A PRO (PT 1)

    Tip #10: HOW TO ASSIGN ROLES LIKE A PRO (PT 1)

    Remember the persona trick syntax? Where you assign the GPT a role and then it answers accordingly? Well, here's how to…

  • Tip #9: The Synonym Trick

    Tip #9: The Synonym Trick

    Hey, everyone. I know it's been a minute with us going through all the basics of prompt engineering.

  • Tip #8: The "PTP" Trick

    Tip #8: The "PTP" Trick

    Hey, guys. I named this trick myself.

  • Tip #7: The Add-On Trick

    Tip #7: The Add-On Trick

    Whenever I've tried to learn something new lately, I've always ended up asking ChatGPT first. If I ever need ChatGPT to…

    2 条评论
  • Trick #6: The Variable Trick

    Trick #6: The Variable Trick

    Take a look at this prompt template I found on Reddit (originally posted by u/Merchandizers-nl): The prompt: Write a…

    6 条评论
  • Practice Day 1

    Practice Day 1

    Today, the tip is practice. Do your best to practice every tip I've shared this week.

  • Counter-Querying: Why More is More in Prompt Engineering.

    Counter-Querying: Why More is More in Prompt Engineering.

    Today's tip can be summarized in one sentence: More text equals more context. But since this newsletter aims at giving…

  • Trick #3: The Persona Trick

    Trick #3: The Persona Trick

    Even though this is one of the first tips I learned, I'm constantly amazed that very few people know about it. HOW IT…

社区洞察

其他会员也浏览了