Behind the prompt: Prompting tips for Claude.ai
Key Takeaways
Prompt engineer Alex shares 5 tips for effective prompting with Claude.ai
Full Transcript
[Music] foreign [Music] engineer at anthropic I help people get the most out of Claude with safety at the top of the moment first got into prompt engineering uh back in last August anthropic released their paper red teaming language models to reduce harms and immediately I read it and it was hooked I was inspired to see that a company was taking a safety first approach to researching language models and I thought it was really interesting how you could see the ways that models would output to different and diverse ranges of prompts you may be familiar with red teaming attacks as prompt exploits or the more Infamous name jailbreaks I decided to start writing jailbreaks after reading the paper and becoming inspired by the opportunities that still existed to Red Team these models jailbreaks are specific prompts that are written to circumvent the filters that have been applied on top of language models prompt engineering is the practice of optimizing your prompt in order to get the best response from the language model at anthropic we like to take an empirical test driven approach to prompt engineering whenever we write a new prompt we run it against a series of benchmarks in order to scientifically measure its performance with Claude we've discovered a set of best practices that'll allow you to get the most out of the model so let's get into it here are my five tips for getting the best performance from Claude first describe your task Claude responds well to clear direct and Specific Instructions let's say you wanted Claude to remove personal identifiable information from a piece of text explaining the quad exactly what that means helps Claude recognize what pieces of text to remove for example email addresses and phone numbers second Mark different parts of your prompt with XML tags XML tags look like this Claude has been fine-tuned to pay special attention to their structure in our example we use XML tags to indicate the beginning and end of text that claw needs to de-identify third give examples the more examples the better including a wide range of examples helps Claude learn how to do the task back to our pii prompt we provide cod with examples of how to de-identify text within XML tags fourth make use of the long context pod can read up to a hundred thousand tokens that's roughly 70 000 words or the length of the entire Great Gatsby and finally the last tip is to let Claude think researchers have discovered that giving language models some time to think through their response before producing their final answer leads to better performance with Claude we like to use thinking tags so that it can jot down its ideas before answering a complex question here in this example you can see Claude starts to reason within thinking tags and then outputs its final answer alright so those are my top tips for getting the most out of Claude and a little bit about me and my own prompting Journey stay up to date on the latest prompting best practices make sure to go check out our developer dog site and if you haven't got access to the Claude API yet you can still practice your prompt engineering right now at claude.ai [Music]
Original Description
Alex, a prompt engineer at Anthropic shares a little about his journey into prompting, and his 5 best tips for using Claude.ai.
https://docs.anthropic.com/
https://claude.ai/
Read the research paper: Red Teaming Language Models to
Reduce Harms — https://www.anthropic.com/index/red-teaming-language-models-to-reduce-harms-methods-scaling-behaviors-and-lessons-learned
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Playlist UUrDwWp7EBBv4NwvScIpBDOA · Anthropic · 5 of 60
1
2
3
4
▶
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Quick tips for Claude: Long context file uploads
Anthropic
Inside our first Anthropic Hackathon, San Francisco
Anthropic
Long inputs, multi-step output with Claude
Anthropic
Coding with Claude
Anthropic
Behind the prompt: Prompting tips for Claude.ai
Anthropic
Robin AI, powered by Claude
Anthropic
Claude 3 Opus as an economic analyst
Anthropic
Claude 3 Sonnet as a language learning partner
Anthropic
Claude 3 Haiku turns thousands of physical documents into structured data
Anthropic
Claude 3 Haiku for instant customer service
Anthropic
Claude 3 Haiku for fast document analysis
Anthropic
Tool use with the Claude 3 model family
Anthropic
Coming soon to the Team plan on Claude.ai
Anthropic
Introducing the Claude iOS app
Anthropic
Claude is now available in Europe
Anthropic
What is interpretability?
Anthropic
What should an AI's personality be?
Anthropic
Scaling interpretability
Anthropic
Claude 3.5 Sonnet for sparking creativity
Anthropic
Claude 3.5 Sonnet for vision
Anthropic
Claude 3.5 Sonnet as a writing partner
Anthropic
Claude 3.5 Sonnet for agentic coding
Anthropic
Shareable Projects in Claude
Anthropic
Evaluate prompts in the Anthropic Console
Anthropic
Shareable Artifacts in Claude
Anthropic
How we built Artifacts with Claude
Anthropic
Wedia advances digital asset management with Claude
Anthropic
AI prompt engineering: A deep dive
Anthropic
AI Prompt Engineering 101: Explained
Anthropic
Ancient Wisdom, Modern AI?
Anthropic
AI's Greatest Challenge: You?
Anthropic
AI Prompts That Drive Growth
Anthropic
Tips For Better Results With AI
Anthropic
AI, policy, and the weird sci-fi future with Anthropic’s Jack Clark
Anthropic
European Parliament expands access to their archives with Claude in Amazon Bedrock
Anthropic
Claude | Computer use for automating operations
Anthropic
Claude | Computer use for orchestrating tasks
Anthropic
Claude | Computer use for coding
Anthropic
Asana supercharges work management with Claude
Anthropic
What do people use AI models for?
Anthropic
Alignment faking in large language models
Anthropic
Building Anthropic | A conversation with our co-founders
Anthropic
How difficult is AI alignment? | Anthropic Research Salon
Anthropic
Tips for building AI agents
Anthropic
Claude 3.7 Sonnet with extended thinking
Anthropic
Introducing Claude Code
Anthropic
Advice For Building AI Agents
Anthropic
The Two Most Useful Applications of AI Agents
Anthropic
Defending against AI jailbreaks
Anthropic
The Most Common Mistake People Make When Building AI Agents
Anthropic
Controlling powerful AI
Anthropic
How Intercom is redefining customer support with Claude
Anthropic
Tracing the thoughts of a large language model
Anthropic
Introducing Claude for Education
Anthropic
Could AI models be conscious?
Anthropic
Lessons on AI agents from Claude Plays Pokemon
Anthropic
The Societal Impacts of AI
Anthropic
What Does AI Mean for the Future of Work?
Anthropic
Understanding AI Agents...Through Pokémon
Anthropic
What Pokémon Teaches Us About Building With AI
Anthropic
More on: Prompt Craft
View skill →
🎓
Tutor Explanation
DeepCamp AI