Practical AI for Instructors and Students Part 3: Prompting AI

Wharton School
2 Aug 202311:41

Summary

TLDRIn this educational video, Professor Ethan Malek and Angelina Malik from the Wharton School introduce viewers to AI, focusing on crafting effective prompts for AI interaction. They emphasize the importance of context, clear instructions, and examples to guide AI in tasks. The video demonstrates step-by-step prompt construction, using tools like GPT4 and Bing, and highlights the iterative process of refining prompts and incorporating human feedback for optimal AI performance in educational settings.

Takeaways

  • πŸ“ **Context Matters**: Telling the AI who it is provides the right context for its responses, making its output more relevant and effective.
  • πŸ“ **Clear Instructions**: Providing clear instructions to the AI is crucial, as it lacks inherent knowledge of the user's context or goals.
  • πŸ“š **Examples and Steps**: Giving the AI examples and step-by-step directions helps it understand the task better and perform more effectively.
  • πŸ”§ **Iterative Process**: Prompting is not a one-time task; it involves experimentation and refinement to achieve the desired outcome.
  • πŸ’¬ **Conversational Approach**: Interacting with the AI as if it were a conversational partner helps in guiding it towards the desired output.
  • πŸ”„ **Prompting is Part of Interaction**: Creating the perfect prompt is less important than the ongoing interaction with the AI.
  • 🎨 **Customization and Constraints**: Adding context, perspective, and constraints to the prompt can guide the AI to produce more tailored content.
  • πŸ” **Utilize AI Tools with Internet Access**: Tools like Bing can leverage internet access to include academic research in their responses, enhancing the quality of information.
  • πŸ€– **Integrate Human Expertise**: Including specific points or knowledge that the user wants to be covered ensures that the AI's output aligns with human expertise.
  • πŸ€” **Step-by-Step Thinking**: Asking the AI to think and outline its response step by step can lead to more structured and coherent content.
  • πŸ”„ **Iterative Revision**: Regularly revising and providing feedback on the AI's output helps in refining the final result, making the process more collaborative.
  • πŸ‘¨β€πŸ« **Act as an Editor and Instructor**: Users should take on the role of an editor and instructor, guiding the AI and shaping its responses to meet their needs.
  • πŸ§™β€β™‚οΈ **Magic is Not Real**: The process of working with AI is more about experience and practice rather than following a magical formula.
  • πŸ”„ **Embrace Randomness**: Recognize that AI systems have built-in randomness, and use this to your advantage by experimenting with different prompts and iterations.

Q & A

  • What is the main focus of the video series presented by Ethan Malek and Angelina Malik?

    -The main focus of the video series is to provide an introduction to AI, particularly its application in education, and how to effectively use it from a foundational level.

  • Why is it important to tell the AI who it is when giving instructions?

    -Telling the AI who it is provides the right context from which to start, as the AI has been trained on billions of documents and needs this context to understand the perspective and environment it is operating in.

  • What is the significance of giving clear instructions to AI?

    -Clear instructions are crucial because AI does not know the user's context or intentions. The more context provided, the more effectively the AI can perform the desired task.

  • Why should examples and steps be given to AI when assigning a specific project?

    -Examples and steps help the AI understand what the user wants and think step by step, leading to a more effective performance in completing the task.

  • What are the two important caveats mentioned about constructing prompts for AI?

    -The two caveats are: 1) Prompting isn't magic and is about experience, with each generation of AI models making it easier. 2) Prompting is just a part of the interaction with AI, which is more important than getting the perfect prompt.

  • How can AI models like GPT-4 and chat GPT be used to improve writing?

    -AI models can be used to generate initial drafts, provide context and perspective, and follow specific instructions or constraints to enhance the quality and style of writing.

  • What is the advantage of using Bing in creative mode over GPT-4 for certain tasks?

    -Bing in creative mode has access to the internet, allowing it to look up academic research or additional information that GPT-4, which is not connected to the internet, cannot access.

  • How can including oneself in the AI model improve the output?

    -By adding specific points or instructions that one wants the AI to include, the output becomes more integrated with human input, leading to a more personalized and targeted result.

  • What is the 'Chain of Thought' thinking and how can it be used with AI?

    -Chain of Thought thinking is a method where the AI is asked to think step by step, outlining and proving its points before writing the final content. This helps the AI stay on task and allows for better output quality.

  • Why is it recommended to interact with AI interactively rather than trying to create the perfect prompt?

    -Interactively working with AI allows for continuous feedback and guidance, which vastly improves the work. It is more effective than a single perfect prompt because it adapts to the evolving needs and preferences of the user.

  • How does the randomness in AI systems affect the user's experience?

    -The randomness built into AI systems means that different prompts can yield different outputs, even from the same system at different times. This can be advantageous as it allows users to select the most suitable response or to refresh and try again for better results.

  • What role does the user play in the process of using AI for writing tasks?

    -The user acts as a guide, editor, and instructor, taking the lead in shaping the AI's output by providing feedback, selecting preferred content, and giving directions for improvement.

Outlines

00:00

πŸ€– Effective Prompting Techniques for AI in Education

This paragraph introduces the topic of the video, which is about teaching AI how to assist effectively in educational settings. The speaker, Ethan Malek, a professor at Wharton, and his colleague Angelina Malik, discuss the importance of context when instructing AI and the necessity of clear, example-driven instructions. They emphasize that AI needs to understand who it is and what is expected of it to perform tasks effectively. The paragraph also introduces the concept of 'prompting' as a skill that improves with experience and experimentation rather than following a rigid formula. It sets the stage for a step-by-step guide on constructing prompts for AI.

05:02

πŸ” Enhancing AI Prompts with Context and Constraints

The second paragraph delves into the specifics of constructing effective prompts for AI, using the example of writing a paragraph about the importance of group work. It illustrates how adding context and perspective can significantly alter the AI's output. The paragraph also discusses the importance of providing examples and steps to guide the AI in a specific direction. The use of advanced techniques such as adding constraints and instructing the AI to think step by step is highlighted, showing how these methods can lead to more sophisticated and tailored outputs. The paragraph concludes with a demonstration of how to refine prompts interactively, emphasizing the iterative nature of working with AI to achieve the desired results.

10:03

πŸ‘¨β€πŸ« Integrating Human Expertise with AI in Content Creation

This paragraph explores the integration of human expertise with AI-generated content, focusing on the collaborative approach to content creation. It discusses the use of AI tools like Bing, which can access the internet to incorporate academic research into its responses. The paragraph demonstrates how to insert specific points known by the user into the AI's output to ensure accuracy and relevance. It also introduces the concept of 'Chain of Thought' prompting, which encourages the AI to outline and revise its work methodically. The importance of human interaction in guiding the AI, refining its output, and avoiding getting stuck in loops is emphasized, highlighting the role of the user as an active participant in the content creation process.

Mindmap

Keywords

πŸ’‘AI

AI, or Artificial Intelligence, refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions. In the context of the video, AI is the central theme, with a focus on how it can be utilized in education. The script discusses various ways to interact with AI, emphasizing the importance of clear instructions and contextual information to guide its responses effectively.

πŸ’‘Interactive pedagogy

Interactive pedagogy is an educational approach that emphasizes the use of technology to facilitate interactive learning experiences. In the video, the concept is mentioned in relation to the study of AI conducted by the speakers, suggesting that AI can be a powerful tool in creating engaging and interactive educational content.

πŸ’‘Prompting

Prompting, in the context of AI, involves giving the AI clear and specific instructions to guide its output. The video script discusses the art of crafting effective prompts to direct the AI in producing desired results. It highlights the iterative process of refining prompts and the importance of examples and steps in this process.

πŸ’‘Context

Context is crucial when interacting with AI, as it helps the AI understand the situation or scenario it is being asked to address. The script mentions the importance of providing context to the AI, such as identifying oneself or the subject matter, to ensure that the AI's responses are relevant and accurate.

πŸ’‘GPT4

GPT4, or Generative Pre-trained Transformer 4, is a type of AI model discussed in the video. It is part of a series of foundational models that the speakers use to demonstrate how to craft prompts and interact with AI. The script shows how GPT4 can be directed to write a paragraph with specific instructions and style.

πŸ’‘Bing

Bing, in the script, refers to Microsoft's search engine, which has a creative mode that utilizes the same AI model as GPT4 but with an added feature of internet connectivity. The video demonstrates how Bing can be used to look up academic research on a given topic, enhancing the AI's responses with current and relevant information.

πŸ’‘Academic research

Academic research is the systematic investigation and study of a particular subject to establish facts and draw conclusions. In the video, the AI is prompted to look up academic research on group work, showing how AI can be used to incorporate scholarly insights into its responses.

πŸ’‘Centaur

The term 'centaur' is used metaphorically in the video to describe the collaborative relationship between humans and AI, where both contribute to the creation of content. The script illustrates this concept by showing how the AI can be guided to include specific points known by the human user, creating a hybrid of human and AI-generated content.

πŸ’‘Chain of Thought

Chain of Thought is a technique mentioned in the video where the AI is asked to think step by step, outlining and then proving its points before writing the final content. This method helps the AI stay focused on the task and allows for better quality control by the user.

πŸ’‘Randomness

Randomness in AI refers to the variability in the outputs generated by the system, even when given the same prompts. The script notes that AI systems are designed to produce different responses over time, which can be used to the user's advantage by experimenting with prompts and selecting the most suitable output.

Highlights

Introduction to the importance of AI in education and the focus on interactive pedagogy.

The necessity of informing AI about its identity to provide the right context for responses.

Clear instructions are crucial for AI effectiveness due to its lack of inherent understanding of user context.

The value of providing examples and steps to guide AI in specific projects or directions.

The process of constructing a prompt step by step to optimize AI responses.

The importance of recognizing that prompting is not a magical formula but a skill that improves with experience.

The concept of experimenting with AI and asking for its help in task accomplishment.

The role of context and perspective in shaping AI responses, illustrated with the example of writing about group work.

Adding constraints to AI prompts to achieve more tailored and engaging content.

The use of AI's style analysis to inform constraints and improve writing quality.

Incorporating academic research into AI responses using tools with internet access, like Bing.

The integration of human expertise into AI-generated content to ensure accuracy and relevance.

Techniques for prompting AI to think step by step, enhancing the quality of its output.

The interactive nature of working with AI, emphasizing the importance of human guidance and feedback.

The role of the AI user as an editor, selecting and refining content to meet specific needs.

The inherent randomness in AI responses and the strategy of using multiple prompts for diverse outputs.

The art of prompting as a skill developed through practice and experimentation.

Upcoming videos will explore the application of AI in classroom settings for both teachers and students.

Transcripts

play00:02

[Music]

play00:04

hi welcome to video three of our series

play00:06

of videos where we're trying to give you

play00:08

an introduction to Ai and how to use it

play00:10

with a special focus on education from

play00:12

the ground up I'm Ethan Malek a

play00:14

professor at Wharton who has been

play00:16

studying AI

play00:17

and Angelina Malik and I study Ai and

play00:21

interactive pedagogy at the Wharton

play00:22

School of the University of Pennsylvania

play00:24

in this video we're going to talk to you

play00:26

about how to prompt and how to tell the

play00:28

AI exactly what you'd like it to do and

play00:31

how to do so effectively

play00:41

thank you

play00:47

the first thing to remember is that you

play00:50

want to tell the AI who it is the reason

play00:52

you want to do that is because the AI

play00:54

has been trained on billions of

play00:55

documents telling it who it is gives it

play00:58

the right context from which to start

play01:00

once you tell the AI who it is the

play01:03

second thing to do is to give the AI

play01:05

very clear instructions about what you

play01:07

wanted to do you have to remember that

play01:09

the AI doesn't know you and doesn't know

play01:11

any of your contexts so the more context

play01:13

you give it the more effective it can be

play01:16

the third thing to remember is to always

play01:18

give AI examples and steps if you have a

play01:22

specific project you'd like it to take

play01:24

on if you have specific directions that

play01:26

you'd like to give it giving it examples

play01:28

helps it learn what you want and giving

play01:31

it steps helps it think step by step and

play01:34

we'll do a more effective job for you so

play01:36

let's see how this works in practice

play01:39

so I'm going to show you how to

play01:41

construct a prompt sort of Step by Step

play01:43

there are two important caveats that you

play01:45

have to know before we do this first off

play01:47

don't follow this exactly prompting

play01:50

isn't Magic eighty percent of prompting

play01:52

is about experience and prompting is

play01:53

just getting easier with each generation

play01:55

of these models so this is not a magical

play01:57

formula you can actually experiment and

play02:00

the more you use AI the more you'll find

play02:01

out what's good or bad and how to make

play02:03

it do what you'd like and even just ask

play02:05

the AI to help you say I want to

play02:07

accomplish this task what should I ask

play02:08

you it will help you with that so that's

play02:10

the first thing is this isn't magical

play02:12

there is not a technical programming

play02:14

language here this is a conversation

play02:16

with the AI and the second is as you

play02:18

will talk about it a little bit

play02:19

prompting is just a piece of this so

play02:21

getting the right perfect prompt is less

play02:22

important than interacting with the AI

play02:24

which we'll talk to you after we show

play02:25

you how to create a problem so with that

play02:27

said let's talk about how to create a

play02:29

good first prompt so let's work out a

play02:32

prompt together and see how we can make

play02:33

it better we're going to start with

play02:34

something basic and build it out for

play02:36

this particular use case we're going to

play02:37

use gpt4 and chat GPT which as we

play02:40

discussed last time is one of a series

play02:43

of foundational models you're going to

play02:44

use so you could also do this in

play02:46

Microsoft Bing which in its creative

play02:48

mode uses chat GPT for the same model or

play02:51

you can use it Google's Bard which works

play02:53

a little bit differently but we're going

play02:54

to just use gpt4 for this again

play02:56

prompting Works fairly similarly across

play02:58

different AI models so let's start with

play03:01

an example let's say we wanted to write

play03:03

me a paragraph

play03:06

about

play03:08

why group work

play03:10

is important

play03:15

and so gpd4 is a very powerful model

play03:17

it's a little bit slow it will produce

play03:19

the results here that we need here about

play03:21

this so that is a good prompt and it's

play03:24

coming up with a perfectly fine essay

play03:27

but you'll notice it doesn't know what

play03:28

context to use what perspective to write

play03:31

this from

play03:32

so the first thing we can start to do is

play03:34

we can add context and perspective so we

play03:37

can say

play03:38

act like

play03:40

an experienced teacher

play03:43

write a paragraph about why group work

play03:45

is important and you'll notice that the

play03:47

entire context of the conversation

play03:49

changes because now it's like a pedagogy

play03:51

and it's talking about from a teacher's

play03:53

perspective we haven't made it into a

play03:55

teacher and it's not magic but we've

play03:57

given it context to work in and a

play03:59

perspective to take and you'll see it

play04:00

uses that perspective throughout now we

play04:03

can make this even more advanced by

play04:05

adding in constraints by telling it

play04:07

exactly what we want to see so we can

play04:09

say that act like experienced teacher

play04:13

write a paragraph about why group Works

play04:14

important make their writing engaging

play04:18

but smart to pick a style and by the way

play04:21

if you don't know what style to use you

play04:23

can paste in your favorite text into any

play04:25

of these AIS and ask it to describe that

play04:27

text to you and then use that

play04:28

description when you're giving a

play04:30

constraints we might also want to say

play04:32

make sure there is

play04:35

an example and again you can see I'm

play04:37

just using normal human text to do this

play04:40

there's nothing magical here and say now

play04:42

it's being a little bit too engaging and

play04:44

fun right same group work my deal

play04:46

Scholars is a vital Cornerstone of

play04:48

education so maybe you think that's too

play04:49

flowery we're learning as we go with

play04:51

this prompt we'll talk more about how

play04:52

you revise it as you go along but you

play04:54

can see we get a better more constrained

play04:56

more interesting piece of writing as a

play04:58

result of this

play04:59

so now we can do something a little bit

play05:02

different

play05:03

for this example we're going to switch

play05:04

over to a tool that has access to the

play05:06

internet which is Bing Bing is using in

play05:09

creative mode purple mode the exact same

play05:11

model as chat gpt's gpt4 but it has an

play05:15

internet connection so here we're going

play05:17

to paste in the exact same thing that we

play05:19

had before

play05:20

and we're going to add a additional

play05:22

qualifier we're going to say

play05:25

look up the academic research on group

play05:27

work

play05:28

now this would not work in GPT it's not

play05:32

connect to the internet but it works

play05:33

here

play05:34

well in bing so let's try this with look

play05:37

up the academic research work and what

play05:39

you'll see is Bing is now going to

play05:42

actually do that for us here so it's now

play05:45

looking up doing actual web search to

play05:46

find the answer and we're going to get a

play05:49

better result you'll also notice that

play05:51

Bing will provide sources as a result

play05:52

these sources are not always 100 correct

play05:55

you'll want to again check the work to

play05:57

make sure there's no hallucinations but

play05:58

I think you can see how we get better

play06:00

results now here that are both including

play06:02

the example including the context but

play06:04

now including actual academic research

play06:06

we can go one step further with this by

play06:09

adding ourselves into this model we

play06:11

wanted to make particular points we're

play06:13

smart we're experts we don't want the AI

play06:15

to be the expert so we can tell it make

play06:17

the following points

play06:20

[Music]

play06:22

so now to make the AI Not Just Produce

play06:25

random work we want to actually insert

play06:27

what we know into the prompt and we give

play06:30

it instructions that are more explicit

play06:31

so in this case we wanted to make the

play06:32

following points that group work allows

play06:34

students to support each other but group

play06:35

work also needs to be carefully designed

play06:38

so up till now there's been none of us

play06:40

in the AI which is of course kind of

play06:42

boring because you'd like to make sure

play06:44

that as humans we're in the loop that we

play06:46

are making playing a role in the

play06:47

creation of this content so it's really

play06:49

important to add that in so we're going

play06:50

to add in a couple of points that we

play06:53

know that we want to make sure the AI

play06:54

covers so it doesn't just make up its

play06:56

own information we're going to say that

play06:57

we wanted to include that group work

play06:59

allows students to support each other

play07:00

and the group work needs to be carefully

play07:02

designed and then when we do this prompt

play07:04

the AI will do what it did before which

play07:06

is look up the information like we

play07:08

requested it'll still do the work it did

play07:10

before from the context of a teacher

play07:11

with the same tone but you'll notice now

play07:13

including the points that we wanted to

play07:15

include as opposed to just being AI work

play07:17

now it's starting to be integrated work

play07:18

between human and AI sometimes it's

play07:20

called being a centaur half person half

play07:22

horse and that's what we're seeing here

play07:25

there's one even more advanced technique

play07:27

that we can include which research shows

play07:29

makes the am more effective and this is

play07:32

a little bit trickier but it is asking

play07:34

the AI to think step by step so remember

play07:37

the AI is just trying to guess what the

play07:39

next word is in a series of words and I

play07:41

ask you to think step by step allows it

play07:43

to create content that it can then look

play07:45

at and build from so we could say follow

play07:48

these steps outline the paragraph

play07:52

prove the outline

play07:53

write the paragraph so now we're giving

play07:56

it steps to follow this step-by-step

play07:58

thinking sometimes called Chain of

play08:00

Thought thinking is a useful way to get

play08:02

the AI to stay on task and also for us

play08:05

to check the output as we go along to

play08:07

make sure that it's good so you can see

play08:09

it's outlining the parallel graph it's

play08:10

going to do first it's giving us the

play08:12

sentences it's going to make the points

play08:13

it's going to make the example it's

play08:15

going to include which we all asked for

play08:16

and now it's going to improve the

play08:18

outline so it's going to go back and you

play08:19

can see it's going to actually already

play08:21

revising what it's doing so asking it to

play08:23

look back at its own work often gets

play08:25

much better output as a result and you

play08:27

can see it's actually doing a better

play08:28

transition it's doing better points and

play08:31

it's going to then produce the final

play08:32

content here which is the actual end

play08:36

goal that we wanted and so you can see

play08:38

you have the sophistication level

play08:39

increases the quality level increases

play08:41

and we can check the results to see what

play08:43

goes wrong if anything does

play08:47

so I've just spent a bunch of time

play08:49

showing you how to do a prompt but this

play08:51

is actually not the right way to

play08:52

optimally use the AI you don't want to

play08:55

try and create the world's perfect

play08:56

prompt instead you want to work with it

play08:57

interactively and to work with it

play08:59

interactively you have to push back and

play09:02

this is really where the magic happens

play09:03

for instance you could ask it to expand

play09:06

I like a second Point can you expand on

play09:08

that

play09:11

and you can ask it to edit I don't like

play09:14

the example you used in this paragraph

play09:16

why don't you change the example

play09:19

in addition you can also ask it to

play09:21

include more of your thinking you can

play09:23

add a point about how group work

play09:25

requires you as a teacher to choose

play09:27

whether teams have the same ability

play09:28

level

play09:32

and all of this including your own

play09:34

thinking your own interaction improves

play09:36

the paragraph if you look back at the

play09:39

beginning of the paragraph to the final

play09:41

output you can see that you in the loop

play09:44

guiding the AI you being in charge and

play09:46

giving a direction vastly improves the

play09:48

work

play09:49

[Music]

play09:51

sometimes the AI can get into a loop you

play09:54

may need to clear the memory by hitting

play09:56

for instance in bing on new topic where

play09:58

the broom is and just start again each

play10:01

time you prompt the AI it'll give you a

play10:03

different output and so you have to take

play10:05

the lead thank you

play10:06

so because you have to take the lead

play10:08

that means you have to do many different

play10:09

kinds of tasks that aren't normally part

play10:11

of writing not only are you thinking

play10:12

about whether the writing is good or bad

play10:13

but you're also kind of acting as an

play10:15

editor you're selecting what work you

play10:17

like you're figuring out whether it's

play10:18

hey in the right direction you're even

play10:19

instructing the AI like a teacher which

play10:21

is part of our teachers are often very

play10:22

good at working with AI and prompting it

play10:24

to do things so

play10:26

an important thing to note about all

play10:28

this is the AI will give you different

play10:30

answers every time there's Randomness

play10:31

built into all of these systems and so

play10:33

when you give it one prompt you may get

play10:35

different outputs from different systems

play10:37

at different times or even the same

play10:39

system in different ways it's something

play10:40

you actually take advantage of so you

play10:41

could say something like give me five

play10:43

examples of a particular paragraph and

play10:47

it will give you five different examples

play10:48

and you can pick the one that you like

play10:49

you could tell them doing very different

play10:51

styles and get very different outcomes

play10:52

but sometimes you'll have to hit refresh

play10:54

clear the memory on the system and try

play10:56

again so it's about multiple efforts

play10:58

multiple attempts to try the same prompt

play11:01

multiple experiments with you giving

play11:03

feedback to get a prompt response that

play11:05

you like so prompting becomes more art

play11:07

than science which brings us back to the

play11:09

point of experience this is not magic it

play11:12

is about practicing until you get good

play11:14

at this it's about trying the AI for the

play11:16

tasks that you want to use it for it's

play11:18

about treating it a bit like a human

play11:19

again even though it's not a human and

play11:21

giving it feedback and instructions

play11:24

about what you want to see have happen

play11:26

in the next set of videos we're going to

play11:28

dive into how to use this in a classroom

play11:29

both as a teacher and as a student

play11:32

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
AI EducationInteractive LearningPrompt CraftingWharton SchoolPedagogyAI PromptingEducational AIEthan MalekAngelina MalikAI IntegrationAI in Classroom