ビジネス文書の分析
あなたは、Polaris Investments の投資家向け広報アナリストです。明日の取締役会に備え、最新の第 3 四半期報告書の内容を経営陣に説明しなくてはなりません。文書を Claude に渡して、役員向けサマリーを作成するよう依頼しましょう。数分でブリーフィング資料が完成します!anthropic ライブラリ、client、および quarterly_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)