Hetansh Waghela
PUSH?
419099f
Raw
History Blame Contribute Delete
3.62 kB
# =============================================================================
# Lumea Backend Environment Variables
# =============================================================================
# Copy this file to .env and fill in your values
# cp .env.example .env
# -----------------------------------------------------------------------------
# DATABASE (Required)
# -----------------------------------------------------------------------------
# PostgreSQL connection string with asyncpg driver
# For Neon: postgresql+asyncpg://user:password@host/database?ssl=require
# For local: postgresql+asyncpg://user:password@localhost:5432/database
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/ggwdb
# -----------------------------------------------------------------------------
# AUTHENTICATION (Required)
# -----------------------------------------------------------------------------
# Secret key for JWT signing (min 32 characters, generate with: openssl rand -hex 32)
JWT_SECRET=your-secret-key-change-in-production-min-32-chars
# JWT algorithm (default: HS256)
JWT_ALGORITHM=HS256
# Token expiration in minutes (default: 10080 = 7 days)
ACCESS_TOKEN_EXPIRE_MINUTES=10080
# -----------------------------------------------------------------------------
# CORS (Required)
# -----------------------------------------------------------------------------
# Frontend origin for CORS (adjust for production)
FRONTEND_ORIGIN=http://localhost:5173
# -----------------------------------------------------------------------------
# GROK API (Required for AI Summaries)
# -----------------------------------------------------------------------------
# xAI Grok API key - get from https://x.ai/api
GROK_API_KEY=gsk_your_grok_api_key_here
# Grok model name (default: grok-beta)
GROK_MODEL=grok-beta
# xAI API base URL
XAI_API_BASE=https://api.x.ai/v1
# -----------------------------------------------------------------------------
# OLLAMA / LOCAL LLM (Optional)
# -----------------------------------------------------------------------------
# Ollama server URL (for local MedGemma or other models)
OLLAMA_BASE_URL=http://localhost:11434
# Ollama model name
OLLAMA_MODEL=hf.co/unsloth/medgemma-4b-it-GGUF:Q6_K_XL
# Ollama timeout in seconds
OLLAMA_TIMEOUT=120
# -----------------------------------------------------------------------------
# GEMINI API (Optional Fallback)
# -----------------------------------------------------------------------------
# Enable Gemini as fallback LLM
USE_GEMINI_FALLBACK=true
# Google Gemini API key - get from https://aistudio.google.com/
GEMINI_API_KEY=
# -----------------------------------------------------------------------------
# OPENAI API (Optional Alternative)
# -----------------------------------------------------------------------------
# OpenAI API key (alternative to Grok/Gemini)
OPENAI_API_KEY=
# OpenAI API base URL
OPENAI_API_BASE=https://api.openai.com/v1
# OpenAI model name
OPENAI_MODEL=gpt-4o-mini
# -----------------------------------------------------------------------------
# RAG / VECTOR STORE (Optional)
# -----------------------------------------------------------------------------
# ChromaDB persistence directory
CHROMA_PERSIST_DIR=/app/chroma_db
# Embedding model for RAG
EMBEDDING_MODEL=all-MiniLM-L6-v2
# Number of top results to retrieve
RAG_TOP_K=5
# -----------------------------------------------------------------------------
# HUGGING FACE (Optional - for local models)
# -----------------------------------------------------------------------------
# Hugging Face token for gated models like MedGemma
HF_TOKEN=