การวิเคราะห์เอกสารทางธุรกิจ
ในฐานะนักวิเคราะห์ด้านความสัมพันธ์กับนักลงทุนของ Polaris Investments คุณต้องสรุปรายงาน Q3 ล่าสุดให้ผู้บริหารก่อนการประชุมคณะกรรมการในวันพรุ่งนี้ ส่งเอกสารให้ Claude แล้วขอสรุปในรูปแบบที่พร้อมนำเสนอต่อผู้บริหาร — Claude จะสร้างเนื้อหาสรุปให้ภายในไม่กี่นาที!
ไลบรารี anthropic, client และ quarterly_report ถูกโหลดไว้ให้แล้ว
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Claude Models เบื้องต้น
คำแนะนำการฝึกหัด
- สร้าง prompt สำหรับวิเคราะห์เอกสาร และขอจุดเด่นด้านผลการดำเนินงาน 3 ข้อ
- ตั้งค่า
max_tokensระหว่าง 200 - 300 เพื่อการวิเคราะห์ที่ครอบคลุม - ส่ง analysis prompt ใน 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)