Difference between revisions of "Being-Creative-with-AI/C2/Prompting-Using-Persona-and-Examples/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
  
 
{|border=1
 
{|border=1
Line 10: Line 11:
 
|-
 
|-
  
|| Slide 1
+
|| '''Slide 1'''
 +
 
 
Title slide
 
Title slide
  
Line 17: Line 19:
 
|-
 
|-
  
|| Slide 2
+
|| '''Slide 2'''
 +
 
 
Learning Objectives Slide
 
Learning Objectives Slide
  
 
| In this tutorial, you will learn to:
 
| In this tutorial, you will learn to:
  
Use Persona Prompting.
+
Use '''Persona Prompting'''.
  
Apply Zero-Shot Prompting, One-Shot Prompting, and Few-Shot Prompting.
+
Apply '''Zero-Shot Prompting''', '''One-Shot Prompting''', and '''Few-Shot Prompting'''.
  
Compare the results of different prompt types.
+
Compare the results of different '''prompt''' types.
  
 
|-
 
|-
Line 36: Line 39:
 
|-
 
|-
  
|| Slide 3
+
|| '''Slide 3'''
 +
 
 
System Requirements Slide
 
System Requirements Slide
  
 
| Here I will be using:
 
| Here I will be using:
  
A browser on a computer or mobile device;
+
A browser on a '''computer''' or '''mobile''' device;
  
An AI tool such as ChatGPT, Gemini.
+
An '''AI''' tool such as '''ChatGPT''', '''Gemini'''.
  
To follow this tutorial, you must be connected to the internet.
+
To follow this tutorial, you must be connected to the '''internet'''.
  
No coding knowledge is needed.
+
No '''coding''' knowledge is needed.
  
 
|-
 
|-
  
|| Slide 4
+
|| '''Slide 4'''
 +
 
 
Pre-requisite Slide
 
Pre-requisite Slide
 +
 
Person sitting at laptop, light bulb animation
 
Person sitting at laptop, light bulb animation
  
| You should be familiar with the 3 Cs of Prompting.
+
| You should be familiar with the 3 '''Cs''' of '''Prompting'''.
  
Clarity, Context, and Constraints.
+
'''Clarity''', '''Context''', and '''Constraints'''.
  
 
Pause whenever needed and practice each step with me.
 
Pause whenever needed and practice each step with me.
Line 63: Line 69:
 
|-
 
|-
  
|| Slide 5
+
|| '''Slide 5'''
Pre-requisite
+
 
http://EduPyramids.org
+
'''Pre-requisite'''
 +
 
 +
For the Pre-requisites of this tutorial, visit the website shown on your screen
 +
 
 +
'''http://EduPyramids.org'''
  
 
| For the Pre-requisites of this tutorial, visit the website shown on your screen.
 
| For the Pre-requisites of this tutorial, visit the website shown on your screen.
Line 71: Line 81:
 
|-
 
|-
  
|| Slide 6
+
|| '''Slide 6'''
Code Files
+
 
 +
'''Code Files'''
 +
 
 +
The following '''code file''' is required to practice this tutorial.
  
| The following code file is required to practice this tutorial:
+
'''Prompting-Using-Persona-and-Examples.txt'''
Prompting-Using-Persona-and-Examples.txt
+
  
This file is provided in the Code Files link of this tutorial page.
+
This file is provided in the '''Code Files''' link of this tutorial page.
 +
 
 +
Please download and extract the file.
 +
 
 +
| The following '''code file''' is required to practice this tutorial.
 +
 
 +
This file is provided in the '''Code Files''' link of this tutorial page.
  
 
Please download and extract the file.
 
Please download and extract the file.
Line 85: Line 103:
 
|| Graphic: Thinking human being
 
|| Graphic: Thinking human being
  
| You may have noticed that AI answers are sometimes vague.
+
| You may have noticed that '''AI''' answers are sometimes vague.
  
This happens when the AI is unsure how it should respond.
+
This happens when the '''AI''' is unsure how it should respond.
  
We can fix this by guiding the AI to think and speak like an expert.
+
We can fix this by guiding the '''AI''' to think and speak like an expert.
  
 
|-
 
|-
Line 95: Line 113:
 
|| Section heading animation: Persona Prompting
 
|| Section heading animation: Persona Prompting
  
| To understand how, let us begin with Persona Prompting.
+
| To understand how, let us begin with '''Persona Prompting'''.
  
 
|-
 
|-
Line 101: Line 119:
 
|| Screen showing a blank prompt box
 
|| Screen showing a blank prompt box
  
| Persona Prompting means telling the AI who to be while answering a query.
+
| '''Persona Prompting''' means telling the '''AI''' who to be while answering a query.
  
This helps the AI reply in a certain style or from a specific point of view.
+
This helps the '''AI''' reply in a certain style or from a specific point of view.
  
 
For example, it can speak like a teacher, a doctor or a chef.
 
For example, it can speak like a teacher, a doctor or a chef.
Line 109: Line 127:
 
It can also respond like a designer or a travel agent.
 
It can also respond like a designer or a travel agent.
  
By giving a persona, you help the AI to focus its thinking.
+
By giving a persona, you help the '''AI''' to focus its thinking.
  
 
|-
 
|-
Line 117: Line 135:
 
| Let's understand this with an example.
 
| Let's understand this with an example.
  
Open any browser.
+
Open any '''browser'''.
  
I am using the Firefox browser here.
+
I am using the '''Firefox browser''' here.
  
Next, open any AI tool.
+
Next, open any '''AI tool'''.
  
I am using ChatGPT here.
+
I am using '''ChatGPT''' here.
  
 
Type the following prompt.
 
Type the following prompt.
  
"Create a lesson plan for teaching the water cycle to 6th graders."
+
'''Create a lesson plan for teaching the water cycle to 6th graders.'''
  
Click the up arrow icon to begin the search.
+
'''Click''' the up arrow icon to begin the search.
  
 
|-
 
|-
Line 135: Line 153:
 
|| Screen showing AI typing a basic plan
 
|| Screen showing AI typing a basic plan
  
| Look at the output.
+
| Look at the '''output'''.
  
 
Observe how it is organised.
 
Observe how it is organised.
Line 143: Line 161:
 
|| Prompt box animation
 
|| Prompt box animation
  
| Now, let me give the AI a persona and rewrite the prompt.
+
| Now, let me give the '''AI''' a persona and rewrite the '''prompt'''.
  
"Act as an expert science teacher.
+
'''Act as an expert science teacher.'''
  
Create a 40-minute lesson plan to teach the water cycle to 6th graders.
+
'''Create a 40-minute lesson plan to teach the water cycle to 6th graders.'''
  
Include learning objectives, activities, and a short quiz."
+
'''Include learning objectives, activities, and a short quiz.'''
  
 
|-
 
|-
Line 157: Line 175:
 
| Compare the two outputs.
 
| Compare the two outputs.
  
When a persona is added, the AI response becomes more focused and useful.
+
When a persona is added, the '''AI''' response becomes more focused and useful.
  
The clear role helps the AI give a better and more organized answer.
+
The clear role helps the '''AI''' give a better and more organized answer.
  
This shows the power of Persona prompting.
+
This shows the power of '''Persona prompting'''.
  
 
|-
 
|-
Line 167: Line 185:
 
|| Section heading animation: Giving Examples
 
|| Section heading animation: Giving Examples
  
| Now, let's learn the second technique, Examples-based prompting.
+
| Now, let's learn the second technique, '''Examples-based prompting'''.
  
It means giving the AI examples to show the kind of answer you want.
+
It means giving the '''AI''' examples to show the kind of answer you want.
  
This technique helps AI understand required patterns and formats.
+
This technique helps '''AI''' understand required patterns and formats.
  
 
It has three types.
 
It has three types.
  
Zero-shot, one-shot, and few-shot prompting.
+
'''Zero-shot''', '''one-shot''', and '''few-shot''' '''prompting'''.
  
 
Let's understand each one with simple examples.
 
Let's understand each one with simple examples.
Line 183: Line 201:
 
|| Whiteboard animation showing "Zero-Shot = No examples"
 
|| Whiteboard animation showing "Zero-Shot = No examples"
  
| Zero-shot prompting means you DON'T give any examples in the prompt.
+
| '''Zero-shot prompting''' means you don't give any examples in the prompt.
  
 
You just ask for what you want.
 
You just ask for what you want.
  
Most prompts we use every day are like this.
+
Most '''prompts''' we use every day are like this.
  
 
|-
 
|-
Line 193: Line 211:
 
|| Prompt box animation
 
|| Prompt box animation
  
| Let's try this prompt.
+
| Let's try this '''prompt'''.
  
"Summarize this content into key points."
+
'''Summarize this content into key points.'''
  
The AI answers directly, without seeing any example.
+
The '''AI''' answers directly, without seeing any example.
  
 
|-
 
|-
Line 203: Line 221:
 
|| Whiteboard animation showing "One-Shot = One example"
 
|| Whiteboard animation showing "One-Shot = One example"
  
| The next type of example-based prompting is One-shot prompting.
+
| The next type of '''example-based prompting''' is '''One-shot prompting'''.
  
Here, you give one example to AI of the type of response you want.
+
Here, you give one example to '''AI''' of the type of response you want.
  
 
|-
 
|-
Line 211: Line 229:
 
|| Prompt box animation
 
|| Prompt box animation
  
| "Turn this sentence into a question like this sentence: 'The sky is blue.' → Output: 'Is the sky blue?'
+
"Turn this sentence into a question like this sentence: 'The sky is blue.' → Output: 'Is the sky blue?'
  
 
Use this format for the following sentence.
 
Use this format for the following sentence.
Line 217: Line 235:
 
Sentence: 'Birds can fly.' → "
 
Sentence: 'Birds can fly.' → "
  
Now, I will enter the prompt shown on the screen in the prompt bar.
+
| Now, I will enter the '''prompt''' shown on the '''screen''' in the '''prompt bar'''.
  
Submit it, and observe the output.
+
'''Submit''' it, and observe the '''output'''.
  
 
|-
 
|-
Line 225: Line 243:
 
|| Screen showing well-structured AI output
 
|| Screen showing well-structured AI output
  
| By giving one example, the AI understands the desired format and follows it.
+
| By giving one example, the '''AI''' understands the desired format and follows it.
  
 
|-
 
|-
Line 231: Line 249:
 
|| Whiteboard animation showing "Few-Shot = A few examples"
 
|| Whiteboard animation showing "Few-Shot = A few examples"
  
| Finally, let's understand Few-shot prompting.
+
| Finally, let's understand '''Few-shot prompting'''.
  
 
It means you give two or more examples with the prompt.
 
It means you give two or more examples with the prompt.
  
These examples show the AI what kind of output you want.
+
These examples show the '''AI''' what kind of output you want.
  
 
|-
 
|-
Line 249: Line 267:
 
Then, give an improved and catchy version.
 
Then, give an improved and catchy version.
  
From these examples, the AI learns the style and format you expect.
+
From these examples, the '''AI''' learns the style and format you expect.
  
 
This works well for creative or complex writing tasks.
 
This works well for creative or complex writing tasks.
Line 257: Line 275:
 
|| Prompt box animation showing multiple examples
 
|| Prompt box animation showing multiple examples
  
| With more examples, the AI understands the pattern you want.
+
| With more examples, the '''AI''' understands about the pattern you want.
 +
 
 
As a result, the answers become more accurate.
 
As a result, the answers become more accurate.
  
Line 264: Line 283:
 
|| Side-by-side outputs (zero, one, few)
 
|| Side-by-side outputs (zero, one, few)
  
| See how the output's quality improves from zero-shot to one-shot to few-shot.
+
| See how the '''output''''s quality improves from '''zero-shot''' to '''one-shot''' to '''few-shot'''.
  
 
|-
 
|-
  
|| Slide: Summary
+
|| Summary Slide
  
| Let us summarise what we learnt:
+
| Let us summarise what we learnt today:
  
Persona prompting means giving the AI a clear role to guide its response.
+
'''Persona prompting''' means giving the '''AI''' a clear role to guide its response.
  
Zero-shot prompting needs no example.
+
'''Zero-shot prompting''' needs no example.
  
One-shot prompting needs one example.
+
'''One-shot prompting''' needs one example.
  
Few-shot prompting needs two or more examples.
+
'''Few-shot prompting''' needs two or more examples.
  
More examples lead to clearer and better AI answers.
+
More examples lead to clearer and better '''AI''' answers.
  
 
|-
 
|-
  
|| Slide: Assignment
+
|| Assignment Slide
  
Open any AI tool you use
+
Open any '''AI''' tool you use.
  
Pick a topic you know well, like food, travel, or your professional activities
+
Pick a topic you know well, like food, travel, or your professional activities.
  
Try a zero-shot prompt by simply asking the question
+
Try a '''zero-shot prompt''' by simply asking the question.
  
Rewrite it using a persona to shape the response
+
Rewrite it using a '''persona''' to shape the response.
  
Give one example to make it a one-shot prompt
+
Give one example to make it a '''one-shot prompt'''.
  
Provide two or more examples to make it a few-shot prompt
+
Provide two or more examples to make it a '''few-shot prompt'''.
  
Notice how the AI's answers change at each step
+
Notice how the '''AI''''s answers change at each step.
 
+
| Here is an assignment for you
+
  
 +
| Here is an assignment for you.
  
 
|-
 
|-
  
|| Acknowledgement Slides
+
|| Acknowledgement slides
 +
 
 +
| Thank you for joining!
  
| Thank you for joining.
 
 
|-
 
|-
  
 
|| Final Slide
 
|| Final Slide
  
This '''Spoken Tutorial''' is brought to you by  
+
This '''Spoken Tutorial''' is brought to you by
  
 
'''EduPyramids Educational Services Private Limited''', '''SINE, IIT Bombay'''.
 
'''EduPyramids Educational Services Private Limited''', '''SINE, IIT Bombay'''.
Thank you for joining!
+
 
|  
+
|
  
 
|-
 
|-
  
 
|}
 
|}

Latest revision as of 11:16, 25 May 2026


Visual Cue Narration
Slide 1

Title slide

Welcome to this Spoken Tutorial on Prompting Using Persona and Examples.
Slide 2

Learning Objectives Slide

In this tutorial, you will learn to:

Use Persona Prompting.

Apply Zero-Shot Prompting, One-Shot Prompting, and Few-Shot Prompting.

Compare the results of different prompt types.

Disclaimer Content Slide As AI tools constantly evolve, if you are unable to locate any icon or encounter difficulty at any step, you may use any conversational AI Chatbot for guidance.
Slide 3

System Requirements Slide

Here I will be using:

A browser on a computer or mobile device;

An AI tool such as ChatGPT, Gemini.

To follow this tutorial, you must be connected to the internet.

No coding knowledge is needed.

Slide 4

Pre-requisite Slide

Person sitting at laptop, light bulb animation

You should be familiar with the 3 Cs of Prompting.

Clarity, Context, and Constraints.

Pause whenever needed and practice each step with me.

Slide 5

Pre-requisite

For the Pre-requisites of this tutorial, visit the website shown on your screen

http://EduPyramids.org

For the Pre-requisites of this tutorial, visit the website shown on your screen.
Slide 6

Code Files

The following code file is required to practice this tutorial.

Prompting-Using-Persona-and-Examples.txt

This file is provided in the Code Files link of this tutorial page.

Please download and extract the file.

The following code file is required to practice this tutorial.

This file is provided in the Code Files link of this tutorial page.

Please download and extract the file.

Graphic: Thinking human being You may have noticed that AI answers are sometimes vague.

This happens when the AI is unsure how it should respond.

We can fix this by guiding the AI to think and speak like an expert.

Section heading animation: Persona Prompting To understand how, let us begin with Persona Prompting.
Screen showing a blank prompt box Persona Prompting means telling the AI who to be while answering a query.

This helps the AI reply in a certain style or from a specific point of view.

For example, it can speak like a teacher, a doctor or a chef.

It can also respond like a designer or a travel agent.

By giving a persona, you help the AI to focus its thinking.

Section heading animation: Science teacher persona Let's understand this with an example.

Open any browser.

I am using the Firefox browser here.

Next, open any AI tool.

I am using ChatGPT here.

Type the following prompt.

Create a lesson plan for teaching the water cycle to 6th graders.

Click the up arrow icon to begin the search.

Screen showing AI typing a basic plan Look at the output.

Observe how it is organised.

Prompt box animation Now, let me give the AI a persona and rewrite the prompt.

Act as an expert science teacher.

Create a 40-minute lesson plan to teach the water cycle to 6th graders.

Include learning objectives, activities, and a short quiz.

Screen showing structured lesson plan output. Side-by-side output (generic vs detailed lesson plan) Compare the two outputs.

When a persona is added, the AI response becomes more focused and useful.

The clear role helps the AI give a better and more organized answer.

This shows the power of Persona prompting.

Section heading animation: Giving Examples Now, let's learn the second technique, Examples-based prompting.

It means giving the AI examples to show the kind of answer you want.

This technique helps AI understand required patterns and formats.

It has three types.

Zero-shot, one-shot, and few-shot prompting.

Let's understand each one with simple examples.

Whiteboard animation showing "Zero-Shot = No examples" Zero-shot prompting means you don't give any examples in the prompt.

You just ask for what you want.

Most prompts we use every day are like this.

Prompt box animation Let's try this prompt.

Summarize this content into key points.

The AI answers directly, without seeing any example.

Whiteboard animation showing "One-Shot = One example" The next type of example-based prompting is One-shot prompting.

Here, you give one example to AI of the type of response you want.

Prompt box animation

"Turn this sentence into a question like this sentence: 'The sky is blue.' → Output: 'Is the sky blue?'

Use this format for the following sentence.

Sentence: 'Birds can fly.' → "

Now, I will enter the prompt shown on the screen in the prompt bar.

Submit it, and observe the output.

Screen showing well-structured AI output By giving one example, the AI understands the desired format and follows it.
Whiteboard animation showing "Few-Shot = A few examples" Finally, let's understand Few-shot prompting.

It means you give two or more examples with the prompt.

These examples show the AI what kind of output you want.

Whiteboard animation showing "Few-Shot = A few examples" Suppose your task is to write short product descriptions.

You want them to sound catchy and engaging.

First, give a simple or boring description.

Then, give an improved and catchy version.

From these examples, the AI learns the style and format you expect.

This works well for creative or complex writing tasks.

Prompt box animation showing multiple examples With more examples, the AI understands about the pattern you want.

As a result, the answers become more accurate.

Side-by-side outputs (zero, one, few) See how the output's quality improves from zero-shot to one-shot to few-shot.
Summary Slide Let us summarise what we learnt today:

Persona prompting means giving the AI a clear role to guide its response.

Zero-shot prompting needs no example.

One-shot prompting needs one example.

Few-shot prompting needs two or more examples.

More examples lead to clearer and better AI answers.

Assignment Slide

Open any AI tool you use.

Pick a topic you know well, like food, travel, or your professional activities.

Try a zero-shot prompt by simply asking the question.

Rewrite it using a persona to shape the response.

Give one example to make it a one-shot prompt.

Provide two or more examples to make it a few-shot prompt.

Notice how the AI's answers change at each step.

Here is an assignment for you.
Acknowledgement slides Thank you for joining!
Final Slide

This Spoken Tutorial is brought to you by

EduPyramids Educational Services Private Limited, SINE, IIT Bombay.

Contributors and Content Editors

Bellatony911, Madhurig, Misbah, Sakinashaikh