비즈니스 문서 분석
여러분은 Polaris Investments의 투자자 관계 분석가로서, 내일 이사회 통화 전에 최신 3분기 보고서를 임원진에게 브리핑해야 합니다. 문서를 Claude에 제공하고 임원 보고용 요약을 요청하세요. 그러면 단 몇 분 만에 브리핑 자료를 완성할 수 있습니다!
anthropic 라이브러리, client, quarterly_report는 미리 로드되어 있습니다.
이 연습은 강의의 일부입니다
Claude 모델 입문
연습 안내
- 문서 분석 프롬프트를 작성하고 3가지 주요 성과 하이라이트를 요청하세요.
- 포괄적인 분석을 위해
max_tokens를 200에서 300 사이로 설정하세요. - 분석 프롬프트를 content에 전달하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# 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)