This kind of ignorance just annoys the crap out of me. Here’s the simple prompt engineering fix to these type of problems with GPT4o. It’s literally one extra prompt. 🙄

AI

Updated solution for lower quality models:

https://lnkd.in/eYDztghy

You
How many Rs are in the word “strawberry”?

ChatGPT
There are two Rs in the word "strawberry."

You
Look at your response with a fresh set of eyes. Critically analyze your previous response to the prior instruction by conducting a GAP analysis between your original response and the ideal output as best as you can define it. Do not limit the length of your response. Cover all the bases, answer as thoroughly as possible. Take a deep breath, and think step by step.

ChatGPT
GAP Analysis of Previous Response
Original Response:
"There are two Rs in the word 'strawberry.'"
Ideal Output:
To thoroughly analyze the word "strawberry" for the number of 'R's, let's break down the word step-by-step and count each occurrence of the letter 'R'.
1. Write out the word: strawberry
2. Identify each letter in the word:
* s
* t
* r
* a
* w
* b
* e
* r
* r
* y
3. Count the occurrences of the letter 'R':
* The first 'R' appears in the third position.
* The second 'R' appears in the eighth position.
* The third 'R' appears in the ninth position.
Therefore, there are three Rs in the word "strawberry."
GAP Analysis:
1. Accuracy:
* Original Response: Incorrectly identified the number of 'R's as two.
* Ideal Output: Correctly identifies the number of 'R's as three.
2. Detail:
* Original Response: Provided a concise but incorrect count without explanation.
* Ideal Output: Provides a step-by-step breakdown of the word, showing the positions of each 'R' and ensuring accuracy.
3. Clarity:
* Original Response: Simple and direct, but lacking in detail and correctness.
* Ideal Output: Detailed explanation ensures clarity and understanding of the counting process.
4. Thoroughness:
* Original Response: Lacks depth and thorough analysis.
* Ideal Output: Thoroughly examines each letter in the word, ensuring no mistakes in the count.
Conclusion:
The ideal output corrects the error in the original response and provides a detailed, step-by-step analysis to accurately count the number of 'R's in the word "strawberry." This ensures clarity, accuracy, and thoroughness, which are essential in critical analysis tasks.
2 / 2

Previous
Previous

In DefTech your best bet for hiring top talent comes from enabling remote work, so learn to manage it effectively…

Next
Next

If I was Google and I wanted to make a big dent in the defense space with a ground breaking research project, this is what I would do...