開始使用免費開始

商業文件分析

身為 Polaris Investments 的投資人關係分析師,你必須在明天的董事會電話會議前,向高層簡報最新的第 3 季報告。把文件餵給 Claude,並請它產出適合高層閱讀的重點摘要:幾分鐘內就能生成你的簡報!

anthropic 函式庫、clientquarterly_report 已預先載入。

本練習屬於課程

Claude 模型入門

檢視課程

練習說明

  • 建立文件分析提示詞,並要求提供 3 項關鍵績效亮點。
  • max_tokens 設定在 200 - 300 之間,以獲得完整的分析。
  • 在內容中傳入該分析提示詞。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Create document analysis prompt and ask for 3 key performance highlights
analysis_prompt = f"""
Analyze this quarterly report and provide:
1. ___
2. Two biggest concerns that need immediate attention
3. Actionable recommendations for next quarter

Document: {quarterly_report}
"""

# Set max_tokens between 200 - 300 for a comprehensive analysis and pass the analysis prompt in the content.
response = client.messages.create(model="claude-sonnet-4-6", max_tokens=____, messages=[{"role": "user", "content": ____}])

print("Executive Summary:")
print(response.content[0].text)
編輯並執行程式碼