-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
92 lines (78 loc) · 2.46 KB
/
Copy path.env.example
File metadata and controls
92 lines (78 loc) · 2.46 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
# Environment Configuration
# Copy this to .env and fill in your credentials
# ========================
# ENVIRONMENT SELECTION
# ========================
# Options: local, production
ENVIRONMENT=local
# ========================
# LLM PROVIDER SELECTION (Local Environment Only)
# ========================
# Choose your LLM provider for local development
# Options: gemini, azure
# Note: Production always uses Azure OpenAI
LLM_PROVIDER=gemini
# ========================
# LOCAL ENVIRONMENT - Option 1: Google Gemini (Default)
# ========================
# Required when LLM_PROVIDER=gemini
GOOGLE_GEMINI_API_KEY=your_gemini_api_key_here
GOOGLE_GEMINI_MODEL=models/gemini-3-flash-preview
GOOGLE_GEMINI_EMBEDDING_MODEL=models/gemini-embedding-001
# ========================
# LOCAL ENVIRONMENT - Option 2: Azure OpenAI
# (Also used for PRODUCTION ENVIRONMENT)
# ========================
# Required when LLM_PROVIDER=azure (local) or ENVIRONMENT=production
# Uncomment and configure if using Azure OpenAI in local development
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_KEY=your_azure_openai_api_key_here
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002
AZURE_OPENAI_API_VERSION=2024-02-01
# Azure AI Search Configuration (Production Only)
AZURE_SEARCH_ENDPOINT=https://your-search-service.search.windows.net
AZURE_SEARCH_API_KEY=your_azure_search_api_key_here
AZURE_SEARCH_INDEX_NAME=company-policies
# ========================
# APPLICATION SETTINGS
# ========================
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
API_RELOAD=true
CORS_ORIGINS=["http://localhost:3000","http://localhost:8000"]
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
# Session Management
SESSION_TIMEOUT=3600
MAX_CONVERSATION_HISTORY=10
CLEANUP_INTERVAL=300
# RAG Configuration
CHUNK_SIZE=500
CHUNK_OVERLAP=50
TOP_K_RESULTS=5
SIMILARITY_THRESHOLD=0.7
# LLM Configuration
MAX_TOKENS=1000
TEMPERATURE=0.7
TOP_P=0.9
# Vector Store
VECTOR_STORE_PATH=./data/faiss_index
FAISS_INDEX_TYPE=IndexFlatL2
# ========================
# AZURE DEPLOYMENT (Production Only)
# ========================
# Application Insights
APPLICATIONINSIGHTS_CONNECTION_STRING=your_app_insights_connection_string
# Storage
AZURE_STORAGE_CONNECTION_STRING=your_storage_connection_string
AZURE_STORAGE_CONTAINER=documents
# ========================
# SECURITY
# ========================
API_KEY_ENABLED=false
API_KEY=your_api_key_here
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=60