Welcome to our introductory course on prompt engineering!
Prompt engineering (PE) is the process of communicating effectively with an AI to achieve desired results. As AI technology continues to rapidly advance, the ability to master prompt engineering has become a particularly valuable skill. Prompt engineering techniques can be applied to a wide variety of tasks, making it a useful tool for anyone seeking to improve their efficiency in both everyday and innovative activities.
This course is tailored to beginners, making it the perfect starting point if you're new to AI and PE. However, even if you're not a beginner, you'll still find valuable insights within this course. This course is the most comprehensive prompt engineering course available, and the content ranges from an introduction to AI to advanced PE techniques.
Ethos and Philosophy
This course is open source, 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 strive to produce a comprehensive and unbiased course that is free of excessive jargon and hype.
We have found this approach to be appreciated by the PE 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 use material from this course. We are honored to support the prompt engineering community, including our 380K users and 21K Discord members.
How we teach
Our approach to teaching prompt engineering is guided by the following principles:
Quick Iterations—Since new PE content is published almost daily, we'll keep this course up-to-date with frequent, concise articles about emerging techniques. Please tell us what topics you'd like us to explore further!
Emphasis on Practicality—Our focus is on applied, practical techniques that you can immediately incorporate into your projects and applications.
Accessible Examples—To help you grasp the techniques quickly, we'll provide clear, relevant examples throughout the articles.
Collaborative Learning—We believe in learning from each other. If you come across something that you don't quite understand or find a mistake, please let us know by creating an issue on GitHub. Your feedback helps us improve the course for everyone.
This course is under heavy development. We are working hard to improve the learning experience and add more content. If you have any suggestions, please let us know!
How to read
There's no need to read all chapters in order; feel free to explore what interests you! If you're new to AI, machine learning, and programming, we suggest starting with the Basics section and the Instructions guide. For those already familiar with these concepts, the Intermediate section is a great place to dive in and expand your knowledge.
Article rating system
We've implemented a rating system for articles based on their level of difficulty and the extent of programming 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.
Below is a brief overview of each chapter:
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)
Images: Prompt engineering for text-to-image models, such as DALLE and Stable Diffusion
Prompt Injection: 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
The single most important part of this course is your feedback!
If you have any questions, comments, or suggestions, you can:
- Make an issue on GitHub
- Email us at firstname.lastname@example.org
- Join the Discord community
- Follow us on Twitter
- We also have a Consulting Interest Form
Even the smallest amount of feedback is very helpful!