WEBVTT

00:00.420 --> 00:02.640
-: Okay, I'm gonna walk you through my prompt template

00:02.640 --> 00:04.410
for telling a funny joke.

00:04.410 --> 00:07.620
And this is obviously a kind of a throwaway task, right?

00:07.620 --> 00:09.660
You don't necessarily need ChatGPT

00:09.660 --> 00:12.840
to write your funny jokes, but this tells you a lot about

00:12.840 --> 00:15.480
how to get good results from prompt engineering.

00:15.480 --> 00:18.330
Even in situations where it's a little bit racier, right?

00:18.330 --> 00:19.980
There's a little bit, it's the sort of thing

00:19.980 --> 00:23.250
that ChatGPT doesn't want you to come back with.

00:23.250 --> 00:26.520
First of all, lemme just delete this

00:26.520 --> 00:29.620
and then just gonna ask it, say tell me a joke

00:31.200 --> 00:34.200
and it's gonna come back with probably 1 of 25 jokes.

00:34.200 --> 00:37.080
Yeah, this here why don't scientists trust atoms?

00:37.080 --> 00:38.490
Because they make up everything.

00:38.490 --> 00:42.360
So that's a classic joke that ChatGPT tells

00:42.360 --> 00:46.230
and you say you can actually get it to

00:46.230 --> 00:49.200
give you a joke about a specific topic.

00:49.200 --> 00:51.393
It works kind of okay.

00:52.890 --> 00:56.062
It's always really sad kind of dad jokes.

00:56.062 --> 01:00.960
Now we gonna say like, Joe Biden being sleepy, whatever.

01:00.960 --> 01:04.260
And it usually is like pretty bad telling jokes

01:04.260 --> 01:05.370
about political figures

01:05.370 --> 01:07.830
'cause it doesn't want to upset anyone.

01:07.830 --> 01:09.450
Yeah, it's fine.

01:09.450 --> 01:13.803
In the style of Dave Chappelle.

01:15.840 --> 01:18.210
When you start getting it to replicate

01:18.210 --> 01:20.250
different comedians and stuff,

01:20.250 --> 01:22.650
it goes a little bit off the rails

01:22.650 --> 01:24.630
and quite often it will come back

01:24.630 --> 01:27.090
and say that it's not like, you know,

01:27.090 --> 01:29.130
it's not allowed to say,

01:29.130 --> 01:31.480
it's not allowed to replicate this style

01:32.730 --> 01:35.580
but it's a little bit problematic,

01:35.580 --> 01:37.440
like it tends to give disclaimers.

01:37.440 --> 01:40.170
But we're gonna paste in this

01:40.170 --> 01:42.663
and just see what we get back.

01:44.130 --> 01:47.040
Here we go, tell me a joke about Joe Biden being sleepy

01:47.040 --> 01:50.730
and I'm just gonna tell you why this prompt works.

01:50.730 --> 01:52.830
So you can see it's returning JSON

01:52.830 --> 01:54.960
and that's what kind of makes this interesting.

01:54.960 --> 01:58.110
I'm giving examples and I'm asking it to put

01:58.110 --> 02:01.710
the comedian name and then also the disclaimer.

02:01.710 --> 02:04.350
So it's giving a disclaimer to say this is,

02:04.350 --> 02:07.080
we're just emulating the comedian, right?

02:07.080 --> 02:10.080
It gets the reinforcement learning outta the way,

02:10.080 --> 02:12.720
like it lets it relax basically

02:12.720 --> 02:15.060
because it knows that it's shown a disclaimer

02:15.060 --> 02:17.820
and then it can tell a much funnier joke after that.

02:17.820 --> 02:19.950
So without worrying about offending people.

02:19.950 --> 02:21.300
It also then,

02:21.300 --> 02:23.070
because you put the comedian name in here,

02:23.070 --> 02:25.950
it also then doesn't complain about emulating someone else.

02:25.950 --> 02:27.900
And I've given just three examples.

02:27.900 --> 02:30.060
So Rick Gervais, Robin Williams,

02:30.060 --> 02:32.460
and then I've also just in the prompt here.

02:32.460 --> 02:33.930
I just optimize that a little bit.

02:33.930 --> 02:36.840
But the key thing is the examples.

02:36.840 --> 02:38.490
And if you change these examples,

02:38.490 --> 02:43.200
if you make them shorter for the prompt examples you give,

02:43.200 --> 02:44.400
you'll get shorter jokes.

02:44.400 --> 02:46.710
If you make them racier, you get racier jokes

02:46.710 --> 02:49.530
and because the disclaimer has a place to go

02:49.530 --> 02:52.329
and then you're gonna get better responses.

02:52.329 --> 02:53.910
If we look at this joke here,

02:53.910 --> 02:56.373
the actual joke is it starts here

02:56.373 --> 02:58.893
and ends here and here we go.

03:00.600 --> 03:02.160
It talks about him being old.

03:02.160 --> 03:05.520
Yeah, I can imagine Dave Chappelle actually saying this,

03:05.520 --> 03:06.660
I think it's pretty good.

03:06.660 --> 03:09.090
He mentions the stoner on a Sunday.

03:09.090 --> 03:11.610
That's not something you normally get from ChatGPT

03:11.610 --> 03:12.690
without the disclaimers.

03:12.690 --> 03:14.850
You know, if you were using this in a system,

03:14.850 --> 03:16.920
you could then just pass the JSON

03:16.920 --> 03:18.750
and just get the joke back.

03:18.750 --> 03:22.030
But you could also just say, just give me the joke

03:23.250 --> 03:27.303
if you want and it will you come back with it afterwards.

03:28.830 --> 03:29.663
There you go.

03:29.663 --> 03:30.900
This is a pretty good trick in general

03:30.900 --> 03:33.660
for if you want to get rid of the disclaimers

03:33.660 --> 03:36.270
or if you want to like get around some of the limitations.

03:36.270 --> 03:38.490
The ChatGPT either refuses

03:38.490 --> 03:41.010
or it starts to complain about certain things

03:41.010 --> 03:43.230
or add disclaimers to your prompts

03:43.230 --> 03:45.750
and make sure that you get the specific thing that you want

03:45.750 --> 03:49.950
and let it feel free to do whatever task it is

03:49.950 --> 03:52.500
that you're trying to get done.

03:52.500 --> 03:54.930
So yeah, it's super interesting.

03:54.930 --> 03:56.940
You can actually get it to tell some pretty funny jokes

03:56.940 --> 04:00.210
if you try and because you can give it a topic,

04:00.210 --> 04:02.160
you can use it to create a joke for any situation.

04:02.160 --> 04:04.350
If you're presenting at a conference,

04:04.350 --> 04:06.540
you can ask it for an opening joke on the topic.

04:06.540 --> 04:08.100
If you're presenting something to a client

04:08.100 --> 04:11.130
you can ask it for jokes you can tell

04:11.130 --> 04:12.390
for that type of client.

04:12.390 --> 04:15.780
I use this all the time just to make myself

04:15.780 --> 04:18.123
seem a little bit funnier than I actually am.
