SlideShare a Scribd company logo
1 of 48
Download to read offline
AI and Prompt Design
The Basics of Prompt Design
1. ChatGPT User Interface
2. What are Hallucinations?
3. What types of Hallucinations are there?
4. Why do they Happen?
5. How can we prevent them?
6. Context
7. Knowledge Bases
Goals
ChatGPT User Interface
Hallucinations
Fredegis of Tours
What are Hallucinations?
What are
Hallucinations?
Types of Hallucinations
1. Contradictory Hallucinations
2. Factual Hallucinations
3. Incoherent Hallucinations
Exercise 1 (10 min): Forcing Hallucinations
Why do Hallucinations Happen?
Why do
Hallucinations
Happen?
Reasons
1. Training Data
2. Temperature
3. Context
Why do
Hallucinations
Happen?
Training Data
● Inaccurate or False Information
● Outdated Information
● Low Diversity of Sources
● Noisy Data
● Misleading or Biased Data
Why do
Hallucinations
Happen?
Inaccurate or False Information
A language model trained on a
dataset containing inaccurately
transcribed historical texts might
replicate these errors. For instance,
if the transcriptions wrongly attribute
a famous quote to the wrong
historical figure, the model may
perpetuate this falsehood in its
responses.
Why do
Hallucinations
Happen?
Inaccurate or False Information
“To have another language is to
possess a second soul.”
- Charlemagne
Why do
Hallucinations
Happen?
Outdated Information
A model trained on data up to 2020
might provide outdated information
about a rapidly evolving field such
as artificial intelligence. For
instance, it could miss the latest
advancements in neural network
architectures introduced after its
last training cut-off.
Why do
Hallucinations
Happen?
Outdated Information
Who won the Stanley cup in 2023?
Why do
Hallucinations
Happen?
Low Diversity of Sources
If a language model is
predominantly trained on data from
English-speaking countries, it might
not perform well in generating
content relevant to non-English
speaking cultures or fail to
adequately represent diverse
perspectives on global issues.
Why do
Hallucinations
Happen?
Low Diversity of Sources
Who was the mayor of Fort Myers
in 2022?
Why do
Hallucinations
Happen?
Low Diversity of Sources
Who was the mayor of
Theewaterskloof in 2022?
Why do
Hallucinations
Happen?
Noisy Data
A dataset filled with typographical
errors, inconsistent use of
terminology, and grammar mistakes
can lead to a model that generates
text with similar errors. This noise in
the training data can compromise
the clarity and professionalism of
the model’s outputs.
Why do
Hallucinations
Happen?
Biased Data
If a model is trained on editorial
content that heavily favors certain
political ideologies over others, it
might generate responses that are
biased toward those viewpoints.
This could skew the model's
neutrality, leading to misleading or
biased outputs when discussing
political topics.
Why do
Hallucinations
Happen?
Biased Data
Who is the best British soccer
team?
Why do
Hallucinations
Happen?
Reinforcement Training Data
Let’s delve in.
Why do
Hallucinations
Happen?
Reinforcement Training Data
Let’s delve in.
Why do
Hallucinations
Happen?
Reinforcement Training Data
Let’s delve in.
https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback
Why do
Hallucinations
Happen?
Temperature
Temperature in the context of
machine learning models like
large language models (LLMs)
doesn't refer to physical heat,
but is rather a metaphor used
to describe a parameter that
affects the randomness or
certainty of the predictions
made by the model.
Why do
Hallucinations
Happen?
Temperature
Low Temperature: This setting
makes the model's responses more
predictable, conservative, or "safe".
The model is more likely to choose
words or phrases that are
commonly associated with the input
prompt, leading to less variety in the
responses but often higher reliability
and coherence.
Why do
Hallucinations
Happen?
Temperature
High Temperature: At a higher
temperature setting, the model's
responses are more varied and
creative. It might generate more
unusual or unexpected responses.
This can make the dialogue more
interesting but also increases the
risk of producing irrelevant or
nonsensical results.
The ____ chased after the car?
Exercise 2 : What else can chase a car?
The dog chased after the car?
The lion chased after the car?
Why do
Hallucinations
Happen?
Context
● Temporal Context
● Factual Context
Exercise 3 : Can Lions speak English?
Who is Michael Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Exercise 4
Who is Michael
Jordan?
Knowledge Bases
Knowledge
Bases
Types of Knowledge Bases
Internal
External

More Related Content

Similar to Mattingly "AI & Prompt Design: The Basics of Prompt Design"

October 30 -- 26. vp 9, newspaper presentations, vocabulary review game
October 30 -- 26. vp 9, newspaper presentations, vocabulary review gameOctober 30 -- 26. vp 9, newspaper presentations, vocabulary review game
October 30 -- 26. vp 9, newspaper presentations, vocabulary review game
IECP
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
iarthur
 
Cruelty To Animals Essay
Cruelty To Animals EssayCruelty To Animals Essay
Cruelty To Animals Essay
Mary Johnson
 
Essays On Memory.pdf
Essays On Memory.pdfEssays On Memory.pdf
Essays On Memory.pdf
Jennifer Smith
 
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docxter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
todd191
 
Cause and-effect paragraph
Cause and-effect paragraphCause and-effect paragraph
Cause and-effect paragraph
英棠 徐
 

Similar to Mattingly "AI & Prompt Design: The Basics of Prompt Design" (20)

My Favourite Teacher Essay. Essay on my favourite teacher. Essay on My Favou...
My Favourite Teacher Essay.  Essay on my favourite teacher. Essay on My Favou...My Favourite Teacher Essay.  Essay on my favourite teacher. Essay on My Favou...
My Favourite Teacher Essay. Essay on my favourite teacher. Essay on My Favou...
 
Sense-making
Sense-makingSense-making
Sense-making
 
Handout for "Getting the message across" a presentation by Thomas Zangerle/Wo...
Handout for "Getting the message across" a presentation by Thomas Zangerle/Wo...Handout for "Getting the message across" a presentation by Thomas Zangerle/Wo...
Handout for "Getting the message across" a presentation by Thomas Zangerle/Wo...
 
Advanced Essay Writing In English - IELTS Writing - H
Advanced Essay Writing In English - IELTS Writing - HAdvanced Essay Writing In English - IELTS Writing - H
Advanced Essay Writing In English - IELTS Writing - H
 
October 30 -- 26. vp 9, newspaper presentations, vocabulary review game
October 30 -- 26. vp 9, newspaper presentations, vocabulary review gameOctober 30 -- 26. vp 9, newspaper presentations, vocabulary review game
October 30 -- 26. vp 9, newspaper presentations, vocabulary review game
 
Handout for "Proven Presentation Techniques", an InfoComm approved workshop b...
Handout for "Proven Presentation Techniques", an InfoComm approved workshop b...Handout for "Proven Presentation Techniques", an InfoComm approved workshop b...
Handout for "Proven Presentation Techniques", an InfoComm approved workshop b...
 
The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Cruelty To Animals Essay
Cruelty To Animals EssayCruelty To Animals Essay
Cruelty To Animals Essay
 
Persuasion 000
Persuasion 000Persuasion 000
Persuasion 000
 
Essays On Memory.pdf
Essays On Memory.pdfEssays On Memory.pdf
Essays On Memory.pdf
 
Machine Learning and Languge
Machine Learning and LangugeMachine Learning and Languge
Machine Learning and Languge
 
[David m. kreps]_game_theory_and_economic_modellin(b-ok.org)
[David m. kreps]_game_theory_and_economic_modellin(b-ok.org)[David m. kreps]_game_theory_and_economic_modellin(b-ok.org)
[David m. kreps]_game_theory_and_economic_modellin(b-ok.org)
 
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docxter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
ter 5Making Judgments©2012 NBCUniversal Media, LLCNBCU Phot.docx
 
Poster IHI 2012
Poster IHI 2012Poster IHI 2012
Poster IHI 2012
 
Twitter Users Guide 2010 Upload
Twitter   Users Guide 2010   UploadTwitter   Users Guide 2010   Upload
Twitter Users Guide 2010 Upload
 
Python Machine Learning January 2018 - Ho Chi Minh City
Python Machine Learning January 2018 - Ho Chi Minh CityPython Machine Learning January 2018 - Ho Chi Minh City
Python Machine Learning January 2018 - Ho Chi Minh City
 
The Role of Artificial intelligent in Health Care
The Role of Artificial intelligent  in Health CareThe Role of Artificial intelligent  in Health Care
The Role of Artificial intelligent in Health Care
 
Textbook ALONG THESE LINES Writing Paragraphs
Textbook ALONG THESE LINES Writing ParagraphsTextbook ALONG THESE LINES Writing Paragraphs
Textbook ALONG THESE LINES Writing Paragraphs
 
Cause and-effect paragraph
Cause and-effect paragraphCause and-effect paragraph
Cause and-effect paragraph
 

More from National Information Standards Organization (NISO)

More from National Information Standards Organization (NISO) (20)

Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Bazargan "NISO Webinar, Sustainability in Publishing"
Bazargan "NISO Webinar, Sustainability in Publishing"Bazargan "NISO Webinar, Sustainability in Publishing"
Bazargan "NISO Webinar, Sustainability in Publishing"
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Compton "NISO Webinar, Sustainability in Publishing"
Compton "NISO Webinar, Sustainability in Publishing"Compton "NISO Webinar, Sustainability in Publishing"
Compton "NISO Webinar, Sustainability in Publishing"
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Hazen, Morse, and Varnum "Spring 2024 ODI Conformance Statement Workshop for ...
Hazen, Morse, and Varnum "Spring 2024 ODI Conformance Statement Workshop for ...Hazen, Morse, and Varnum "Spring 2024 ODI Conformance Statement Workshop for ...
Hazen, Morse, and Varnum "Spring 2024 ODI Conformance Statement Workshop for ...
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
Mattingly "Text and Data Mining: Building Data Driven Applications"
Mattingly "Text and Data Mining: Building Data Driven Applications"Mattingly "Text and Data Mining: Building Data Driven Applications"
Mattingly "Text and Data Mining: Building Data Driven Applications"
 
Mattingly "Text and Data Mining: Searching Vectors"
Mattingly "Text and Data Mining: Searching Vectors"Mattingly "Text and Data Mining: Searching Vectors"
Mattingly "Text and Data Mining: Searching Vectors"
 
Mattingly "Text Mining Techniques"
Mattingly "Text Mining Techniques"Mattingly "Text Mining Techniques"
Mattingly "Text Mining Techniques"
 
Mattingly "Text Processing for Library Data: Representing Text as Data"
Mattingly "Text Processing for Library Data: Representing Text as Data"Mattingly "Text Processing for Library Data: Representing Text as Data"
Mattingly "Text Processing for Library Data: Representing Text as Data"
 
Carpenter "Designing NISO's New Strategic Plan: 2023-2026"
Carpenter "Designing NISO's New Strategic Plan: 2023-2026"Carpenter "Designing NISO's New Strategic Plan: 2023-2026"
Carpenter "Designing NISO's New Strategic Plan: 2023-2026"
 
Ross and Clark "Strategic Planning"
Ross and Clark "Strategic Planning"Ross and Clark "Strategic Planning"
Ross and Clark "Strategic Planning"
 
Mattingly "Data Mining Techniques: Classification and Clustering"
Mattingly "Data Mining Techniques: Classification and Clustering"Mattingly "Data Mining Techniques: Classification and Clustering"
Mattingly "Data Mining Techniques: Classification and Clustering"
 
Straza "Global collaboration towards equitable and open science: UNESCO Recom...
Straza "Global collaboration towards equitable and open science: UNESCO Recom...Straza "Global collaboration towards equitable and open science: UNESCO Recom...
Straza "Global collaboration towards equitable and open science: UNESCO Recom...
 
Lippincott "Beyond access: Accelerating discovery and increasing trust throug...
Lippincott "Beyond access: Accelerating discovery and increasing trust throug...Lippincott "Beyond access: Accelerating discovery and increasing trust throug...
Lippincott "Beyond access: Accelerating discovery and increasing trust throug...
 
Kriegsman "Integrating Open and Equitable Research into Open Science"
Kriegsman "Integrating Open and Equitable Research into Open Science"Kriegsman "Integrating Open and Equitable Research into Open Science"
Kriegsman "Integrating Open and Equitable Research into Open Science"
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 

Recently uploaded (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 

Mattingly "AI & Prompt Design: The Basics of Prompt Design"