# Copy this file to .env and fill in the values # Google Gemini API (free tier — get from https://aistudio.google.com/apikey) GEMINI_API_KEY=your_gemini_api_key_here # Groq API (fallback — free from https://console.groq.com) GROQ_API_KEY=your_groq_api_key_here # LLM settings PRIMARY_LLM=gemini GEMINI_MODEL=gemini-1.5-flash GROQ_MODEL=llama-3.3-70b-versatile # Embedding model (BGE-M3 supports Arabic + English) EMBEDDING_MODEL=BAAI/bge-m3 # Storage paths DOCUMENTS_DIR=./data/documents PROCESSED_DIR=./data/processed CHROMA_DIR=./data/chroma_db CHROMA_COLLECTION=qdb_knowledge # Chunking CHUNK_SIZE=500 CHUNK_OVERLAP=50 # Retrieval TOP_K=5 # API API_HOST=0.0.0.0 API_PORT=8000 # Microsoft auth (Azure AD / Entra ID) # 1. Register app at https://portal.azure.com → Azure Active Directory → App registrations # 2. Note: Application (client) ID, Directory (tenant) ID # 3. Create a client secret (Certificates & secrets → New client secret) # 4. Add redirect URI: http://localhost:8501 (and your prod URL later) # 5. API permissions: Microsoft Graph → User.Read (delegated) MS_TENANT_ID=your_tenant_id_here MS_CLIENT_ID=your_client_id_here MS_CLIENT_SECRET=your_client_secret_here MS_REDIRECT_URI=http://localhost:8501 # Allowed email domain (only emails ending with this can log in) ALLOWED_EMAIL_DOMAIN=yourcompany.com # Admin emails (comma-separated) — these accounts can access /admin ADMIN_EMAILS=admin@yourcompany.com # Logging LOG_LEVEL=INFO