|
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, Until 8 PM ET tonight, you can get the All-Access Pass for $99: Here's everything you need to know: Access all existing courses for one year ($700+ value) Includes new courses launched during your subscription Includes e-book version of Master Machine Learning (coming soon) Additional discounts available Lock in this price forever 30-day refund policy Get the Pass for $99 Questions? Please let me know! - Kevin
Hi Reader, I wanted to share with you three limited-time resources for improving your Python skills... 1️⃣ Algorithm Mastery Bootcamp 🥾 Are you looking for an intense, 12-day Python bootcamp? My friend Rodrigo Girão Serrão is running a new Algorithm Mastery Bootcamp, and it starts in just 5 days! In the bootcamp, you'll solve 24 real programming challenges and participate in daily live sessions to discuss and compare solutions. It's a great way to strengthen your problem-solving muscles 💪 I...
Hi Reader, Last week, I launched the All-Access Pass, which gives you access to ALL of Data School's courses for one year. Through Black Friday, you can buy the pass for $99, after which the price will increase. Here are the included courses: Build an AI chatbot with Python ($9) Create your first AI app in 60 minutes using LangChain & LangGraph! ⚡ Build AI agents with Python ($99) Develop the skills to create AI apps that can think and act independently 🤖 Conda Essentials for Data Scientists...