VOOZH about

URL: https://www.coursera.org/learn/packt-generative-ai-with-python-dmeqw

⇱ Generative AI with Python | Coursera


Generative AI with Python

Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.

Generative AI with Python

Included with

Ask Coursera

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

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

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

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Develop and implement large language models using Python.

  • Create intelligent workflows with agentic systems and advanced AI techniques like RAG.

  • Master model fine-tuning with methods such as Low-Rank Adaptation (LoRA).

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

February 2026

Assessments

16 assignments

Taught in English

There are 15 modules in this course

This course features Coursera Coach!

A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Unlock the power of generative AI by mastering Python and working hands-on with cutting-edge tools and libraries. From building large language models (LLMs) to implementing advanced agentic systems, this course takes you on an in-depth journey through AI development. You’ll explore the essentials of LLMs, model training, parameter tuning, and the integration of advanced techniques like Retrieval-Augmented Generation (RAG) and vector databases. The interactive learning experience ensures you are not just passively absorbing information but engaging with practical coding exercises and real-world applications. The course begins with the foundational setup, including Python, IDEs, and environment configurations, before diving deep into LLMs, multimodal models, and even exploring agent-based systems. You’ll move through advanced topics such as prompt crafting, chaining models, and building intelligent systems with frameworks like crewAI and AG2. The journey concludes with model fine-tuning techniques, including Low-Rank Adaptation (LoRA), that enable you to optimize performance. This course is designed for AI enthusiasts, data scientists, and developers who want to expand their skills in generative AI. It is ideal for anyone with basic knowledge of Python who wants to build AI-driven applications. The course is suitable for those at an Intermediate level with some prior programming experience in Python. By the end of the course, you will be able to design and implement generative AI models, create complex AI workflows using chains and agents, manage vector databases, and fine-tune models to suit specific tasks and domains.

In this module, we will introduce the course and provide an overview of the instructor’s background in AI and Python. We will explore the course objectives and structure to ensure you know what to expect. Additionally, we’ll guide you through the essential system setup, including installing tools like Python, an IDE, and managing API keys for the hands-on coding exercises.

What's included

11 videos1 reading

11 videosTotal 35 minutes
  • Self Presentation1 minute
  • Course Overview5 minutes
  • System Setup (101)8 minutes
  • System Setup: Python2 minutes
  • System Setup: IDE (101)1 minute
  • System Setup: How to get the material3 minutes
  • System Setup: IDE Setup1 minute
  • System Setup: Visual C++ Build Tools1 minute
  • System Setup: Environment (Coding)2 minutes
  • API Keys (101)4 minutes
  • API Keys (Coding)7 minutes
1 readingTotal 10 minutes
  • Full Course Resources10 minutes

In this module, we will explore the foundational concepts of Large Language Models (LLMs) and how they function within the AI space. We will compare traditional NLP techniques with LLMs to understand their advancements. Additionally, we will evaluate the real-world achievements and performance of these models across different tasks.

What's included

4 videos1 assignment

4 videosTotal 16 minutes
  • LLM Introduction6 minutes
  • Classical NLP vs. LLM3 minutes
  • Narrow AI Achievements5 minutes
  • Model Performance and Capabilities3 minutes
1 assignmentTotal 15 minutes
  • Large Language Models – Introduction - Assessment15 minutes

In this module, we will dive deep into the training process of Large Language Models, uncovering the complexities of data preparation and optimization techniques. We will explore ways to improve model performance and evaluate major LLM providers and their products. Additionally, you will learn how to interact with different LLMs via hands-on coding exercises.

What's included

16 videos1 assignment

16 videosTotal 80 minutes
  • Model Training Process6 minutes
  • Model Improvement Options5 minutes
  • Model Providers2 minutes
  • Model Benchmarking4 minutes
  • Interaction with LLMs (Coding Intro)2 minutes
  • Interaction with LLMs Groq (Coding)11 minutes
  • Interaction with LLMs OpenAI (Coding)6 minutes
  • Interaction with LLMs Gemini (Coding)5 minutes
  • Message Types4 minutes
  • Message Types Exercise1 minute
  • Message Types Solution6 minutes
  • LLM Parameters8 minutes
  • LLM Parameters (Exercise)1 minute
  • LLM Parameters (Solution)6 minutes
  • Model Selection8 minutes
  • Model Capabilities7 minutes
1 assignmentTotal 15 minutes
  • Large Language Models – Deep Dive - Assessment15 minutes

In this module, we will explore various types of Large Language Models, including how to run models locally on your system. You will also dive into multimodal models, which combine text, images, and other media to enhance AI capabilities. Additionally, we will look at tokenization methods and how they support AI systems in processing and understanding data inputs.

What's included

9 videos1 assignment

9 videosTotal 36 minutes
  • Local Use of Models2 minutes
  • Local Use of Models (Coding)9 minutes
  • Large Multimodal Models1 minute
  • Large Multimodal Models (Coding)9 minutes
  • Large Video Models2 minutes
  • Tokenization4 minutes
  • Reasoning Models3 minutes
  • Small Language Models3 minutes
  • JailBreaking3 minutes
1 assignmentTotal 15 minutes
  • Large Language Models – Types and Variants - Assessment15 minutes

In this module, we will introduce you to the concept of chains in AI, where multiple model interactions are linked together to form complex workflows. You will learn how to design and implement prompt templates for repeated use cases, and create systems where outputs are structured and can adapt based on different decision branches in your application.

What's included

13 videos1 assignment

13 videosTotal 70 minutes
  • Prompt Templates4 minutes
  • Prompt Templates (Coding)7 minutes
  • Prompt Hub (Coding)8 minutes
  • Introduction3 minutes
  • Chains (Coding)7 minutes
  • Exercise Story Character (Exercise)1 minute
  • Exercise Story Character (Solution)7 minutes
  • Coding: Story Character parallel (101)1 minute
  • Coding: Story Character parallel (Practical)8 minutes
  • Chains with Structured Output (101)3 minutes
  • Chains with Structured Output (Coding)9 minutes
  • Router Chain (Coding)11 minutes
  • Router Chain (Exercise)2 minutes
1 assignmentTotal 15 minutes
  • Large Language Models – Chains - Assessment15 minutes

In this module, we will explore vector databases and their significance in managing and retrieving high-dimensional data for AI applications. You will learn to work with vector embeddings, chunk data for more efficient storage, and practice querying databases to retrieve relevant information based on similarity searches.

What's included

17 videos1 assignment

17 videosTotal 118 minutes
  • Introduction7 minutes
  • Data Source and Loading (101)1 minute
  • Data Source and Loading (Coding)14 minutes
  • Data Chunking (101)10 minutes
  • Data Chunking (Coding)18 minutes
  • Embeddings – High Level Overview (101)3 minutes
  • Embeddings – Deep Dive (101)10 minutes
  • Embeddings Model vs. LLM (101)4 minutes
  • Embedding Model Types (101)4 minutes
  • Embeddings Introduction (Coding)11 minutes
  • Embeddings (Coding)6 minutes
  • Data Storing (101)5 minutes
  • Data Storing Chroma (Coding)4 minutes
  • Data Querying (101)3 minutes
  • Similarity Search (101)7 minutes
  • Data Querying Chroma (Coding)5 minutes
  • Data Querying FAISS (Coding)6 minutes
1 assignmentTotal 15 minutes
  • Vector Databases - Assessment15 minutes

In this module, we will introduce you to Retrieval-Augmented Generation (RAG) and walk you through its core phases, from data retrieval to response generation. You will gain hands-on experience in coding a basic RAG pipeline, enhancing the accuracy and relevance of the AI outputs by incorporating external information into the model’s process.

What's included

3 videos1 assignment

3 videosTotal 24 minutes
  • Baseline RAG (101)3 minutes
  • RAG Phases (101)4 minutes
  • Baseline RAG (Coding)17 minutes
1 assignmentTotal 15 minutes
  • Retrieval-Augmented Generation – Baseline - Assessment15 minutes

In this module, we will take a deeper dive into advanced techniques for enhancing Retrieval-Augmented Generation workflows. You will learn how to optimize data retrieval and refine responses with strategies like query expansion, prompt compression, and speculative RAG. Additionally, we will explore multimodal RAG and hybrid approaches to handle diverse data types efficiently.

What's included

14 videos1 assignment

14 videosTotal 53 minutes
  • RAG Improvements (101)4 minutes
  • Improvements in Pre-Retrieval Phase (101)2 minutes
  • Context Enrichment (101)5 minutes
  • Corrective RAG (101)2 minutes
  • Hybrid RAG (101)6 minutes
  • Query Expansion (101)5 minutes
  • Prompt Compression (101)3 minutes
  • Speculative RAG (101)4 minutes
  • Agentic RAG (101)2 minutes
  • Retrieval Augmented Thought (101)1 minute
  • Prompt Caching (101)3 minutes
  • Multimodal RAG (101)3 minutes
  • Table RAG (101)3 minutes
  • Table RAG (Coding)11 minutes
1 assignmentTotal 15 minutes
  • Retrieval-Augmented Generation – Advanced - Assessment15 minutes

In this module, we will introduce you to AI agents and the fundamental concepts behind agentic systems. We will explore frameworks used to build these systems and examine their potential applications in solving complex tasks autonomously. This module will set the stage for building more sophisticated AI-driven solutions in the following lessons.

What's included

2 videos1 assignment

2 videosTotal 13 minutes
  • Agents Introduction (101)6 minutes
  • Agentic Frameworks (101)7 minutes
1 assignmentTotal 15 minutes
  • Agentic Systems – Overview - Assessment15 minutes

In this module, we will focus on the crewAI framework, where you’ll learn how to work with agents to build powerful AI systems. We’ll guide you through the process of setting up a crewAI project, defining tasks, and debugging agent workflows. Additionally, you will extend these systems by integrating custom tools and ensuring smooth execution through testing.

What's included

12 videos1 assignment

12 videosTotal 44 minutes
  • Agent Introduction (101)4 minutes
  • File Dependencies (101)3 minutes
  • Example Crew Setup3 minutes
  • crewAI Installation (Coding)2 minutes
  • Sample Project (Coding)6 minutes
  • High-Level Planning (Coding)3 minutes
  • Agent and Task Definition (Coding)5 minutes
  • Yaml Files (Coding)3 minutes
  • main.py (Coding)4 minutes
  • run crew (Coding)2 minutes
  • Adding Tools (Coding)4 minutes
  • Debugging (Coding)4 minutes
1 assignmentTotal 15 minutes
  • Agentic Systems – crewAI - Assessment15 minutes

In this module, we will dive into AG2, a powerful framework for building conversational AI agents. You will learn to code systems with multiple agents interacting with each other and with humans. Additionally, we’ll explore how to integrate external tools to extend the functionality of your agents and create more dynamic and adaptable AI systems.

What's included

6 videos1 assignment

6 videosTotal 46 minutes
  • AG2 Introduction (101)8 minutes
  • Conversable Agent (Coding)8 minutes
  • Two Agent Conversation (Coding)8 minutes
  • Human in the Loop (Coding)9 minutes
  • Adding Tools (Coding)7 minutes
  • Group Chat (Coding)7 minutes
1 assignmentTotal 15 minutes
  • Agentic Systems – AG2 - Assessment15 minutes

In this module, we will explore the OpenAI Agents SDK and its features for building complex AI systems. You’ll learn how to create workflows that handle agent handoffs and ensure smooth operation. The course will also cover essential techniques for applying guardrails, ensuring safe agent behavior, and using tracing for debugging and performance monitoring.

What's included

6 videos1 assignment

6 videosTotal 32 minutes
  • Agents Introduction (101)6 minutes
  • Handoff (Coding)9 minutes
  • Running Options (Coding)4 minutes
  • Guardrails (Coding)8 minutes
  • Using Other Models (Coding)4 minutes
  • Traces (Coding)2 minutes
1 assignmentTotal 15 minutes
  • Agentic Systems – OpenAI Agents SDK - Assessment15 minutes

In this module, we will introduce the Google Agent Development Kit (ADK) and guide you through building multi-agent systems. You will learn to work with function tools to extend agent capabilities and tackle complex tasks. This will enhance your ability to design sophisticated agent-driven workflows with the ADK framework.

What's included

3 videos1 assignment

3 videosTotal 23 minutes
  • ADK Introduction (101)6 minutes
  • Function Tools (Coding)9 minutes
  • Multi Agents (Coding)8 minutes
1 assignmentTotal 15 minutes
  • Agentic Systems – Google ADK - Assessment15 minutes

In this module, we will focus on agent-to-agent communication protocols like MCP, A2A, and ACP. You will gain hands-on experience in setting up and testing MCP server-client interactions to facilitate effective communication between agents. This will equip you with the skills to build more dynamic and interconnected agent systems.

What's included

5 videos1 assignment

5 videosTotal 18 minutes
  • Agent Interactions: MCP, A2A, and ACP2 minutes
  • Model Context Protocol (101)5 minutes
  • MCP Client Installation (Coding)1 minute
  • MCP Server Setup (Coding)5 minutes
  • MCP Server Testing (Coding)4 minutes
1 assignmentTotal 15 minutes
  • Agent Interactions (MCP, A2A, ACP) - Assessment15 minutes

In this module, we will introduce you to model finetuning techniques, focusing on methods like LoRA. You’ll learn how to adapt pre-trained models to specific tasks and fine-tune their performance for better results. This skill will be crucial for optimizing AI models to meet the needs of different applications.

What's included

2 videos3 assignments

2 videosTotal 11 minutes
  • Model Finetuning (101)6 minutes
  • Finetuning with LoRA (101)5 minutes
3 assignmentsTotal 90 minutes
  • Model Finetuning - Assessment15 minutes
  • Full Course Assessment60 minutes
  • Full Course Practice Assessment15 minutes

Instructor

Offered by

Explore more from Software Development

Why people choose Coursera for their career

👁 Image

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."
👁 Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
👁 Image

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."
👁 Image

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."

Frequently asked questions

Generative AI with Python refers to the development and application of machine learning models capable of generating new content, such as text, images, or other media, using Python programming. This specialization is highly relevant in today's world where AI can enhance creativity, automate tasks, and contribute to numerous industries, including content creation, customer service, and data analysis.

This course introduces learners to the essentials of generative AI using Python. It covers foundational concepts in AI, Python programming, and large language models (LLMs), as well as practical coding skills such as setting up environments, working with APIs, and using vector databases. By the end of the course, participants will be equipped to implement generative AI models and enhance them through advanced strategies such as Retrieval-Augmented Generation (RAG) and agentic systems.

Upon completing this course, you will be able to build and interact with generative AI models using Python. You will understand the principles behind large language models, implement API interactions, and work with multimodal data. Additionally, you will be capable of developing AI workflows, utilizing vector databases for efficient data handling, and applying advanced AI techniques such as RAG and model finetuning.

To get the most out of this course, it is recommended that you have a basic understanding of Python programming. Familiarity with general AI concepts, including machine learning, will also be beneficial, though the course starts from the fundamentals and provides all the necessary materials and tutorials to get you up to speed.

This course is designed for individuals interested in learning about generative AI, particularly those who want to leverage Python for building AI models. It is suitable for beginners who have basic Python knowledge as well as for developers looking to expand their skills into AI and machine learning. Whether you're a student, professional developer, or hobbyist, this course offers valuable insights into the world of AI development.

The course takes approximately 10 hours to complete. It includes a combination of theoretical content and hands-on coding exercises, allowing you to learn at your own pace and apply what you’ve learned through practical examples.

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.

If you complete the course successfully, your electronic Course Certificate will be added to your Accomplishments page - from there, you can print your Course Certificate or add it to your LinkedIn profile.

This course is currently available only to learners who have paid or received financial aid, when available.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

Financial aid available,