Prompt Engineering Guide
Welcome to Learn Prompting's Introductory Course on Generative AI and Prompt Engineering!
Generative AI is the world's hottest buzzword, and we have created the most comprehensive (and free) guide on how to use it. This course is tailored to non-technical readers, who may not have even heard of AI, making it the perfect starting point if you are new to Generative AI and Prompt Engineering. Technical readers will find valuable insights within our later modules.
Generative AI refers to tools that can be used to create new content such as articles or images, just like humans can. It is expected to significantly change the way we work12 (read: your job may be affecteda). With so much buzz floating around about Generative AI (Gen AI) and Prompt Engineering (PE), it is hard to know what to believe.
We have scoured the internetc to find the best techniques and tools for our 1.3 Million readers from companies like OpenAI, Brex, and Deloitte. We are constantly refining our guide, to ensure that we provide you with the latest information. Lets see how Gen AI can save you hours of time in an instant, with a short example.
Our favorite way of saving time with Gen AI is automatically writing emails. By automating email responses, email editing, and cold outreach, we save hours of time each week. By sending an AIb the following prompt, we can get it to generate a full length, formal email.
A prompt is basically an instruction you give to an AI. We will learn more about them in the next lesson.
The AI easily writes an email that is both humorous and professional. By modifying the prompt, we can make it change the style as we see fit. We can even make it copy how we read. We can also make it edit emails that we have already written! With all of these abilities, Gen AI saves us hours in email writing each week. See this article for more information on writing emails with Gen AI.
Ethos and Philosphy
We will now give a broad overview of the rest of the course, including our ethos and philosophy, our teaching style, and a list of modules. This course is open source (anyone can see the code), and built by a diverse community of researchers, translators, and hobbyists. We believe that AI should be accessible to everyone, and that it should be described clearly and objectively. To this end, we have written a comprehensive course that is free of excessive jargon and hype.
We have found this approach to be appreciated by the prompt engineering community: This course is cited by Wikipedia, and is used by people at companies such as O'REILLY, Scale AI, and OpenAI. You may also notice that almost every other prompt engineering video and guide uses material from this course. We are honored to support the prompt engineering community, including our 1.3M+ users and 40K+ Discord members.
How We Teach
Our approach to teaching prompt engineering is guided by three fundamental principles. We emphasize practicality; we focus on research backed, practical techniques that you can immediately incorporate into your projects and applications. We always include accessible examples, which clarify how and when to use different techniques. Finally, we believe strongly in collaborative learning. You can join our Discord community to find a learning buddy or ask questions. Some readers find that posting about their learning journey on Twitter helps them learn faster. Tag us @learnprompting!
Basics: Introduction to prompt engineering and fundamental techniques
Basic Applications: Simple, practical applications of prompt engineering
Intermediate: Research-based PE techniques with moderate complexity
Applied Prompting: Comprehensive PE process walkthroughs contributed by community members
Advanced Applications: Powerful, and more complex applications of prompt engineering
Reliability: Enhancing the reliability of large language models (LLMs)
Image Prompting: Prompt engineering for text-to-image models, such as DALLE and Stable Diffusion
Prompt Hacking: Hacking, but for prompt engineering
Tooling: A review of various prompt engineering tools and IDEs
Prompt Tuning: Refining prompts using gradient-based techniques
Miscellaneous: A collection of additional topics and techniques related to prompt engineering
Article rating system
We have implemented a rating system for articles based on their level of difficulty and the extent of technical knowledge needed:
🟢 Beginner-friendly; no programming required
🟡 Easy; basic programming knowledge necessary, but no specialized expertise
🔴 Intermediate; programming skills and some domain knowledge required (e.g., calculating logarithmic probabilities)
🟣 Advanced; programming expertise and in-depth domain understanding needed (e.g., reinforcement learning techniques)
Please note that even for 🔴 and 🟣 articles, you can generally grasp the content without prior domain expertise, though it may be helpful for implementation.
The single most important part of this course is your feedback!
If you have any questions, comments, or suggestions, you can:
Your feedback helps us improve the course for everyone.
It is time to get started with your Generative AI learning Journey. Click the "😃 Basics" button at the bottom right of this page to continue.
- Davenport, T. H., & Mittal, N. (2022). How Generative AI Is Changing Creative Work. Harvard Business Review. https://hbr.org/2022/11/how-generative-ai-is-changing-creative-work ↩
- Captain, S. (2023). How AI Will Change the Workplace. Wall Street Journal. https://www.wsj.com/articles/how-ai-change-workplace-af2162ee ↩
- Generative AI already appears to have claimed some jobs3, and slowed hiring at Bloomberg4. However, consider the news on its impact with a grain of salt. We expect more jobs to be changed rather than lost.↩
- We have read 100s of research papers and articles to find the best techniques.↩
- The AI used here is GPT-4.↩