Unlocking the Potential of ChatGPT: A Powerful Assistant for Content Creation Part 2
Be Specific and Structured with Your Prompts
ChatGPT does its best when you create and use specific, logically structured prompts. I’ve also discovered that I get the best results when I break complex prompts into smaller, discrete tasks. There are techniques for using much larger prompts, but I prefer my approach for two reasons:
My approach involves writing the prompt from start to finish and then breaking it into individual tasks. Here are some things to keep in mind when you write your prompts:
Hi Chat, Please use your knowledge base and the Internet to find the best technologies for precision machining composite materials.
Hi Chat, I need to develop a list of best practices for mining cryptocurrencies. Using your knowledge base and the Internet, please provide specific examples of the current best practices.
Thank you for the best practices for cryptocurrency mining. Could you please provide me with the URL for each best practice?
I am interested in comparing the lifting capacity of the English, African, and North American Sparrow. Specifically, I want to know how much weight each can carry and for what distance. Please put the results in a table.
I am interested in comparing the lifting capacity of the English, African, and North American Sparrow. Specifically, I want to know how much weight each can carry and for what distance. Please put the results in a table. Before you begin, do you understand my prompt? If not, please tell me what else you need.
Hi Chat. I need to limit my blog posts to 3000 characters. Could you please analyze my Part 1 copy provided earlier in this chat and break it down into 2500-character chunks? That gives me room for transitions:>)
Hi Chat, I’d like you to help me create the perfect prompt so that you can give me the results I need. Please provide the prompt you’d like to see if I am seeking data about the weight-carrying capabilities and flying distances with the load of several types of sparrows.
Use these techniques, and you’ll get great results from ChatGPT every time. Don’t be shy about reworking a prompt if you do not get what you want the first time, the second, or…oops! ChatGPT might be hallucinating!
Hallucinations in ChatGPT Results
You may have read about the issue of LLMs hallucinating and producing wildly out-there results. No, these aren’t chemically or trance-induced; they happen when prompts are incomplete, vague, or otherwise incorrectly written. I thought it would be an excellent exercise to ask ChatGPT to help craft this section of Part 2. Let’s start with the definition of an LLM hallucination:
USER:
Hi Chat. Happy Hump Day! I am working on the second part of my LinkedIn using the ChatGPT series. I'd like a concise, non-jargon definition of LLM hallucinations if you please.
ASSISTANT:
Happy Hump Day! Here’s a concise, non-jargon definition of LLM hallucinations for you:
LLM Hallucinations are instances where large language models, like ChatGPT, generate information or responses that are inaccurate, misleading, or completely fabricated, even though they sound plausible. This happens because the model predicts text based on patterns in the data it was trained on rather than verifying facts.
Let me know if you need any adjustments!
Then, I asked ChatGPT for a famous example of a hallucination. Here’s what I received.
USER:
Cool, thanks! It would be fun to include a hallucination as an example. Do you have a favorite or know of a famous example? If this is insensitive, please let me know, and I won't ask you to do it.
ASSISTANT:
It's not insensitive at all! Using examples can be a great way to illustrate the concept. Here's a well-known example of an LLM hallucination:
Famous Example of LLM Hallucination
One of the most famous examples occurred with OpenAI's GPT-3. When asked about the history of the fax machine, GPT-3 generated a detailed and plausible-sounding response that included the claim that the fax machine was invented by Alexander Graham Bell, who is known for inventing the telephone. In reality, the fax machine was developed by Alexander Bain in the 1840s.
Example Hallucination:
User: Who invented the fax machine?
GPT-3 (Hallucination): The fax machine was invented by Alexander Graham Bell, who is also known for inventing the telephone. Bell's invention of the fax machine revolutionized communication by allowing documents to be sent over telephone lines.
This example shows how the model can generate incorrect information that seems credible, illustrating the importance of verifying facts and providing clear prompts to minimize hallucinations.
Finally, I asked ChatGPT to verify the two primary techniques I use to combat hallucinations and then asked for additional techniques it would recommend.
USER:
I understand that the best way to avoid hallucinations is to ask you for specific results and to ask you if my prompt is clear and understandable. Do these techniques help?
ASSISTANT:
Yes, those techniques do help. Here’s how they work:
Specific Results
Checking Prompt Clarity
Using these techniques can significantly reduce the occurrence of hallucinations and improve the quality of the responses you receive.
USER:
Thanks! Are there other techniques you recommend for preventing hallucinations?
ASSISTANT:
领英推荐
Certainly! Here are some additional techniques to help prevent hallucinations in large language models (LLMs):
Techniques to Prevent LLM Hallucinations
2. Use Multiple Queries:
3.??Ask for Sources:
4.???Set Clear Boundaries:
5.???Prompt Repetition:
6.???Seek Clarification:
7.???Use External Verification Tools:
By incorporating these techniques, you can enhance the accuracy and reliability of the responses you receive from LLMs like ChatGPT.
Try It Yourself
One of the cool things about learning to use ChatGPT and other AI tools is how easy it is to get started. If you want to test any of the queries in this article, all you need do is copy the content following USER and paste it into the chat field as shown below.
Or you can use the handy template I asked ChatGPT to create to write excellent, general-purpose prompts. After ChatGPT created the first template, I realized I hadn’t asked for one that would avoid hallucinations and would deliver specific, current results. You can see my modified request and the resulting template below.
USER:
Thanks! Before I go, what changes would you make to your template to help you avoid hallucinations and provide specific, current results?
ASSISTANT:
To help avoid hallucinations and provide specific, current results, you can make a few tweaks to the template:
Here's the updated template:
Enhanced General-Purpose Research Prompt Template
Prompt:
Hi ChatGPT, I hope you're doing well. I need your help with some research on [Topic]. Could you please provide me with the following information:
Please confirm if this prompt is clear, and let me know if you need any additional details to provide accurate and up-to-date information. Thank you!
Example Usage:
Prompt:
Hi ChatGPT, I hope you're doing well. I need your help with some research on renewable energy. Could you please provide me with the following information:
Please confirm if this prompt is clear, and let me know if you need any additional details to provide accurate and up-to-date information. Thank you!
These additions encourage the AI to focus on current and verifiable information, enhancing the accuracy and relevance of the responses.
Time to Test the Water
First things first, you’ll need a ChatGPT account or one with your LLM of choice. ChatGPT offers free and paid options. Since I am a heavy user, I subscribe to ChatGPT, which enables me to use its latest and greatest models. Check it out at https://openai.com/. If you want to test the waters, set up a free account. Open AI explains the pros and cons pretty well.
Sign into your account, and in the upper lefthand corner, select the model you want to use (#1), then click the new chat button (#2).
You are now ready to engage with ChatGPT! The prompt field (#3) is at the very bottom of your screen. Click in the field, type your prompt, hit Enter, and ChatGPT starts working. Here’s a hint that works for me: I type out my prompt in Word and copy and paste it into the prompt field.
Provide Feedback
Providing feedback during interactions with ChatGPT and other LLMs is important. While the feedback doesn’t directly impact new models' ongoing training and development, developers use the input and common questions to guide their development efforts. You provide feedback in two ways.
Conclusion
Regarding prompts, the old programmer saying, “garbage in, garbage out,” holds true. To get the most out of ChatGPT acting as your content creation assistant, you must master the art of writing prompts. In certain circles, this is known as prompt engineering. Here are my suggestions for writing great prompts:
Stay tuned for Part 3, where I'll delve into how I use ChatGPT to augment and improve my content without letting it do the writing.
?
?
?
??
Disclaimer: The content of this article series, including all text and images, is protected by copyright law. Unauthorized use or duplication of this material without express and written permission from the author is strictly prohibited. For permissions, contact me at [email protected]. Hey, I may want to make it into a movie! Thanks.