Business document analysis
As an investor-relations analyst at Polaris Investments, you must brief executives on the latest Q3 report before tomorrow’s board call. Feed the document to Claude and request an executive-ready summary: it will generate your briefing in minutes!
The anthropic library, client and quarterly_report are preloaded.
Diese Übung ist Teil des Kurses
Introduction to Claude Models
Anleitung zur Übung
- Create document analysis prompt and ask for 3 key performance highlights
- Set max_tokensbetween 200 - 300 for a comprehensive analysis.
- Pass the analysis prompt in the content.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# 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-3-7-sonnet-latest", max_tokens=____, messages=[{"role": "user", "content": ____}])
print("Executive Summary:")
print(response.content[0].text)