From the course: Claude with Amazon Bedrock by Anthropic

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Being specific

Being specific

The next topic we're going to discuss in the world of prompt engineering is the idea of being specific. To be specific, we want our prompts to list out some sort of guidelines or steps to somehow direct our model in a particular direction. For example, consider the prompt I have on the left-hand side of the screen. In this prompt, I'm asking Claude to write out a short story about a character who discovers a hidden talent. If I just put that prompt by itself into Claude, Claude can go any of an infinite number of directions. It can decide to vary the story length significantly. It can decide to add in extra elements or remove elements from the story. It might have just one character. It might introduce five different characters. If I want to ensure that I'm going to get a particular kind of output, I might decide to put in a list of guidelines, as you see on the right-hand side. These guidelines will provide some high-level guidance or kind of direct claud in a specific way when it…

Contents