Claude の思考能力

Claude モデル入門

Nikhil Rangarajan

Data Scientist

Claudeの思考モードとは?

  • thinkingパラメーターで有効化
  • 複雑な課題向けの高度な推論
  • 段階的な論理処理
  • 振り返りと意思決定
  • 思考過程の可視化

脳のイメージ

Claude モデル入門

思考モードの活用シーン

$$

  • 段階的な問題解決
  • 推論の連鎖を要する分析
  • トレードオフを伴う意思決定
  • 複雑な論理パズル

パズル

Claude モデル入門

思考タスクのタイプ

  • 分析的:
    • 複雑な情報を分けて整理
  • 戦略的:
    • 計画と意思決定
  • 創造的:
    • 可能性と解決策を探る
  • 論理的:
    • 推論の連鎖を辿る

虫眼鏡を持つ人物のアイコン、複雑なタスクを表す.jpg

Claude モデル入門

例: 戦略的計画

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)
  • 構造化された意思決定リクエスト
  • thinking パラメータで段階的推論を有効化
  • budget_tokens は最小 1024、max_tokens はそれ以上
Claude モデル入門

例: 戦略的計画

"""
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 ...
"""
  • 2 つに分けて応答:

    • 思考ブロック
    • 最終回答
  • 最終回答は内部の思考ロジックに基づく

Claude モデル入門

練習しましょう!

Claude モデル入門

Preparing Video For Download...