Packt
Prompt Engineering in Python, with GPT, and the OpenAI API
Packt

Prompt Engineering in Python, with GPT, and the OpenAI API

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

4 hours to complete
3 weeks at 1 hour a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

4 hours to complete
3 weeks at 1 hour a week
Flexible schedule
Learn at your own pace

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

Shareable certificate

Add to your LinkedIn profile

Recently updated!

September 2024

Assessments

5 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

Placeholder
Placeholder

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

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
Packt
567 Courses49,058 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

New to Machine Learning? Start here.

Placeholder

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