# ============================================================ # Enterprise AI Copilot Platform — Environment Variables # Copy this file to .env and fill in your values # ============================================================ # ---- LLM Provider ---------------------------------------- LLM_PROVIDER=groq # groq | ollama GROQ_API_KEY=gsk_your_groq_api_key_here GROQ_MODEL=llama-3.1-8b-instant # llama-3.1-8b-instant | llama-3.1-70b-versatile | mixtral-8x7b-32768 OLLAMA_BASE_URL=http://ollama:11434 # Only needed if LLM_PROVIDER=ollama OLLAMA_MODEL=llama3.1 # ---- Deployment Mode ------------------------------------- DEPLOY_MODE=local # local | huggingface # ---- Security ------------------------------------------- SECRET_KEY=change-this-to-a-long-random-secret-in-production JWT_ALGORITHM=HS256 ACCESS_TOKEN_EXPIRE_MINUTES=30 REFRESH_TOKEN_EXPIRE_DAYS=7 # ---- Database ------------------------------------------- # Local dev (PostgreSQL): DATABASE_URL=postgresql+asyncpg://copilot:copilot@postgres:5432/copilot_db # HF Spaces (SQLite) — set DEPLOY_MODE=huggingface to use this automatically: # DATABASE_URL=sqlite+aiosqlite:///./data/copilot.db # ---- Redis ---------------------------------------------- REDIS_URL=redis://redis:6379/0 # HF Spaces: leave empty to use in-memory cache # ---- Qdrant --------------------------------------------- QDRANT_URL=http://qdrant:6333 QDRANT_COLLECTION_NAME=enterprise_docs # HF Spaces: leave empty to use local in-process mode # ---- Embeddings ----------------------------------------- EMBEDDING_MODEL=all-MiniLM-L6-v2 # Runs locally, free EMBEDDING_DIM=384 RERANKER_MODEL=cross-encoder/ms-marco-MiniLM-L-6-v2 # ---- File Storage --------------------------------------- UPLOAD_DIR=./uploads MAX_UPLOAD_SIZE_MB=50 # ---- API Settings --------------------------------------- API_V1_PREFIX=/api/v1 BACKEND_CORS_ORIGINS=["http://localhost:3000","http://localhost:8000","https://*.hf.space"] DEBUG=true # ---- Rate Limiting -------------------------------------- RATE_LIMIT_PER_MINUTE=60 RATE_LIMIT_PER_HOUR_TENANT=1000 # ---- Celery (local dev only) ---------------------------- CELERY_BROKER_URL=redis://redis:6379/1 CELERY_RESULT_BACKEND=redis://redis:6379/2 # ---- Monitoring ----------------------------------------- PROMETHEUS_PORT=9090 GRAFANA_PORT=3001 # ---- Admin defaults (change immediately!) --------------- FIRST_ADMIN_EMAIL=admin@company.com FIRST_ADMIN_PASSWORD=Admin@123!