SlideShare a Scribd company logo
1 of 28
Download to read offline
Prompt Engineering -
an Art, a Science, or
your next Job Title?
Maxim Salnikov
Developer Productivity Lead
Microsoft
• Building on web platform since 90s
• Organizing developer communities and technical conferences
• Speaking, training, blogging: Webdev, Cloud, OpenAI
Helping developers to succeed with the Cloud & AI technology
I’m Maxim Salnikov
• Generative AI’s impact on productivity could add up to
$4.4 trillion annually in value to the global economy.
• About 75% of the value that generative AI use cases
could deliver falls across customer
operations, marketing, sales, software engineering,
and R&D .
• Generative AI can revolutionize work by automating a
significant portion of employees' activities, up to 60-
70% of their current workload. This augmentation of
individual capabilities has the potential to transform
the way we work.
Artificial Intelligence
1956
Artificial Intelligence
The field of computer science that seeks to create
intelligent machines that can replicate or exceed
human intelligence
Machine Learning
1997
Machine Learning
Subset of AI that enables machines to learn from
existing data and improve upon that data to make
decisions or predictions
Deep Learning
2017
Deep Learning
A machine learning technique in which layers of neural
networks are used to process data and make decisions
Generative AI
2021
Generative AI powered by foundation
models
Create new written, visual, and auditory content given
prompts or existing data
Path to impact and usecases
Source: IDC, IDC PlanScape: Developing Your Path to Impact with Generative AI, #US51157323
Emerging model landscape
• OpenAI's GPT2, ChatGPT, GPT-3, GPT3.5, GPT4.0 (language) DALL-E 2 (image),
and Whisper (speech)
• Stability.ai's Stable Diffusion (image)
• Midjourney (image)
• Google's PaLM, PaLM2, LaMDA, Minerva, UL2, Bard (language), and Imagen
(image)
• Google/DeepMind's Chinchilla, Retro-7B, AlphaCode (language), Flamingo,
and Gato (multimodal)
• Meta's LLaMa, NLLB, OPT-175B, Sparse all-MLP (language), Make-a-Video
(video), and data2vec (multimodal)
• Microsoft's DeepNet (language) and MetaLM (multimodal)
• BigScience's BLOOM (language)
• AI21 Labs' Jurassic-X (language)
• Dolly 2.0 (language)
• …
One common thing…
Prompt Engineering
Process of designing, refining, and
optimizing input prompts to guide a
model toward producing more accurate
outputs while keeping cost efficiency
Prompt anatomy
<
Write a product launch email for new headphones.
This product is AI-powered and priced at $79.99.
The tone is friendly and exciting.
Output as a JSON object with "subject" and "body" fields.
Example:
{
"subject": "Introducing Our New AI-Powered Headphones!",
"body": "We are thrilled to announce the launch of our new AI-
powered headphones"
}
Output:
Instruction
Input data
Context
Target format
Example
Cue
<
Tokens
Prompts and cost efficiency
• Prompt and completion length
• Number of API calls in production
• Number of API calls during development
(experimentation stage)
• Type of deployed model
Model selection strategy: Start with heaviest models and gradually ramp down to cheaper ones
while the result is satisfactory
•
• Tokens can sometimes be counter-intuitive
• Tabular data is space-efficient
Space efficiency
General recommendations
• Be specific
• Order matters
• Double down
• Give the model an “out”
Technical recommendations
• Start with clear instructions and repeat the
instructions at the end
• Add clear syntax: headers, separators
• Break the task down
• Adjust parameters: Temperature and Top
probabilities
Zero-shot VS few-shot prompts
Zero-shot
The model predicts the answer given only a natural language description
of the task.
Few-shot
In addition to the task description, the model sees a few examples of the
task.
Customer question: Hi there, do you know how to choose
flood insurance?​
Classified topic: 2​
Customer question: Hi there, I have a question on my auto insurance.​
Classified topic: 1​
Classify customer's question. Classify between category 1 to 3.
Detailed guidelines for how to choose:
choose 1 if the question is about auto insurance.
choose 2 if the question is about home flood insurance.
choose 3 if the question is not relevant to insurance.
Classify customer's question. Classify between category 1 to 3.
Detailed guidelines for how to choose:
choose 1 if the question is about auto insurance.
choose 2 if the question is about home flood insurance.
choose 3 if the question is not relevant to insurance.
Customer question: {insert new question here}
Classified topic:
Customer question: What packages do you have in auto insurance?
Classified topic:
Zero Shot - Reasoning
Before
What is the annual water demand of a single-family
household containing four people who are at home an
average of 200 days per year and use an average of 100
liters of water per day?
The annual water demand of a single-family household
containing four people who are at home an average of
200 days per year and use an average of 100 liters of
water per day is 8,000,000 liters per year.
After
What is the annual water demand of a single-family
household containing four people who are at home an
average of 200 days per year and use an average of 100
liters of water per day?
Let’s think step by step and explain the calculation
step by step.
Step 1: Calculate the total number of days in a year:
There are 365 days in a year.
Step 2: Calculate the total number of days the family is at home:
The family is at home an average of 200 days per year.
Step 3: Calculate the total water demand of the family:
The family uses an average of 100 liters of water per day. Therefore, the total water
demand of the family is 100 liters x 200 days = 20,000 liters per year.
Step 4: Calculate the annual water demand of the single-family household:
The annual water demand of the single-family household is 20,000 liters per year.
Few Shot Reasoning – Example 1
1st prompt
Roger has 5 tennis balls. He buys 2 more cans of tennis
balls. Each can has 3 tennis balls. How many tennis balls
does he have now?
Answer: The answer is 11.
The cafeteria has 23 apples. If they used 20 to make lunch
and bought 6 more, how many do they have?
The answer is 27
2nd prompt—provide reasoning
Roger has 5 tennis balls. He buys 2 more cans of tennis
balls. Each can has 3 tennis balls. How many tennis balls
does he have now?
Answer: Roger started with 5 balls. 2 cans of 3 tennis balls
each is 6 tennis balls. 5+6 = 11. The answer is 11.
The cafeteria has 23 apples. If they used 20 to make lunch
and bought 6 more, how many do they have?
The cafeteria had 23 apples originally. They used 20 to
make lunch. So they had 23-20 = 3. They bought 6
more apples, so they have 3 + 6 = 9. The answer is 9.
Prompt Chaining
Entity Extraction
Please extract entities from the
following news article: 'The new
iPhone model is set to be released
next month. It has been highly
anticipated by Apple fans and is
expected to feature a larger screen
and improved camera
{'text': 'iPhone', 'type’:
'PRODUCT'}, {'text': 'Apple’,
'type': 'ORGANIZATION'}]
Summarization
Please summarize the information
about the product
[{'text': 'iPhone', 'type': 'PRODUCT'},
{'text': 'Apple', 'type':
'ORGANIZATION’}]
The iPhone is a line of smartphones
designed and marketed by Apple
Inc. These devices combine a
computer, camera, and internet
connectivity in a single device, and
are known for their sleek design and
user-friendly interface.
Sentiment Analysis
Please provide a sentiment for the
following text:
The iPhone is a line of smartphones
designed and marketed by Apple
Inc. These devices combine a
computer, camera, and internet
connectivity in a single device,
and are known for their sleek
design and user-friendly interface.
Positive
Few Shot Reasoning – Example 2
1st prompt—Reason Extraction
On average Joe throws 25 punches per minute.
A fight lasts 5 rounds of 3 minutes. How many
punches did he throw?
Let’s think step by step and explain the calculation
step by step.
In one minute, Joe throws 25 punches.
In three minutes, Joe throws 3 * 25 = 75 punches.
In five rounds, Joe throws 5*75 = 375 punches.
2nd prompt—Answer Extraction
One average Joe throws 25 punches per minute.
A fight lasts 5 rounds of 3 minutes. How many
punches did he throw?
In one minute, Joe throws 25 punches.
In three minutes, Joe throws 3 * 25 = 75 punches.
In five rounds, Joe throws 5*75 = 375 punches.
The cafeteria has 23 apples. If they used 20 to make lunch
and bought 6 more, how many do they have?
Therefore, the answer (Arabic numerals) is
The cafeteria had 23 apples originally. They used 20
to make lunch. So they had 23-20 = 3. They bought 6
more apples, so they have 3 + 6 = 9. The answer is 9.
Prompt Chunking (token limit)
Large Text
Beyond
Token
Limit
Chunks
Please summarize and extract topic: Global warming refers to
the gradual increase in the overall temperature of the Earth's
atmosphere, primarily caused by the burning of fossil fuels
such as coal, oil, and natural gas. This burning releases
carbon dioxide and other greenhouse gases into the
atmosphere, which trap heat and cause the Earth's
temperature to rise.
Climate change is a pressing issue that needs to be addressed
immediately. Governments around the world need to take
immediate action to reduce carbon emissions and invest in
renewable energy sources. Failure to do so will have dire
consequences for future generations
The text is discussing global warming, which is the gradual increase in
the overall temperature of the Earth's atmosphere caused by the
burning of fossil fuels. This burning releases greenhouse gases, such as
carbon dioxide, into the atmosphere which trap heat and cause the
temperature to rise. The text also highlights the urgency of the issue of
climate change and the need for governments to take action to reduce
carbon emissions and invest in renewable energy sources. Failure to
address this issue will have negative consequences for future
generations.
Topic: Climate change and Global warming.
Continue to
next prompt
Please summarize the following text:
'Climate change is a pressing issue that
needs to be addressed immediately. The
increasing levels of carbon dioxide in the
atmosphere are causing the Earth's
temperature to rise, which is leading to
more frequent and severe natural disasters.
Governments around the world need to take
immediate action to reduce carbon
emissions and invest in renewable energy
sources. Failure to do so will have dire
consequences for future generations'"
Climate change is a pressing issue that needs to
be addressed immediately. Governments
around the world need to take immediate
action to reduce carbon emissions and invest in
renewable energy sources. Failure to do so will
have dire consequences for future generations
Then all summaries are passed to GPT again to
summarize, i.e. second round of summarization. The sum
of the summaries has to fit within the token limit.
Retrieval Augmented Generation (RAG)
Extract precise answers from your unstructured documents with Azure OpenAI + Cognitive Search: article + repo
https://learn.microsoft.com/en-us/azure/search/retrieval-augmented-generation-overview
https://enterprise.promptengineering.rocks
App or
Copilot agent
API & SDK
Azure OpenAI
Service on your data
Data Sources
(search, files, databases, storage etc.)
Additional 3P Data Sources
(files, databases, storage data etc.)
Recently Announced
Azure OpenAI Service
on your data
https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data
LangChain Semantic Kernel
https://github.com/microsoft/semantic-kernel
https://github.com/langchain-ai/langchain
Prompt Flow – streamline dev cycle of LLM-based apps
https://github.com/microsoft/promptflow
Learning resources
• Learn Prompting Community
• Prompting Guide by DAIR.AI
• Prompt Engineering for the developers on Deep Learning
• Prompt Examples on OpenAI
• Introduction to Prompt Engineering on Microsoft Learn
https://promptengineering.rocks
Maxim.Salnikov@microsoft.com
Let’s connect and chat!
Thank you!

More Related Content

What's hot

Unlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfUnlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfPremNaraindas1
 
ChatGPT vs. GPT-3.pdf
ChatGPT vs. GPT-3.pdfChatGPT vs. GPT-3.pdf
ChatGPT vs. GPT-3.pdfAddepto
 
Chat GPT TEL Community of Practice
Chat GPT TEL Community of PracticeChat GPT TEL Community of Practice
Chat GPT TEL Community of PracticePeter Windle
 
Revolutionary-ChatGPT
Revolutionary-ChatGPTRevolutionary-ChatGPT
Revolutionary-ChatGPT9 series
 
Generative AI and law.pptx
Generative AI and law.pptxGenerative AI and law.pptx
Generative AI and law.pptxChris Marsden
 
Let's talk about GPT: A crash course in Generative AI for researchers
Let's talk about GPT: A crash course in Generative AI for researchersLet's talk about GPT: A crash course in Generative AI for researchers
Let's talk about GPT: A crash course in Generative AI for researchersSteven Van Vaerenbergh
 
A comprehensive guide to prompt engineering.pdf
A comprehensive guide to prompt engineering.pdfA comprehensive guide to prompt engineering.pdf
A comprehensive guide to prompt engineering.pdfStephenAmell4
 
ChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT ExpertsChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT ExpertsAli Tavanayan
 
Praneet’s Pre On ChatGpt edited.pptx
Praneet’s Pre On ChatGpt edited.pptxPraneet’s Pre On ChatGpt edited.pptx
Praneet’s Pre On ChatGpt edited.pptxSalunke2
 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptxomornahid1
 
Fine tuning large LMs
Fine tuning large LMsFine tuning large LMs
Fine tuning large LMsSylvainGugger
 
Everything to know about ChatGPT
Everything to know about ChatGPTEverything to know about ChatGPT
Everything to know about ChatGPTKnoldus Inc.
 
Increase Productivity with ChatGPT
Increase Productivity with ChatGPTIncrease Productivity with ChatGPT
Increase Productivity with ChatGPTPrinceGarg95
 
Generative AI, WiDS 2023.pptx
Generative AI, WiDS 2023.pptxGenerative AI, WiDS 2023.pptx
Generative AI, WiDS 2023.pptxColleen Farrelly
 
Leveraging Generative AI & Best practices
Leveraging Generative AI & Best practicesLeveraging Generative AI & Best practices
Leveraging Generative AI & Best practicesDianaGray10
 

What's hot (20)

Unlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfUnlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdf
 
Webinar on ChatGPT.pptx
Webinar on ChatGPT.pptxWebinar on ChatGPT.pptx
Webinar on ChatGPT.pptx
 
LLMs Bootcamp
LLMs BootcampLLMs Bootcamp
LLMs Bootcamp
 
ChatGPT vs. GPT-3.pdf
ChatGPT vs. GPT-3.pdfChatGPT vs. GPT-3.pdf
ChatGPT vs. GPT-3.pdf
 
Chat GPT TEL Community of Practice
Chat GPT TEL Community of PracticeChat GPT TEL Community of Practice
Chat GPT TEL Community of Practice
 
ChatGPT 101.pptx
ChatGPT 101.pptxChatGPT 101.pptx
ChatGPT 101.pptx
 
Revolutionary-ChatGPT
Revolutionary-ChatGPTRevolutionary-ChatGPT
Revolutionary-ChatGPT
 
Generative AI and law.pptx
Generative AI and law.pptxGenerative AI and law.pptx
Generative AI and law.pptx
 
Let's talk about GPT: A crash course in Generative AI for researchers
Let's talk about GPT: A crash course in Generative AI for researchersLet's talk about GPT: A crash course in Generative AI for researchers
Let's talk about GPT: A crash course in Generative AI for researchers
 
A comprehensive guide to prompt engineering.pdf
A comprehensive guide to prompt engineering.pdfA comprehensive guide to prompt engineering.pdf
A comprehensive guide to prompt engineering.pdf
 
CHATGPT.pptx
CHATGPT.pptxCHATGPT.pptx
CHATGPT.pptx
 
ChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT ExpertsChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT Experts
 
Praneet’s Pre On ChatGpt edited.pptx
Praneet’s Pre On ChatGpt edited.pptxPraneet’s Pre On ChatGpt edited.pptx
Praneet’s Pre On ChatGpt edited.pptx
 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptx
 
Fine tuning large LMs
Fine tuning large LMsFine tuning large LMs
Fine tuning large LMs
 
Introduction to ChatGPT
Introduction to ChatGPTIntroduction to ChatGPT
Introduction to ChatGPT
 
Everything to know about ChatGPT
Everything to know about ChatGPTEverything to know about ChatGPT
Everything to know about ChatGPT
 
Increase Productivity with ChatGPT
Increase Productivity with ChatGPTIncrease Productivity with ChatGPT
Increase Productivity with ChatGPT
 
Generative AI, WiDS 2023.pptx
Generative AI, WiDS 2023.pptxGenerative AI, WiDS 2023.pptx
Generative AI, WiDS 2023.pptx
 
Leveraging Generative AI & Best practices
Leveraging Generative AI & Best practicesLeveraging Generative AI & Best practices
Leveraging Generative AI & Best practices
 

Similar to Prompt Engineering - an Art, a Science, or your next Job Title?

Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
Eco 365 Inspiring Innovation--tutorialrank.com
Eco 365 Inspiring Innovation--tutorialrank.comEco 365 Inspiring Innovation--tutorialrank.com
Eco 365 Inspiring Innovation--tutorialrank.comPrescottLunt391
 
Highschool Research Paper Samples Research Paper
Highschool Research Paper Samples Research PaperHighschool Research Paper Samples Research Paper
Highschool Research Paper Samples Research PaperApril Charlton
 
CSSA KZN Chapter 2007 AGM
CSSA KZN Chapter 2007 AGMCSSA KZN Chapter 2007 AGM
CSSA KZN Chapter 2007 AGMlokes
 
Chapter One Notes
Chapter One NotesChapter One Notes
Chapter One NotesMrRedAHS
 
BUSI 620 MENTOR Education Your Life--busi620mentor
BUSI 620 MENTOR Education Your Life--busi620mentorBUSI 620 MENTOR Education Your Life--busi620mentor
BUSI 620 MENTOR Education Your Life--busi620mentorthomashard44
 
BUSI 620 MENTOR Education Planning--busi620mentor.com
BUSI 620 MENTOR Education Planning--busi620mentor.comBUSI 620 MENTOR Education Planning--busi620mentor.com
BUSI 620 MENTOR Education Planning--busi620mentor.comagathachristie298
 
Chapter One Powerpoint
Chapter One PowerpointChapter One Powerpoint
Chapter One PowerpointMrRed
 
How To Format Essays - Ocean County College
How To Format Essays - Ocean County CollegeHow To Format Essays - Ocean County College
How To Format Essays - Ocean County CollegeTodd Turner
 
BUSI 620 Inspiring Innovation/tutorialrank.com
 BUSI 620 Inspiring Innovation/tutorialrank.com BUSI 620 Inspiring Innovation/tutorialrank.com
BUSI 620 Inspiring Innovation/tutorialrank.comjonhson108
 
Busi 620 Enhance teaching / snaptutorial.com
Busi 620  Enhance teaching / snaptutorial.comBusi 620  Enhance teaching / snaptutorial.com
Busi 620 Enhance teaching / snaptutorial.comHarrisGeorg50
 
Innovators &amp; Innovation
Innovators &amp; InnovationInnovators &amp; Innovation
Innovators &amp; InnovationDD D
 
Eco 365 Education Specialist-snaptutorial.com
Eco 365 Education Specialist-snaptutorial.comEco 365 Education Specialist-snaptutorial.com
Eco 365 Education Specialist-snaptutorial.comrobertledwes1
 
How to change the world - Wind of Change at Major Corporations
How to change the world - Wind of Change at Major CorporationsHow to change the world - Wind of Change at Major Corporations
How to change the world - Wind of Change at Major Corporationsimpact100EFG
 
3Environmental ImpactThe Big PictureThe planet’s .docx
3Environmental ImpactThe Big PictureThe planet’s .docx3Environmental ImpactThe Big PictureThe planet’s .docx
3Environmental ImpactThe Big PictureThe planet’s .docxgilbertkpeters11344
 
Cooperrider Laszlo 2009
Cooperrider Laszlo 2009Cooperrider Laszlo 2009
Cooperrider Laszlo 2009dlc6
 

Similar to Prompt Engineering - an Art, a Science, or your next Job Title? (20)

Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Eco 365 Inspiring Innovation--tutorialrank.com
Eco 365 Inspiring Innovation--tutorialrank.comEco 365 Inspiring Innovation--tutorialrank.com
Eco 365 Inspiring Innovation--tutorialrank.com
 
Highschool Research Paper Samples Research Paper
Highschool Research Paper Samples Research PaperHighschool Research Paper Samples Research Paper
Highschool Research Paper Samples Research Paper
 
CSSA KZN Chapter 2007 AGM
CSSA KZN Chapter 2007 AGMCSSA KZN Chapter 2007 AGM
CSSA KZN Chapter 2007 AGM
 
Chapter One Notes
Chapter One NotesChapter One Notes
Chapter One Notes
 
EIA 2015 Validating Revenue Model Assumptions
EIA 2015 Validating Revenue Model AssumptionsEIA 2015 Validating Revenue Model Assumptions
EIA 2015 Validating Revenue Model Assumptions
 
BUSI 620 MENTOR Education Your Life--busi620mentor
BUSI 620 MENTOR Education Your Life--busi620mentorBUSI 620 MENTOR Education Your Life--busi620mentor
BUSI 620 MENTOR Education Your Life--busi620mentor
 
BUSI 620 MENTOR Education Planning--busi620mentor.com
BUSI 620 MENTOR Education Planning--busi620mentor.comBUSI 620 MENTOR Education Planning--busi620mentor.com
BUSI 620 MENTOR Education Planning--busi620mentor.com
 
Chapter One Powerpoint
Chapter One PowerpointChapter One Powerpoint
Chapter One Powerpoint
 
APEC issue1
APEC issue1APEC issue1
APEC issue1
 
The Insight of Social
The Insight of SocialThe Insight of Social
The Insight of Social
 
Decision Making Process
Decision Making ProcessDecision Making Process
Decision Making Process
 
How To Format Essays - Ocean County College
How To Format Essays - Ocean County CollegeHow To Format Essays - Ocean County College
How To Format Essays - Ocean County College
 
BUSI 620 Inspiring Innovation/tutorialrank.com
 BUSI 620 Inspiring Innovation/tutorialrank.com BUSI 620 Inspiring Innovation/tutorialrank.com
BUSI 620 Inspiring Innovation/tutorialrank.com
 
Busi 620 Enhance teaching / snaptutorial.com
Busi 620  Enhance teaching / snaptutorial.comBusi 620  Enhance teaching / snaptutorial.com
Busi 620 Enhance teaching / snaptutorial.com
 
Innovators &amp; Innovation
Innovators &amp; InnovationInnovators &amp; Innovation
Innovators &amp; Innovation
 
Eco 365 Education Specialist-snaptutorial.com
Eco 365 Education Specialist-snaptutorial.comEco 365 Education Specialist-snaptutorial.com
Eco 365 Education Specialist-snaptutorial.com
 
How to change the world - Wind of Change at Major Corporations
How to change the world - Wind of Change at Major CorporationsHow to change the world - Wind of Change at Major Corporations
How to change the world - Wind of Change at Major Corporations
 
3Environmental ImpactThe Big PictureThe planet’s .docx
3Environmental ImpactThe Big PictureThe planet’s .docx3Environmental ImpactThe Big PictureThe planet’s .docx
3Environmental ImpactThe Big PictureThe planet’s .docx
 
Cooperrider Laszlo 2009
Cooperrider Laszlo 2009Cooperrider Laszlo 2009
Cooperrider Laszlo 2009
 

More from Maxim Salnikov

If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...Maxim Salnikov
 
Building Generative AI-infused apps: what's possible and how to start
Building Generative AI-infused apps: what's possible and how to startBuilding Generative AI-infused apps: what's possible and how to start
Building Generative AI-infused apps: what's possible and how to startMaxim Salnikov
 
ChatGPT and not only: how can you use the power of Generative AI at scale
ChatGPT and not only: how can you use the power of Generative AI at scaleChatGPT and not only: how can you use the power of Generative AI at scale
ChatGPT and not only: how can you use the power of Generative AI at scaleMaxim Salnikov
 
Using the power of OpenAI with your own data: what's possible and how to start?
Using the power of OpenAI with your own data: what's possible and how to start?Using the power of OpenAI with your own data: what's possible and how to start?
Using the power of OpenAI with your own data: what's possible and how to start?Maxim Salnikov
 
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...Maxim Salnikov
 
ChatGPT and not only: How to use the power of GPT-X models at scale
ChatGPT and not only: How to use the power of GPT-X models at scaleChatGPT and not only: How to use the power of GPT-X models at scale
ChatGPT and not only: How to use the power of GPT-X models at scaleMaxim Salnikov
 
How Azure helps to build better business processes and customer experiences w...
How Azure helps to build better business processes and customer experiences w...How Azure helps to build better business processes and customer experiences w...
How Azure helps to build better business processes and customer experiences w...Maxim Salnikov
 
Using the power of Generative AI at scale
Using the power of Generative AI at scaleUsing the power of Generative AI at scale
Using the power of Generative AI at scaleMaxim Salnikov
 
Web Push Notifications done right
Web Push Notifications done rightWeb Push Notifications done right
Web Push Notifications done rightMaxim Salnikov
 
The Status of Angular v13
The Status of Angular v13The Status of Angular v13
The Status of Angular v13Maxim Salnikov
 
Azure cloud for the web frontend developers
Azure cloud for the web frontend developersAzure cloud for the web frontend developers
Azure cloud for the web frontend developersMaxim Salnikov
 
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...Maxim Salnikov
 
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опытMaxim Salnikov
 
Securing Connected Cars Requires Digital Identity
Securing Connected Cars Requires Digital IdentitySecuring Connected Cars Requires Digital Identity
Securing Connected Cars Requires Digital IdentityMaxim Salnikov
 
How to Make Your IoT Devices Secure, Act Autonomously & Trusted Subjects
How to Make Your IoT Devices Secure, Act Autonomously & Trusted SubjectsHow to Make Your IoT Devices Secure, Act Autonomously & Trusted Subjects
How to Make Your IoT Devices Secure, Act Autonomously & Trusted SubjectsMaxim Salnikov
 

More from Maxim Salnikov (15)

If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
 
Building Generative AI-infused apps: what's possible and how to start
Building Generative AI-infused apps: what's possible and how to startBuilding Generative AI-infused apps: what's possible and how to start
Building Generative AI-infused apps: what's possible and how to start
 
ChatGPT and not only: how can you use the power of Generative AI at scale
ChatGPT and not only: how can you use the power of Generative AI at scaleChatGPT and not only: how can you use the power of Generative AI at scale
ChatGPT and not only: how can you use the power of Generative AI at scale
 
Using the power of OpenAI with your own data: what's possible and how to start?
Using the power of OpenAI with your own data: what's possible and how to start?Using the power of OpenAI with your own data: what's possible and how to start?
Using the power of OpenAI with your own data: what's possible and how to start?
 
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
If your code could speak, what would it tell you? Let GitHub Copilot Chat hel...
 
ChatGPT and not only: How to use the power of GPT-X models at scale
ChatGPT and not only: How to use the power of GPT-X models at scaleChatGPT and not only: How to use the power of GPT-X models at scale
ChatGPT and not only: How to use the power of GPT-X models at scale
 
How Azure helps to build better business processes and customer experiences w...
How Azure helps to build better business processes and customer experiences w...How Azure helps to build better business processes and customer experiences w...
How Azure helps to build better business processes and customer experiences w...
 
Using the power of Generative AI at scale
Using the power of Generative AI at scaleUsing the power of Generative AI at scale
Using the power of Generative AI at scale
 
Web Push Notifications done right
Web Push Notifications done rightWeb Push Notifications done right
Web Push Notifications done right
 
The Status of Angular v13
The Status of Angular v13The Status of Angular v13
The Status of Angular v13
 
Azure cloud for the web frontend developers
Azure cloud for the web frontend developersAzure cloud for the web frontend developers
Azure cloud for the web frontend developers
 
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...
[Russian] Сервис-воркеры: используем накопленные знания для светлого будущего...
 
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт
[Russian] Прогрессивные веб-приложения: по-настоящему кросс-платформенный опыт
 
Securing Connected Cars Requires Digital Identity
Securing Connected Cars Requires Digital IdentitySecuring Connected Cars Requires Digital Identity
Securing Connected Cars Requires Digital Identity
 
How to Make Your IoT Devices Secure, Act Autonomously & Trusted Subjects
How to Make Your IoT Devices Secure, Act Autonomously & Trusted SubjectsHow to Make Your IoT Devices Secure, Act Autonomously & Trusted Subjects
How to Make Your IoT Devices Secure, Act Autonomously & Trusted Subjects
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 

Prompt Engineering - an Art, a Science, or your next Job Title?

  • 1. Prompt Engineering - an Art, a Science, or your next Job Title? Maxim Salnikov Developer Productivity Lead Microsoft
  • 2. • Building on web platform since 90s • Organizing developer communities and technical conferences • Speaking, training, blogging: Webdev, Cloud, OpenAI Helping developers to succeed with the Cloud & AI technology I’m Maxim Salnikov
  • 3. • Generative AI’s impact on productivity could add up to $4.4 trillion annually in value to the global economy. • About 75% of the value that generative AI use cases could deliver falls across customer operations, marketing, sales, software engineering, and R&D . • Generative AI can revolutionize work by automating a significant portion of employees' activities, up to 60- 70% of their current workload. This augmentation of individual capabilities has the potential to transform the way we work.
  • 4. Artificial Intelligence 1956 Artificial Intelligence The field of computer science that seeks to create intelligent machines that can replicate or exceed human intelligence Machine Learning 1997 Machine Learning Subset of AI that enables machines to learn from existing data and improve upon that data to make decisions or predictions Deep Learning 2017 Deep Learning A machine learning technique in which layers of neural networks are used to process data and make decisions Generative AI 2021 Generative AI powered by foundation models Create new written, visual, and auditory content given prompts or existing data
  • 5. Path to impact and usecases Source: IDC, IDC PlanScape: Developing Your Path to Impact with Generative AI, #US51157323
  • 6. Emerging model landscape • OpenAI's GPT2, ChatGPT, GPT-3, GPT3.5, GPT4.0 (language) DALL-E 2 (image), and Whisper (speech) • Stability.ai's Stable Diffusion (image) • Midjourney (image) • Google's PaLM, PaLM2, LaMDA, Minerva, UL2, Bard (language), and Imagen (image) • Google/DeepMind's Chinchilla, Retro-7B, AlphaCode (language), Flamingo, and Gato (multimodal) • Meta's LLaMa, NLLB, OPT-175B, Sparse all-MLP (language), Make-a-Video (video), and data2vec (multimodal) • Microsoft's DeepNet (language) and MetaLM (multimodal) • BigScience's BLOOM (language) • AI21 Labs' Jurassic-X (language) • Dolly 2.0 (language) • …
  • 8. Prompt Engineering Process of designing, refining, and optimizing input prompts to guide a model toward producing more accurate outputs while keeping cost efficiency
  • 9. Prompt anatomy < Write a product launch email for new headphones. This product is AI-powered and priced at $79.99. The tone is friendly and exciting. Output as a JSON object with "subject" and "body" fields. Example: { "subject": "Introducing Our New AI-Powered Headphones!", "body": "We are thrilled to announce the launch of our new AI- powered headphones" } Output: Instruction Input data Context Target format Example Cue <
  • 11. Prompts and cost efficiency • Prompt and completion length • Number of API calls in production • Number of API calls during development (experimentation stage) • Type of deployed model Model selection strategy: Start with heaviest models and gradually ramp down to cheaper ones while the result is satisfactory
  • 12. • • Tokens can sometimes be counter-intuitive • Tabular data is space-efficient Space efficiency
  • 13. General recommendations • Be specific • Order matters • Double down • Give the model an “out”
  • 14. Technical recommendations • Start with clear instructions and repeat the instructions at the end • Add clear syntax: headers, separators • Break the task down • Adjust parameters: Temperature and Top probabilities
  • 15. Zero-shot VS few-shot prompts Zero-shot The model predicts the answer given only a natural language description of the task. Few-shot In addition to the task description, the model sees a few examples of the task. Customer question: Hi there, do you know how to choose flood insurance?​ Classified topic: 2​ Customer question: Hi there, I have a question on my auto insurance.​ Classified topic: 1​ Classify customer's question. Classify between category 1 to 3. Detailed guidelines for how to choose: choose 1 if the question is about auto insurance. choose 2 if the question is about home flood insurance. choose 3 if the question is not relevant to insurance. Classify customer's question. Classify between category 1 to 3. Detailed guidelines for how to choose: choose 1 if the question is about auto insurance. choose 2 if the question is about home flood insurance. choose 3 if the question is not relevant to insurance. Customer question: {insert new question here} Classified topic: Customer question: What packages do you have in auto insurance? Classified topic:
  • 16. Zero Shot - Reasoning Before What is the annual water demand of a single-family household containing four people who are at home an average of 200 days per year and use an average of 100 liters of water per day? The annual water demand of a single-family household containing four people who are at home an average of 200 days per year and use an average of 100 liters of water per day is 8,000,000 liters per year. After What is the annual water demand of a single-family household containing four people who are at home an average of 200 days per year and use an average of 100 liters of water per day? Let’s think step by step and explain the calculation step by step. Step 1: Calculate the total number of days in a year: There are 365 days in a year. Step 2: Calculate the total number of days the family is at home: The family is at home an average of 200 days per year. Step 3: Calculate the total water demand of the family: The family uses an average of 100 liters of water per day. Therefore, the total water demand of the family is 100 liters x 200 days = 20,000 liters per year. Step 4: Calculate the annual water demand of the single-family household: The annual water demand of the single-family household is 20,000 liters per year.
  • 17. Few Shot Reasoning – Example 1 1st prompt Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now? Answer: The answer is 11. The cafeteria has 23 apples. If they used 20 to make lunch and bought 6 more, how many do they have? The answer is 27 2nd prompt—provide reasoning Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now? Answer: Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5+6 = 11. The answer is 11. The cafeteria has 23 apples. If they used 20 to make lunch and bought 6 more, how many do they have? The cafeteria had 23 apples originally. They used 20 to make lunch. So they had 23-20 = 3. They bought 6 more apples, so they have 3 + 6 = 9. The answer is 9.
  • 18. Prompt Chaining Entity Extraction Please extract entities from the following news article: 'The new iPhone model is set to be released next month. It has been highly anticipated by Apple fans and is expected to feature a larger screen and improved camera {'text': 'iPhone', 'type’: 'PRODUCT'}, {'text': 'Apple’, 'type': 'ORGANIZATION'}] Summarization Please summarize the information about the product [{'text': 'iPhone', 'type': 'PRODUCT'}, {'text': 'Apple', 'type': 'ORGANIZATION’}] The iPhone is a line of smartphones designed and marketed by Apple Inc. These devices combine a computer, camera, and internet connectivity in a single device, and are known for their sleek design and user-friendly interface. Sentiment Analysis Please provide a sentiment for the following text: The iPhone is a line of smartphones designed and marketed by Apple Inc. These devices combine a computer, camera, and internet connectivity in a single device, and are known for their sleek design and user-friendly interface. Positive
  • 19. Few Shot Reasoning – Example 2 1st prompt—Reason Extraction On average Joe throws 25 punches per minute. A fight lasts 5 rounds of 3 minutes. How many punches did he throw? Let’s think step by step and explain the calculation step by step. In one minute, Joe throws 25 punches. In three minutes, Joe throws 3 * 25 = 75 punches. In five rounds, Joe throws 5*75 = 375 punches. 2nd prompt—Answer Extraction One average Joe throws 25 punches per minute. A fight lasts 5 rounds of 3 minutes. How many punches did he throw? In one minute, Joe throws 25 punches. In three minutes, Joe throws 3 * 25 = 75 punches. In five rounds, Joe throws 5*75 = 375 punches. The cafeteria has 23 apples. If they used 20 to make lunch and bought 6 more, how many do they have? Therefore, the answer (Arabic numerals) is The cafeteria had 23 apples originally. They used 20 to make lunch. So they had 23-20 = 3. They bought 6 more apples, so they have 3 + 6 = 9. The answer is 9.
  • 20. Prompt Chunking (token limit) Large Text Beyond Token Limit Chunks Please summarize and extract topic: Global warming refers to the gradual increase in the overall temperature of the Earth's atmosphere, primarily caused by the burning of fossil fuels such as coal, oil, and natural gas. This burning releases carbon dioxide and other greenhouse gases into the atmosphere, which trap heat and cause the Earth's temperature to rise. Climate change is a pressing issue that needs to be addressed immediately. Governments around the world need to take immediate action to reduce carbon emissions and invest in renewable energy sources. Failure to do so will have dire consequences for future generations The text is discussing global warming, which is the gradual increase in the overall temperature of the Earth's atmosphere caused by the burning of fossil fuels. This burning releases greenhouse gases, such as carbon dioxide, into the atmosphere which trap heat and cause the temperature to rise. The text also highlights the urgency of the issue of climate change and the need for governments to take action to reduce carbon emissions and invest in renewable energy sources. Failure to address this issue will have negative consequences for future generations. Topic: Climate change and Global warming. Continue to next prompt Please summarize the following text: 'Climate change is a pressing issue that needs to be addressed immediately. The increasing levels of carbon dioxide in the atmosphere are causing the Earth's temperature to rise, which is leading to more frequent and severe natural disasters. Governments around the world need to take immediate action to reduce carbon emissions and invest in renewable energy sources. Failure to do so will have dire consequences for future generations'" Climate change is a pressing issue that needs to be addressed immediately. Governments around the world need to take immediate action to reduce carbon emissions and invest in renewable energy sources. Failure to do so will have dire consequences for future generations Then all summaries are passed to GPT again to summarize, i.e. second round of summarization. The sum of the summaries has to fit within the token limit.
  • 21. Retrieval Augmented Generation (RAG) Extract precise answers from your unstructured documents with Azure OpenAI + Cognitive Search: article + repo https://learn.microsoft.com/en-us/azure/search/retrieval-augmented-generation-overview
  • 23. App or Copilot agent API & SDK Azure OpenAI Service on your data Data Sources (search, files, databases, storage etc.) Additional 3P Data Sources (files, databases, storage data etc.) Recently Announced Azure OpenAI Service on your data https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data
  • 25. Prompt Flow – streamline dev cycle of LLM-based apps https://github.com/microsoft/promptflow
  • 26. Learning resources • Learn Prompting Community • Prompting Guide by DAIR.AI • Prompt Engineering for the developers on Deep Learning • Prompt Examples on OpenAI • Introduction to Prompt Engineering on Microsoft Learn