Claude's thinking capabilities

Introduction to Claude Models

Nikhil Rangarajan

Data Scientist

What is Claude's thinking mode?

  • Activated through thinking parameter
  • Advanced reasoning for complex problems
  • Step-by-step logical processing
  • Reflection and decision-making
  • Transparent thought process

Representation of a brain

Introduction to Claude Models

When to use thinking capabilities

$$

  • Multi-step problem solving
  • Analysis requiring reasoning chains
  • Decision-making with trade-offs
  • Complex logic puzzles

A puzzle

Introduction to Claude Models

Types of thinking tasks

  • Analytical:
    • Breaking down complex information
  • Strategic:
    • Planning and decision-making
  • Creative:
    • Exploring possibilities and solutions
  • Logical:
    • Following reasoning chains

Icon of a person with a magnifying glass representing a complex task.jpg

Introduction to Claude Models

Example: strategic planning

user_prompt = "Think through this business decision:
Should we launch our new product in Q1 or Q2?"
response = client.messages.create(
    model="claude-2",
    messages=[{"role": "user", 
               "content": user_prompt}],
    thinking={"type": "enabled", 
              "budget_tokens": 1024},
    max_tokens=1300)
  • Structured decision-making request
  • thinking parameter enables step-by-step reasoning
  • budget_tokens minimum 1024, max_tokens must exceed budget
Introduction to Claude Models

Example: strategic planning

"""
Based on the above analysis, I recommend 
a phased global expansion strategy. 
Start by launching in one or two 
high-potential markets first (perhaps 
as pilot programs in Q1). Learn and 
adapt from those initial launches, then 
gradually expand to additional regions 
over the year once strategies are 
refined. This approach balances rapid 
growth with risk management, allowing 
adjustments for cultural fit and ...
"""
  • Two-part response:

    • Thinking block
    • Final answer
  • Final answer is grounded in the internal thinking logic

Introduction to Claude Models

Let's practice!

Introduction to Claude Models

Preparing Video For Download...