Hi Reader, Before today’s tip, I wanted to give you a heads up: Tomorrow, I’ll be launching something brand new! Watch out for the announcement 👀 👉 Tip #53: How to get great results from AI models through promptingIn the year after ChatGPT was released, I remember noticing two new trends:
My takeaway was that “prompting” must be really complex, and it was going to take a huge investment of time in order for me to get good at it. (In case you’re unfamiliar: “prompting” just means “inputting text into a Large Language Model.” Or more simply: “typing into ChatGPT.”) Since then, I’ve come to three conclusions about prompting:
📝 Simple tips for more effective promptsHere are my top tips for getting better at prompting, and thus increasing the chance that you will get great results from an LLM: Be very specific about what you want: How long should the answer be? What should the answer include? Who is the specific audience? What is the end goal of this task? Ask it to iterate: Within a given conversation, the model will remember everything you’ve said and everything it has replied (until it reaches the end of its “context window”). Thus if you’re not 100% satisfied with its answer, then tell it exactly how you want to improve! Give it a role: If you’re asking it a complex legal question (for example), you might get better results if you tell it to act like an expert lawyer. You can also use roles to adjust the writing tone of the results. Give it examples: If you need the answer in a specific format, give the model a few examples of what the output should look like for a given input. Ask it to think step-by-step: For complex tasks, guiding the model in how to approach the task step-by-step can result in better output. (The Claude documentation has a good example of this.) Try a different model: Every LLM is different, so if one isn’t helpful for a particular task, then just try another! I’ve talked previously about how to do this using Chatbot Arena or Typing Mind. 🧠Develop a mindset of abundanceI’ll leave you with one final tip from Ethan Mollick’s article, Getting started with AI: Good enough prompting: You don’t need to ask for one email, ask for three in different tones to inspire you. You don’t need to ask for one way to complete a sentence, ask for 15 options and see if that unlocks your writing. Don’t ask for 5 ideas, ask for 30. In fact, our research found that GPT-4 can generate thousands of ideas before a large percentage of them start to overlap. Your job becomes one of pushing for variation (“give me ideas that are 80% weirder”), recombination (“combine ideas 12 and 16”) and expansion (“more ideas like number 12”), before selecting one you like. 👋 See you on Wednesday!Be on the lookout for my launch announcement tomorrow! - Kevin P.S. Call your grandmother​ ​ Did someone AWESOME forward you this email? Sign up here to receive weekly Artificial Intelligence tips! |
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, The Python 14-Day Challenge starts tomorrow! Hope to see you there 🤞 👉 Tuesday Tip: My top 5 sources for keeping up with AI I'll state the obvious: AI is moving incredibly FAST 💨 Here are the best sources I follow to keep up with the most important developments in Artificial Intelligence: The Neuron (daily newsletter) My top recommendation for a general audience. It’s fun, informative, and well-written. It includes links to the latest AI news and tools, but the real goldmine is...
Hi Reader, Last week, I encouraged you to experiment with different LLMs, since there’s no one model that is superior across all use cases. Specifically, I suggested you try using Chatbot Arena, which allows you to chat with multiple models at once. It’s completely free, but has two significant disadvantages: Your chats are not private and may be used for research. It lacks the feature-rich interface provided by other LLMs. Today, I want to offer you a better method for experimenting with...
Hi Reader, Over the past 50 tips, I’ve touched on many different topics: Python, Jupyter, pandas, ML, data visualization, and so on. Going forward, I’m planning to focus mostly on Artificial Intelligence. I’m announcing this so you know what to expect, and I know what to deliver! 💌 I’ll also try to make the tips shorter, so that they're easier to digest on-the-go. Finally, I plan to include an “action item” each week, so that you can practice what you’re learning. I hope you like these...