-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
144 lines (116 loc) · 5.95 KB
/
.env.example
File metadata and controls
144 lines (116 loc) · 5.95 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
# =============================================================================
# AI Document Analyst v2.0 - Environment Configuration Example
# =============================================================================
# Copy this file to .env and fill in your actual API keys
# Never commit your actual .env file to version control
# =============================================================================
# OPENROUTER API CONFIGURATION (Primary AI Service)
# =============================================================================
# Get your API key from: https://openrouter.ai/
# OpenRouter provides access to multiple AI models through a single API
OPENROUTER_API_KEY=your_openrouter_api_key_here
# Optional: Set your app name for OpenRouter usage tracking
OPENROUTER_APP_NAME="AI Document Analyst v2.0"
# Optional: Set your website URL for OpenRouter
OPENROUTER_APP_URL="https://github.com/ARCH_USERS/Dataa_Analyst_Agent"
# =============================================================================
# MODEL CONFIGURATION
# =============================================================================
# Default model for document analysis (OpenRouter format)
# Popular options:
# - meta-llama/llama-3.1-8b-instruct:free (Free tier)
# - anthropic/claude-3-haiku (Fast and efficient)
# - openai/gpt-4o-mini (Cost-effective)
# - meta-llama/llama-3.1-70b-instruct (More capable)
DEFAULT_MODEL=meta-llama/llama-3.1-8b-instruct:free
# Backup model (in case primary model is unavailable)
BACKUP_MODEL=openai/gpt-4o-mini
# =============================================================================
# ADDITIONAL AI SERVICES (Optional)
# =============================================================================
# OpenAI API Key (if you want to use OpenAI models directly)
# Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here
# Anthropic API Key (if you want to use Claude models directly)
# Get from: https://console.anthropic.com/
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# Google Gemini API Key (if you want to use Gemini models)
# Get from: https://makersuite.google.com/app/apikey
GOOGLE_API_KEY=your_google_api_key_here
# =============================================================================
# DOCUMENT PROCESSING SERVICES (Optional)
# =============================================================================
# OCR and Document Processing APIs
# Tesseract OCR is used by default (no API key needed)
# Azure Cognitive Services (for advanced OCR)
AZURE_COGNITIVE_SERVICES_KEY=your_azure_cognitive_services_key_here
AZURE_COGNITIVE_SERVICES_ENDPOINT=your_azure_endpoint_here
# Google Cloud Vision API (for advanced OCR)
GOOGLE_CLOUD_PROJECT_ID=your_google_cloud_project_id_here
GOOGLE_APPLICATION_CREDENTIALS=path_to_your_service_account_json_file
# =============================================================================
# LEGAL DOCUMENT SERVICES (Optional)
# =============================================================================
# Legal research APIs for enhanced legal document analysis
# Westlaw API (for legal research)
WESTLAW_API_KEY=your_westlaw_api_key_here
# Lexis Nexis API (for legal research)
LEXISNEXIS_API_KEY=your_lexisnexis_api_key_here
# =============================================================================
# SECURITY AND PRIVACY SETTINGS
# =============================================================================
# Encryption key for sensitive documents (auto-generated if not provided)
DOCUMENT_ENCRYPTION_KEY=your_32_character_encryption_key_here
# Session secret for secure sessions
SESSION_SECRET=your_session_secret_key_here
# =============================================================================
# APPLICATION SETTINGS
# =============================================================================
# Application environment (development, staging, production)
APP_ENVIRONMENT=development
# Debug mode (true/false)
DEBUG_MODE=false
# Maximum file upload size in MB
MAX_UPLOAD_SIZE_MB=100
# Maximum number of documents to process simultaneously
MAX_CONCURRENT_DOCUMENTS=5
# =============================================================================
# DATABASE SETTINGS (Optional - for document history)
# =============================================================================
# SQLite database path (for local storage)
DATABASE_PATH=./data/document_history.db
# PostgreSQL connection (for production deployment)
DATABASE_URL=postgresql://user:password@localhost:5432/document_analyst
# =============================================================================
# LOGGING AND MONITORING
# =============================================================================
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL=INFO
# Log file path
LOG_FILE_PATH=./logs/application.log
# Sentry DSN for error tracking (optional)
SENTRY_DSN=your_sentry_dsn_here
# =============================================================================
# RATE LIMITING
# =============================================================================
# API rate limiting settings
API_REQUESTS_PER_MINUTE=60
API_REQUESTS_PER_HOUR=1000
# =============================================================================
# FEATURE FLAGS
# =============================================================================
# Enable/disable specific features
ENABLE_LEGAL_ANALYSIS=true
ENABLE_DOCUMENT_COMPARISON=true
ENABLE_OCR_PROCESSING=true
ENABLE_ADVANCED_ANALYTICS=true
ENABLE_EXPORT_FEATURES=true
# =============================================================================
# NOTES
# =============================================================================
# 1. Replace all "your_*_here" values with your actual credentials
# 2. Never commit your .env file to version control
# 3. Add .env to your .gitignore file
# 4. For production, use environment variables instead of .env file
# 5. Some features work without API keys but with limited functionality
# 6. OpenRouter API key is the minimum requirement for full functionality