-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
151 lines (112 loc) · 4.28 KB
/
Copy pathenv.example
File metadata and controls
151 lines (112 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# ==================== LLM Provider Settings ====================
# Options: claude, bedrock, azure, sagemaker
LLM_PROVIDER=claude
# ---------- Claude API (Week 1) ----------
# Get API key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=your_claude_api_key_here
CLAUDE_MODEL=claude-sonnet-4-20250514
# ---------- AWS Bedrock (Week 2) ----------
# Setup guide: WEEK2_GUIDE.md
AWS_REGION=us-west-2
AWS_ACCESS_KEY_ID=your_aws_access_key_here
AWS_SECRET_ACCESS_KEY=your_aws_secret_key_here
BEDROCK_MODEL_ID=anthropic.claude-3-sonnet-20240229-v1:0
# ---------- Azure OpenAI (Week 4) ----------
# Not yet implemented
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_KEY=your_azure_key_here
AZURE_OPENAI_DEPLOYMENT=your_deployment_name
AZURE_API_VERSION=2024-02-15-preview
# ---------- SageMaker (Week 4) ----------
# Not yet implemented
SAGEMAKER_ENDPOINT=your_sagemaker_endpoint_name
# ==================== Data Source Settings ====================
# Options: arxiv, newsapi, internal
SOURCE_PROVIDER=arxiv
# ---------- NewsAPI (Week 2) ----------
# Free tier: 100 requests/day
# Get API key from: https://newsapi.org/register
NEWSAPI_KEY=your_newsapi_key_here
# ---------- Internal Database (Week 3) ----------
# Not yet implemented
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
# ==================== Output Settings ====================
# Options: console, notion, email, slack
OUTPUT_PROVIDER=console
# ---------- Notion (Week 1) ----------
# Setup guide: https://developers.notion.com/docs/getting-started
NOTION_API_KEY=your_notion_api_key_here
NOTION_DATABASE_ID=your_database_id_here
# ---------- Email (Week 2) ----------
# Gmail users: Use App Password, not regular password
# Setup guide: WEEK2_GUIDE.md
# Common SMTP servers:
# Gmail: smtp.gmail.com:587
# Outlook: smtp-mail.outlook.com:587
# SendGrid: smtp.sendgrid.net:587
# AWS SES: email-smtp.us-east-1.amazonaws.com:587
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-16-digit-app-password
EMAIL_FROM=your-email@gmail.com
EMAIL_TO=recipient@example.com
# ---------- Slack (Week 2) ----------
# Get webhook URL from: https://api.slack.com/messaging/webhooks
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL
# ==================== General Settings ====================
DEBUG=false
LOG_LEVEL=INFO
# ==================== Quick Configuration Templates ====================
# Template 1: Development Setup (Week 1)
# LLM_PROVIDER=claude
# SOURCE_PROVIDER=arxiv
# OUTPUT_PROVIDER=console
# Template 2: Academic Research (Week 1)
# LLM_PROVIDER=claude
# SOURCE_PROVIDER=arxiv
# OUTPUT_PROVIDER=notion
# Template 3: Investment Analysis (Week 2)
# LLM_PROVIDER=bedrock
# SOURCE_PROVIDER=newsapi
# OUTPUT_PROVIDER=email
# Template 4: Enterprise Production (Week 2)
# LLM_PROVIDER=bedrock
# SOURCE_PROVIDER=newsapi
# OUTPUT_PROVIDER=email
# ==================== Security Notes ====================
# IMPORTANT:
# 1. Never commit this file with real credentials to git
# 2. Add .env to your .gitignore file
# 3. Use different credentials for dev/staging/production
# 4. Rotate credentials regularly
# 5. Use AWS Secrets Manager or similar for production
# For Gmail:
# - Enable 2-factor authentication first
# - Generate App Password (not your regular password)
# - Use the 16-digit App Password in SMTP_PASSWORD
# For AWS Bedrock:
# - Create IAM user with minimal permissions
# - Only grant bedrock:InvokeModel and bedrock:ListFoundationModels
# - Use IAM roles in production (not access keys)
# For NewsAPI:
# - Free tier has 100 requests/day limit
# - Paid tier required for production use
# - Monitor usage at: https://newsapi.org/account
# ==================== Development Tips ====================
# Quick Switch Examples:
# Switch to NewsAPI for testing financial scenario:
# SOURCE_PROVIDER=newsapi
# Switch to Bedrock for enterprise deployment:
# LLM_PROVIDER=bedrock
# Switch to Email for automated reports:
# OUTPUT_PROVIDER=email
# Test combination:
# LLM_PROVIDER=claude
# SOURCE_PROVIDER=newsapi
# OUTPUT_PROVIDER=console
# ==================== Week Progress ====================
# ✅ Week 1: Basic infrastructure
# ✅ Week 2: NewsAPI, Bedrock, Email adapters
# 🔄 Week 3: Scheduling, caching, monitoring
# 📅 Week 4: Azure OpenAI, SageMaker, advanced features