Skip to main content

Chapter 2: Claude and Anthropic Models

Claude Model Overview​

VariantStrengthContext
Claude 3 OpusMost capable200K
Claude 3 SonnetBalanced200K
Claude 3 HaikuFast, cheap200K

XML Tags (Claude's Specialty)​

Claude excels with XML-structured prompts:

<context>
You are a senior editor reviewing articles.
</context>

<article>
[Article text here]
</article>

<instructions>
1. Identify the main argument
2. List 3 strengths and 3 weaknesses
3. Suggest improvements
</instructions>

<output_format>
- Main Argument:
- Strengths:
- Weaknesses:
- Improvements:
</output_format>

Long Context Handling​

With 200K tokens, Claude excels at:

  • Analyzing entire documents/books
  • Multi-document comparison
  • Maintaining context over long conversations

Constitutional AI​

Claude has built-in safety training (Constitutional AI) that affects responses on sensitive topics.

Key Takeaways​

Summary
  1. Use XML tags for structured prompts
  2. 200K context enables long document analysis
  3. Claude is helpful, harmless, honest by design
  4. Excellent at following complex instructions

← Previous: ChatGPT and GPT-4 | Next: Open Source Models β†’