0:00

Important guidelines that we want it to follow.

0:02

Some reasons that we may do this are, A, preventing hallucinations.

0:06

Um, so we want Claude to, uh, not invent details that it's not finding in this prompt, right? Or not finding in the data.

0:14

If Claude can't tell which form is checked, we don't want Claude to take its best guess or invent the idea that a box might be checked when it's not.

0:22

If the sketch is unintelligible, the person did a really bad job drawing this drawing, and even a human would not be able to figure it out, we want Claude to be able to say that. And so these are some of the things we'll include in this final reminder and kind of wrap-up step for Claude. Uh, remind it to do things like answer only

0:39

if it's very confident. We could even ask it to refer back to what it has seen in the form anytime it's making a factual claim.

0:46

So if it wants to say vehicle B turned right, it should say, "I know this based on the fact that box two is clearly checked," or whatever it might be. We can kind of give Claude some guidelines about that.

0:56

So if we go back to the console, we can see the next version of the prompt, and we're gonna keep, uh, we're gonna keep everything the same here in the system prompt, so we're not changing any of that background context that we gave to Claude about the form,

1:11

about how it's gonna fill everything out. We're not changing anything else about the context and the role. We're just adding this detailed list of tasks, and this is how we want Claude to go about analyzing this.

1:22

And a really key thing that we found here as we were building this demo and when we were working on the customer example, is that the order in which Claude analyzes this information is very important.

1:31

And this is analogous to a way you might think about doing this if you were a human. You would probably not look at the drawing first and try to understand what was going on, right? It's pretty unclear. It's a bunch of boxes and lines.

1:43

We don't really know what that drawing is supposed to mean without any additional context. But if we have the form, and we can read the form first and understand that we're talking about a car accident and that we're seeing some check boxes that indicate what vehicles were doing at certain times, then we

1:57

know a little bit more about how to understand what might be in the drawing.

2:00

And so that's the kind of detail that we're gonna give Claude here, is to say, "Hey, first go look at the form. Look at it very carefully.

2:07

Make sure you can tell what boxes are checked.

2:09

Make sure you're not missing anything here.

2:12

Um, make a list for yourself of what you see in that, and then move on to the sketch." So after you've kind of confidently gotten information out of the form and you can say what's factually true, then you can go on and think about what you can gain from that sketch,

2:28

keeping in mind your understanding of the accident so far.

2:31

So whatever you've learned from the form, you're trying to match that up with the sketch, and that's how you're going to arrive, um, at your final, uh, at your final assessment of the form.

2:42

And we'll run it.

2:48

And here you can see one behavior that this produced for Claude.

2:51

Because I told it to very carefully examine the form, it's showing me its work as it does that. So it's telling me each individual box, is the box checked? Is it not checked?

3:01

And so this is one thing you'll notice as you do prompt engineering.

3:05

In our previous prompts, we were kind of letting Claude decide how much it wanted to tell us about what it saw in the form.

3:11

Here, because I've told it, "Carefully examine each and every box," it's very carefully examining each and every box, and that might not be what we want in the end, so that's something we might change.

3:21

Um, but it's also gonna give me these other things that I asked for in XML tags.

3:25

So a nice analysis of the form, the accident summary so far.

3:29

It's gonna give me a sketch analysis, and it's going to continue to say that vehicle B appears to be clearly at fault.

3:36

In this, in this example, this is a pretty simple example.

3:38

With more complicated drawings, more, uh, less clarity in the forms, this kind of step-by-step thinking for Claude is really impactful in its ability to make a correct assessment here.

3:50

Uh, so I think we'll go back to the slides, and Christian's gonna talk about a last kind of piece that we might add to this, um, to really make it useful for a real-world task.

4:00

Indeed. Thank you so much. So as Hannah mentioned, uh, we sort of set the stage in this prompt to make sure that Claude's really acting on our behalf in the ri-right manner.

4:09

Um, and a key step that we also add towards the end of this prompt, that I'm gonna show you in a second, is a simple sort of guidelines or reminder part as well. So just strengthening and reinforcing exactly what we wanna get out of it.

4:21

And one important piece is actually output formatting.

4:24

You can imagine if you're a data engineer working on this LM application, all this sort of fancy preamble is great, but at the end of the day, you want your piece of information to, to be stored in, let's say, your SQL database,

4:35

wherever you want to store that data, and the rest of it that is necessary for Claude to sort of give its verdict isn't really that necessary for your application. You want the nitty-gritty information for your application.

4:46

So if we transition back to the console, you'll see here that we just added a simple importance guidelines part.

4:53

And again, this is just reinforcing the sort of mechanical behavior that we want out of Claude here.

4:59

Wanna make sure that the summary is clear, concise-

End of transcript · 1,065 words

iPhone app Translate videos on your iPhone Paste a TikTok, Instagram or X link, add subtitles in your language and save the video to Photos.

Made with TranslateMom

TranslateMom transcribes and translates videos from X, TikTok, YouTube and Instagram. Paste a link and you get a page like this one, in your language.

Transcribed with TranslateMom. Paste any video link to get subtitles and a transcript in your language.

© 2026 TranslateMom · AI video translation and subtitles Transcripts Sources Pricing Legal