-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (32 loc) · 1.56 KB
/
Copy path.env.example
File metadata and controls
42 lines (32 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# =============================================================================
# Knowledge Base Environment Configuration
# =============================================================================
# REQUIRED - Must be set in production (no defaults for security)
JWT_SECRET=your-secure-256-bit-secret-here
# AES-256 encryption key for API keys stored in the database.
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
# WARNING: changing this key will invalidate all saved API keys.
ENCRYPTION_KEY=your-64-char-hex-key-here
# Database - SQLite for development, use PostgreSQL for production
DATABASE_URL=sqlite:///data_storage/knowledge_base.db
# CORS - Comma-separated list of allowed origins (no wildcards in production)
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# Logging
LOG_LEVEL=INFO
DEBUG=false
# Rate Limiting (requests per minute per IP)
RATE_LIMIT_PER_MINUTE=60
# Groq API - Set via Settings page or here
# GROQ_API_KEY=your-groq-api-key
# GROQ_MODEL=llama-3.3-70b-versatile
# Web Search
ENABLE_WEB_SEARCH=true
# FAISS Quantization — int8 scalar quantizer (4x memory reduction, ~1% recall loss)
# Set to false to use raw float32 IndexFlatL2
FAISS_QUANTIZE=true
FAISS_QUANTIZE_TYPE=sq8 # sq8 = 8-bit (recommended) | sq4 = 4-bit (more aggressive)
# Celery — async document indexing workers
# Leave both empty to use FastAPI BackgroundTasks (no Redis needed for local dev).
# Set to enable persistent task queue with automatic retry on failure.
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0