Prompt Engineering for LLMs: A Hands-On Azure Tutorial

Coursera · Intermediate ·✍️ Prompt Engineering ·4mo ago

Key Takeaways

Demonstrates prompt engineering techniques for large language models using Azure Chat Playground

Full Transcript

[music] Large language models, often called LLM, are advanced artificial intelligence models that can generate humanlike text. The way someone writes a prompt or instruction can strongly influence the quality of the AI's response. Creating clear and precise prompts is called prompt engineering. This video explores how different approaches to prompt engineering shape the outcome when working with LLMs using the Azure chat playground as the demonstration environment. Before we begin editing prompts, let's walk through how to create a new deployment in the Azure chat playground. First, we navigate to the Azure chat playground by selecting playgrounds on the lefth hand side and then choosing try the chat playground. Next, we'll create a new deployment in the setup by selecting this create new deployment button. Select the model you wish to deploy. In this example, we'll use GPT5 Mini. Select the radio button. Choose confirm. Give it a name. For this example, we'll leave the name as GPT-5- mini, then select deploy. Now, we're ready to craft effective prompts. To begin, consider the importance of prompt clarity. A prompt is a statement or question given to the LLM to start a task. If the prompt is too general, the AI might produce broad or less relevant answers. In this input box, enter the prompt explain climate change. Then select the small arrow to the bottom right of the input box to run the app and see what response we get. As you can see, when we use a general prompt, the LLM gives a long but general answer. There are many facts, but it does not focus on any one aspect. This can make it hard for you to find the specific information you need. More specific prompts can lead to much better results. Adding clear instructions helps the LLM focus. For example, asking the model about a particular effect of climate change narrows its response. Let's try this new prompt. First, we'll clear the output window by selecting the broom in the top right corner, then the blue clear button and enter a new, more detailed prompt. The new prompt instructs the AI to focus on the changes in polar bear habitats over the past decade. This extra detail produces a response that is more targeted and relevant. Providing context and constraints in a prompt, like a time period, location, or specific topic, guides the model to offer more useful and accurate responses. This helps you receive the information you need. Understanding more advanced prompt techniques can further refine AI responses. Two powerful techniques are chain of thought prompting and few shot learning. Before we dive in, let's start fresh with a new prompt. We'll clear the chat history by selecting the broom again in the top right and then choosing clear. Chain of thought prompting is a strategy where the AI is asked to explain its reasoning step by step. This can produce organized and logical answers even for complex questions. Let's enter the prompt, calculate the environmental impact of travel by breaking it into carbon emissions, resource use, and waste. Then compare these factors for air and rail transport. As you can see, we're attempting to have the LLM go through its thought process by calculating the impact first by breaking into carbon emissions, resource use, and waste, and then follow that by comparing these factors. We will select run and see what response we get. After running the prompt, the LLM organizes the answer into sections. We have a section for carbon emissions, a section for resource use, and a section for waste. Then it goes on to make a clear comparison and draw key takeaways in a section down near the bottom. By guiding the model to respond in steps, chain of thought prompting can help ensure the reasoning is transparent and easy to follow. This improves both accuracy and understanding. Let's clear out the page again and talk about fshot learning. Fshot learning is a technique that means giving the LLM several examples before asking it to provide an answer. The model then understands the pattern and tries to follow it in its response. For example, enter the prompt, show two or three examples of product reviews separated by a blank line such as and then we'll provide a format for it to display the reviews in. In this case, the review will have a sentence about the review and then a score with a number divided by a number. Let's select run and see what the model generates. By providing examples, the LLM matched the format and tone displayed. As you can see, we provided these scores for the first two examples and then we asked it to fill in the final score and it did three out of five. Using few shot learning is especially helpful for producing consistent outputs, especially when you want answers in a specific structure or style. Practicing these prompt engineering skills makes it easier to get the most out of large language models. Try different prompt styles during the activity to see how small changes to your prompts affect model responses. Adjust prompts, review the outputs, and compare how the responses improve. For future practice, remember, start with clear and specific prompts, add more detail or structure as needed, use reasoning steps for complex tasks, and supply examples when a certain response style is important. These small adjustments can help LLM deliver responses that match your learning or project goals.

Original Description

Large language models (LLMs) can produce dramatically different results depending on how prompts are written. This walkthrough shows how to craft clearer prompts, add useful constraints, and apply advanced techniques like chain-of-thought prompting and few-shot learning—using the Azure Chat Playground as a hands-on demo. 00:05 What LLMs are + what “prompt engineering” means 00:35 Create a new deployment in Azure Chat Playground 01:21 Prompt clarity: general vs. specific prompts (climate change example) 03:07 Advanced techniques overview: chain-of-thought + few-shot 03:16 Chain-of-thought prompting (structured reasoning + comparisons) 04:27 Few-shot learning (examples to guide format + tone) 05:30 Practice tips: iterate, compare outputs, refine prompts 06:01 Key takeaways and next steps Keep building prompt engineering skills with guided practice and real-world examples through the *Microsoft Generative AI Engineering Professional Certificate*: https://bit.ly/4c5FVnI #PromptEngineering #LargeLanguageModels #GenerativeAI #AzureAI #AzureOpenAI #AIProjects #MachineLearning #TechSkills
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Coursera · Coursera · 0 of 60

← Previous Next →
1 Principles of Obesity Economics with Professor Kevin Frick
Principles of Obesity Economics with Professor Kevin Frick
Coursera
2 Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Coursera
3 E-learning and Digital Cultures
E-learning and Digital Cultures
Coursera
4 Equine Nutrition with Jo-Anne Murray
Equine Nutrition with Jo-Anne Murray
Coursera
5 Coursera Meetup BBQ
Coursera Meetup BBQ
Coursera
6 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
7 Nutrition for Health Promotion and Disease Prevention with Katie Clark
Nutrition for Health Promotion and Disease Prevention with Katie Clark
Coursera
8 Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Coursera
9 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
10 Writing in the Sciences with Kristin Sainani
Writing in the Sciences with Kristin Sainani
Coursera
11 Economic Issues, Food, and You with Jennifer Clark
Economic Issues, Food, and You with Jennifer Clark
Coursera
12 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
13 Useful Genetics with Professor Rosie Redfield
Useful Genetics with Professor Rosie Redfield
Coursera
14 A History of the World since 1300!!!! with Jeremy Adelman
A History of the World since 1300!!!! with Jeremy Adelman
Coursera
15 Microeconomics  with Richard McKenzie
Microeconomics with Richard McKenzie
Coursera
16 Discrete Optimization with Professor Pascal Van Hentenryck
Discrete Optimization with Professor Pascal Van Hentenryck
Coursera
17 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
18 Science from Superheroes to Global Warming with Michael Dennin
Science from Superheroes to Global Warming with Michael Dennin
Coursera
19 Introduction to Digital Sound Design with Steve Everett by Emory University
Introduction to Digital Sound Design with Steve Everett by Emory University
Coursera
20 Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Coursera
21 Galaxies and Cosmology with S. George Djorgovski
Galaxies and Cosmology with S. George Djorgovski
Coursera
22 Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Coursera
23 Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Coursera
24 AIDS with Kimberley Sessions Hagen, EdD
AIDS with Kimberley Sessions Hagen, EdD
Coursera
25 Health Informatics in the Cloud with Mark Braunstein
Health Informatics in the Cloud with Mark Braunstein
Coursera
26 Songwriting with Pat Pattison by Berklee College of Music
Songwriting with Pat Pattison by Berklee College of Music
Coursera
27 Software Defined Networking with Dr. Nick Feamster
Software Defined Networking with Dr. Nick Feamster
Coursera
28 Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Coursera
29 Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Coursera
30 Organizational Analysis with Daniel McFarland
Organizational Analysis with Daniel McFarland
Coursera
31 Scientific Computing with J. Nathan Kutz
Scientific Computing with J. Nathan Kutz
Coursera
32 Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Coursera
33 Principles of Economics for Scientists with Antonio Rangel
Principles of Economics for Scientists with Antonio Rangel
Coursera
34 Introduction to Music Production with Loudon Stearns by Berklee College of Music
Introduction to Music Production with Loudon Stearns by Berklee College of Music
Coursera
35 Principles of Public Health with Zuzana Bic
Principles of Public Health with Zuzana Bic
Coursera
36 The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
Coursera
37 The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
Coursera
38 Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Coursera
39 Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Coursera
40 Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Coursera
41 Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Coursera
42 Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Coursera
43 Web Intelligence and Big Data with Gautam Shroff
Web Intelligence and Big Data with Gautam Shroff
Coursera
44 Critical Perspectives on Management with  Rolf  Strom-Olsen
Critical Perspectives on Management with Rolf Strom-Olsen
Coursera
45 El ABC  del emprendimiento esbelto  with Sergio  Ortiz Valdes
El ABC del emprendimiento esbelto with Sergio Ortiz Valdes
Coursera
46 Interprofessional Healthcare Informatics with Karen  Monsen
Interprofessional Healthcare Informatics with Karen Monsen
Coursera
47 Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Coursera
48 Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Coursera
49 Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Coursera
50 Matematicas y movimiento with
Matematicas y movimiento with
Coursera
51 Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Coursera
52 Latin American Culture with Enrique Tames
Latin American Culture with Enrique Tames
Coursera
53 Latin American Culture' with undefined
Latin American Culture' with undefined
Coursera
54 Computer Security with Dan Boneh
Computer Security with Dan Boneh
Coursera
55 Introduction to Art: Concepts & Techniques
Introduction to Art: Concepts & Techniques
Coursera
56 Programmed cell death
Programmed cell death
Coursera
57 El ABC  del emprendimiento esbelto
El ABC del emprendimiento esbelto
Coursera
58 Understanding economic policymaking
Understanding economic policymaking
Coursera
59 History of Rock, Part 1 by University of Rochester
History of Rock, Part 1 by University of Rochester
Coursera
60 Pensamiento Cientifico
Pensamiento Cientifico
Coursera

Related Reads

Chapters (8)

0:05 What LLMs are + what “prompt engineering” means
0:35 Create a new deployment in Azure Chat Playground
1:21 Prompt clarity: general vs. specific prompts (climate change example)
3:07 Advanced techniques overview: chain-of-thought + few-shot
3:16 Chain-of-thought prompting (structured reasoning + comparisons)
4:27 Few-shot learning (examples to guide format + tone)
5:30 Practice tips: iterate, compare outputs, refine prompts
6:01 Key takeaways and next steps
Up next
What is Prompt Chaining Explained with Examples
VLR Software Training
Watch →