Higher quality responses from ChatGPT

You can acquire significantly higher quality responses for complex tasks from ChatGPT by simply adding "Plan out the solution prior to generating <code/solution>" to the end of the prompt.

The screenshot shows an in-depth solution to the problem using this technique. A portion of the code was truncated because of the length.

Further down in the post I have an image of the response from ChatGPT without this "Plan out..." guidance. You will notice this solution is of lower quality and misses some of requirements.

Previous Post From My Prompt Engineering Series:
1️⃣ What is the temperature, also known as "Why you get funky results sometimes": https://www.tinselai.com/what-is-the-temperature-of-chatgpt/
2️⃣ Prompt Engineering Basics: https://www.tinselai.com/prompt-engineering-basics/
3️⃣ Make ChatGPT Hallucinate With One Easy Trick: Want to make ChatGPT hallucinate? (tinselai.com)
4️⃣ More Hallucinations To Avoid: https://www.tinselai.com/chatgpt-gotcha-more-hallucinations/
5️⃣ Pre-prompts for Fun And Profit...maybe: https://www.tinselai.com/chatgpt-pre-prompts-for-fun-and-profit-maybe/
6️⃣ Validating ChatGPT and other LLMs: https://www.tinselai.com/validating-chatgpt-and-other-llms/

Same question without the "Plan out the solution prior to generating <code/solution>" line. Note the poor quality relatively speaking.

Subscribe to Tinsel AI

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe