-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
82 lines (61 loc) · 2.87 KB
/
.env.example
File metadata and controls
82 lines (61 loc) · 2.87 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
# LangGraph + Redis Workshop - Environment Configuration
# Copy this file to .env and fill in your actual values
# DO NOT commit .env to version control!
# =============================================================================
# LLM PROVIDER - Choose ONE (or configure both for flexibility)
# =============================================================================
# Option 1: Anthropic Claude (Recommended)
# Get your API key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-your-api-key-here
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
# Option 2: OpenAI GPT
# Get your API key from: https://platform.openai.com/
# OPENAI_API_KEY=sk-your-api-key-here
# OPENAI_MODEL=gpt-4
# Default provider for workshop (change to "openai" if preferred)
DEFAULT_LLM_PROVIDER=anthropic
# =============================================================================
# REDIS CACHE - Required for Exercises 2 & 3
# =============================================================================
# Local Redis via Docker (Recommended)
# Start Redis: docker-compose up -d
REDIS_URL=redis://localhost:6379
# Alternative: Redis with password
# REDIS_URL=redis://:your-password@localhost:6379
# Cloud Redis (Optional - for production)
# REDIS_URL=redis://your-cloud-host:6379
# REDIS_PASSWORD=your-password
# Cache configuration
CACHE_TTL=3600 # Time-to-live in seconds (1 hour)
CACHE_SIMILARITY_THRESHOLD=0.95 # Semantic similarity threshold (0-1)
# =============================================================================
# MEMORY & STORAGE (Optional - for production deployments)
# =============================================================================
# PostgreSQL for persistent checkpointing (optional)
# DATABASE_URL=postgresql://user:password@localhost:5432/langgraph_workshop
# SQLite for local checkpointing (optional)
# SQLITE_DB_PATH=./data/checkpoints.db
# =============================================================================
# MONITORING & OBSERVABILITY (Optional)
# =============================================================================
# LangSmith for tracing and monitoring
# Get API key from: https://smith.langchain.com/
# LANGCHAIN_TRACING_V2=true
# LANGCHAIN_API_KEY=your-langsmith-key
# LANGCHAIN_PROJECT=langgraph-redis-workshop
# =============================================================================
# WORKSHOP CONFIGURATION
# =============================================================================
# Enable verbose logging for debugging
VERBOSE=false
# Cost tracking
ENABLE_COST_TRACKING=true
# Maximum tokens per request (safety limit)
MAX_TOKENS=4096
# =============================================================================
# DEVELOPMENT SETTINGS
# =============================================================================
# Environment (development, production)
ENVIRONMENT=development
# Debug mode
DEBUG=false