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