Qurio / backend-python /.env.example
veeiiinnnnn's picture
new
592cb1d
# Qurio Backend - Python (FastAPI + Agno)
# Server Configuration
HOST=localhost
PORT=3002
# CORS Configuration
FRONTEND_URL=http://localhost:3000
FRONTEND_URLS=http://localhost:3000
# SSE Configuration
SSE_FLUSH_MS=50
SSE_HEARTBEAT_MS=10000
# Supabase Configuration
SUPABASE_URL=your_supabase_url
SUPABASE_PASSWORD=your_supabase_password
# Active database backend (exactly one)
# Supported types: supabase, sqlite, postgres, pgsql, mysql, mariadb
DATABASE_PROVIDER=sqlite
DATABASE_LABEL=Local SQLite
# For sqlite
DATABASE_PATH=./data/qurio.db
# For postgres/mysql/mariadb
# DATABASE_URL=postgresql+psycopg2://user:pass@localhost:5432/qurio
# Legacy multi-provider config is still read for backward compatibility,
# but only the first entry is used.
DATABASE_PROVIDERS=[]
# Access key (optional fallback for all providers)
DB_PROVIDER_ACCESS_KEY=your_db_access_key
# Tavily API (for web search)
TAVILY_API_KEY=your_tavily_api_key
# Exa API (for Agno Exa search backend)
EXA_API_KEY=your_exa_api_key
EXA_TOOLS_TIMEOUT_SECONDS=45
# Debug Flags
DEBUG_STREAM=0
DEBUG_TOOLS=0
DEBUG_SOURCES=0
# Context Message Limit (default: 50)
CONTEXT_MESSAGE_LIMIT=50
# ================================================================
# Session Summary Configuration (Dual-Track Memory)
# ================================================================
# Required for generating chat summaries to prevent context loss
# Recommended: GLM-4-Flash (Fast & Cheap) or other lite models
MEMORY_LITE_PROVIDER=glm
MEMORY_LITE_MODEL=glm-4-flash
MEMORY_AGENT_API_KEY=your_glm_api_key
MEMORY_LITE_BASE_URL=https://open.bigmodel.cn/api/paas/v4
# ================================================================
# Model Configs (Add other provider keys as needed)
# ================================================================
OPENAI_API_KEY=sk-proj-...
GEMINI_API_KEY=...
DEEPSEEK_API_KEY=...
VOLCENGINE_API_KEY=...