# Copy this file to .env and fill in your values # ── Flask ────────────────────────────────────────────────────────────────────── SECRET_KEY=change-me-to-a-random-secret-string FLASK_ENV=production # ── Database (SQLite default — no change needed for single-instance) ─────────── # DATABASE_URI=sqlite:////app/app.db # ── AI Provider ──────────────────────────────────────────────────────────────── # "lmstudio" → uses LM_STUDIO_URL below (default) # "openai" → uses OPENAI_API_KEY below AI_PROVIDER=lmstudio # LM Studio (running externally, e.g. on the host machine) # On Linux/Docker: use host.docker.internal to reach the host LM_STUDIO_URL=http://host.docker.internal:1234 LM_STUDIO_MODEL=local-model # Model used for RAG embeddings — can be the same model or a dedicated embedding model LM_STUDIO_EMBEDDING_MODEL=local-model # OpenAI (only needed when AI_PROVIDER=openai) # OPENAI_API_KEY=sk-... # OPENAI_MODEL=gpt-4o # ── RAG tuning (optional) ────────────────────────────────────────────────────── RAG_TOP_K=5 RAG_CHUNK_SIZE=500 RAG_CHUNK_OVERLAP=50