Build with LLMs: Prompt Engineering & Real AI Projects
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Build with LLMs: Prompt Engineering & Real AI Projects
This course is part of Prompt Engineering Masterclass - From Beginner to Advanced Specialization
Included with
Learn more
Ask Coursera
Recommended experience
Recommended experience
What you'll learn
Master the core concepts of large language models and their applications.
Build structured prompts and leverage advanced techniques like few-shot and chain-of-thought prompting.
Develop AI-powered tools for real-world scenarios, such as Git commit message generation.
Optimize API usage and manage costs efficiently in large-scale AI applications.
Skills you'll gain
Details to know
March 2026
5 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 3 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. This intermediate-level course dives deep into the essential techniques for working with large language models (LLMs), providing you with the practical tools and knowledge needed to build powerful AI applications. You will learn core concepts such as tokenization, log probabilities, and context windows, and gain hands-on experience through a series of engaging labs and projects. Additionally, you'll explore foundational prompt engineering patterns to improve response accuracy, control output formats, and develop advanced techniques such as few-shot prompting and chain-of-thought prompting. The course is structured to guide you from understanding the theoretical underpinnings of LLMs to applying those concepts in real-world scenarios. As you progress, you will work on an exciting project, building an AI-powered Git commit message generator. Through this project, you'll gain valuable experience in designing prompt templates, creating core logic for AI commits, and enhancing functionality with user reviews and model selection. Each section includes practical labs and exercises that ensure you're not just learning the theory, but also building real skills. The course is perfect for intermediate learners looking to enhance their AI development capabilities, particularly those interested in applying prompt engineering to optimize model behavior. A solid understanding of programming and LLMs is beneficial, but anyone with a technical background will find this course accessible. By the end of the course, you will be able to design structured prompts, implement advanced prompting techniques, generate AI-driven Git commit messages, and effectively manage API usage and costs.
In this module, we will dive into the key concepts behind large language models (LLMs), such as tokenization and log probabilities, and their impact on text generation. You'll also gain insights into the factors that contribute to API usage costs and learn how to optimize them. Practical labs will provide hands-on experience with these concepts.
What's included
13 videos2 readings1 assignment
13 videosβ’Total 95 minutes
- Section Overviewβ’2 minutes
- Understanding Tokenizationβ’5 minutes
- Practical Lab: Exploring Tokenizationβ’7 minutes
- Practical Lab: Advanced Tokenization Conceptsβ’5 minutes
- The Role of Log Probabilities in Text Generationβ’4 minutes
- Practical Lab: Simulating Sentence Generationβ’12 minutes
- The Context Window and Its Limitationsβ’5 minutes
- Key Components of API Usage Costsβ’6 minutes
- Practical Lab: Calculating API Costsβ’16 minutes
- Practical Lab: Advanced Cost Analysisβ’11 minutes
- Exploring Different Classes of Language Modelsβ’6 minutes
- The Importance of System, User, and Assistant Rolesβ’3 minutes
- Practical Lab: Crafting Effective System Promptsβ’14 minutes
2 readingsβ’Total 20 minutes
- Introduction to the Course 'Build with LLMs: Prompt Engineering & Real AI Projects'β’10 minutes
- Full Specialization Resourcesβ’10 minutes
1 assignmentβ’Total 15 minutes
- Core Concepts: The Inner Workings of LLMs - Assessmentβ’15 minutes
In this module, we will explore essential prompt engineering patterns that enhance the effectiveness of prompts. You'll learn how to structure prompts using delimiters, set personas, and implement few-shot examples to improve model accuracy. Additionally, we'll cover techniques like chain-of-thought reasoning and organizing information with templates.
What's included
18 videos1 assignment
18 videosβ’Total 132 minutes
- Section Overviewβ’2 minutes
- The Anatomy of a Prompt: Instructions, Context, and Constraintsβ’6 minutes
- Practical Lab: Building a Structured Promptβ’13 minutes
- Using Delimiters to Structure Promptsβ’5 minutes
- Refactoring a Prompt with Delimitersβ’8 minutes
- Practical Lab: Applying Delimiters Effectivelyβ’9 minutes
- Setting Personas for Targeted Responsesβ’6 minutes
- Practical Lab: Implementing the Persona Patternβ’12 minutes
- Practical Lab: Setting Clear Behavioral Guidelines for the AIβ’6 minutes
- Case Study: Creating a Database Administrator Personaβ’7 minutes
- Improving Accuracy with Few-Shot Promptingβ’5 minutes
- Practical Lab: Implementing Few-Shot Examplesβ’12 minutes
- Strategies for Controlling Output Formatβ’10 minutes
- Advanced Output Formatting Techniquesβ’7 minutes
- Encouraging Reasoning with Chain-of-Thoughtβ’4 minutes
- Practical Lab: Applying Chain-of-Thought Promptingβ’5 minutes
- Organizing Information with the Template Patternβ’4 minutes
- Practical Lab: Building and Using Prompt Templatesβ’10 minutes
1 assignmentβ’Total 15 minutes
- Foundational Prompt Engineering Patterns - Assessmentβ’15 minutes
In this module, we will guide you through creating an AI-powered tool for generating Git commit messages. You'll learn how to retrieve Git diffs, design prompt templates, and integrate user review steps. Testing and logging features will also be implemented to ensure the tool works effectively in real-world scenarios.
What's included
10 videos1 reading3 assignments
10 videosβ’Total 114 minutes
- Module Overview and Goalsβ’1 minute
- Setting Up the Boilerplate for the Commit Featureβ’15 minutes
- Programmatically Retrieving Git Diffsβ’17 minutes
- Designing Prompt Templates for Commit Messagesβ’11 minutes
- Building the Core Logic for AI Commitsβ’12 minutes
- Adding a User Review and Edit Stepβ’11 minutes
- Enhancing the Test Suite for the Commit Featureβ’19 minutes
- Integrating Robust Loggingβ’15 minutes
- Enabling Model Selection via the CLIβ’9 minutes
- Documenting the Smart Commit Featureβ’5 minutes
1 readingβ’Total 10 minutes
- Conclusion to the Course 'Build with LLMs: Prompt Engineering & Real AI Projects'β’10 minutes
3 assignmentsβ’Total 90 minutes
- Project Module #2: AI-Powered Git Commit Messages - Assessmentβ’15 minutes
- Full Course Assessmentβ’60 minutes
- Full Course Practice Assessmentβ’15 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
- Status: Preview
Course
- Status: FreeD
DeepLearning.AI
Project
- Status: Free TrialE
Edureka
Course
- Status: Free Trial
Course
Why people choose Coursera for their career
Frequently asked questions
Prompt Engineering involves designing and structuring inputs (prompts) that guide large language models (LLMs) to generate meaningful and accurate outputs. This skill is essential as it enhances your ability to communicate effectively with AI models, enabling them to perform better in tasks such as text generation, summarization, and problem-solving. As AI technology continues to evolve, mastering prompt engineering ensures that AI tools are used efficiently and effectively in various applications.
The "Core Techniques & Intermediate Projects" course delves deeper into the foundational and advanced techniques of prompt engineering. It covers essential concepts such as tokenization, log probabilities, and the context window in LLMs, along with practical labs to help you apply these concepts. The course also introduces you to essential strategies for crafting effective prompts, including using personas, few-shot prompting, and advanced output formatting techniques. You'll also work on an intermediate project where you'll build an AI-powered tool for generating Git commit messages.
After completing this course, you will have a strong understanding of how large language models process inputs and generate responses. You'll be able to craft effective prompts using various techniques such as persona-setting, few-shot prompting, and chain-of-thought. Additionally, you will gain hands-on experience building AI-powered tools, such as a Git commit message generator, and have the ability to enhance the functionality of these tools through model selection and integration.
More questions
Financial aid available,
