Master the art of prompt engineering in Python and unlock the full potential of GPT models and the OpenAI API. This course will teach you how to create, improve, and fine-tune prompts for various tasks, from personal coaching to building chatbots. You'll gain hands-on experience in iterative prompt design, mitigating hallucinations, and extracting structured information with JSON mode.
![Packt](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/http://coursera-university-assets.s3.amazonaws.com/fa/3b9b5304c24cf4aa64054631ee946c/360-360-square.png?auto=format%2Ccompress&dpr=1&w=28&h=28)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/1a4589dccee10648821b7ea23e5fca9a.png?auto=format%2Ccompress&dpr=1&q=80)
![Packt](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/http://coursera-university-assets.s3.amazonaws.com/c7/391d0e5f6a4d648dc4f754c5898df7/2.png?auto=format%2Ccompress&dpr=1&h=45)
Prompt Engineering in Python, with GPT, and the OpenAI API
![Packt - Course Instructors](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera-instructor-photos.s3.amazonaws.com/2b/9c92f373414941b4a0bbda577bd627/profile.jpg?auto=format%2Ccompress&dpr=1&w=75&h=75&fit=crop)
Instructor: Packt - Course Instructors
Included with
Recommended experience
What you'll learn
Design effective prompts for coaching, chatbots, and data extraction tasks.
Mitigate hallucinations and optimize GPT responses using advanced techniques.
Implement chain-of-thought prompting and emotion-driven prompt strategies.
Use Python and the OpenAI API to build smart, scalable chatbots and extract structured data.
Details to know
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/31ebcba3851b87d1d8609abf15d0ff7e.png?auto=format%2Ccompress&dpr=1&w=24&h=24)
Add to your LinkedIn profile
September 2024
5 assignments
See how employees at top companies are mastering in-demand skills
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/74c8747e8210831049cf88dd4eefe26c.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=320)
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=259)
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=333)
There are 6 modules in this course
In this module, we will introduce the course by outlining its structure, goals, and unique value propositions. You will gain an understanding of prompt engineering basics and learn how the course content and instruction remain up-to-date with cutting-edge developments in the field.
What's included
4 videos1 reading
In this module, we will explore how to leverage ChatGPT as a personal coach to support your growth and learning. You will learn how to access course materials, craft coaching prompts, and identify the limitations of the tool. Additionally, we’ll discuss using custom GPTs to elevate your Python learning experience.
What's included
5 videos1 assignment
In this module, we will dive into advanced prompting strategies to maximize GPT's capabilities while addressing common challenges. You will learn to iteratively improve prompts, apply chain-of-thought methods, and mitigate hallucinations. Additionally, you’ll explore findings from research like EmotionPrompt and implement practical solutions for real-world scenarios.
What's included
13 videos1 assignment
In this module, we will focus on building a chat bot using the Python API and refining prompt engineering techniques for advanced use cases. You will learn how to enhance conversation flow through prompt hacking and implement exponential backoff strategies for robust, multi-turn interactions.
What's included
3 videos1 assignment
In this module, we will focus on techniques for extracting numerical values from text data and validating the accuracy of your extraction methods. Additionally, you will explore how to leverage JSON mode and optimize prompts to push GPT-3.5 performance closer to GPT-4, unlocking more powerful and structured outcomes.
What's included
2 videos1 assignment
In this module, we will explore the concept of multimodal prompting, focusing on how GPT models interpret and utilize images. You will learn how to incorporate visual inputs into prompts to provide richer context and improve the accuracy of model outputs.
What's included
1 video1 assignment
Instructor
![Packt - Course Instructors](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera-instructor-photos.s3.amazonaws.com/2b/9c92f373414941b4a0bbda577bd627/profile.jpg?auto=format%2Ccompress&dpr=1&w=75&h=75&fit=crop)
Offered by
Why people choose Coursera for their career
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Felipe_Moitta.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Jennifer_John.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Larry_Tao_Wang_1.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Chaitanya_Anand.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
New to Machine Learning? Start here.
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/7a1c0e2e779c1ff27cae62480adfe003.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=120)
Open new doors with Coursera Plus
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.