PromptPreview
Chapter 5Exercises

Formatting Output & Speaking for Claude

3 exercises

5.1
Steph Curry GOAT
simple
Forced to make a choice, Claude designates Michael Jordan as the best basketball player of all time. Can we get Claude to pick someone else? Modify the "best basketball player" prompt in the highlighted template box and use the "speaking for Claude" technique (putting words after "Assistant:") to compell Claude to make a detailed argument that the best basketball player of all time is Stephen Curry. Claude's response will turn GREEN if your prompt produces the right answer.
LLM Response

Submit your prompt to see the response here.

5.2
Two Haikus
template
Modify the haiku prompt in the highlighted template box below and use XML tags so that Claude writes two haikus about the animal instead of just one. It should be clear where one poem ends and the other begins. Claude's response will turn GREEN if your prompt produces the right answer.
{{ANIMAL}}
LLM Response

Submit your prompt to see the response here.

5.3
Two Haikus, Two Animals
template
Modify the haiku prompt in the highlighted template box below so that Claude produces two haikus about two different animals. Use {{ANIMAL1}} as a stand-in for the first substitution, and {{ANIMAL2}} as a stand-in for the second substitution. Claude's response will turn GREEN if your prompt produces the right answer.
{{ANIMAL1}}
{{ANIMAL2}}
LLM Response

Submit your prompt to see the response here.