87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
# ===========================================
|
|
# ForensicPathways Environment Configuration
|
|
# ===========================================
|
|
|
|
# === Authentication Configuration ===
|
|
AUTHENTICATION_NECESSARY=false
|
|
AUTHENTICATION_NECESSARY_CONTRIBUTIONS=false
|
|
AUTHENTICATION_NECESSARY_AI=false
|
|
AUTH_SECRET=your-secret-key-change-in-production
|
|
|
|
# OIDC Configuration (if authentication enabled)
|
|
OIDC_ENDPOINT=https://your-oidc-provider.com
|
|
OIDC_CLIENT_ID=your-client-id
|
|
OIDC_CLIENT_SECRET=your-client-secret
|
|
|
|
# === AI Configuration ===
|
|
|
|
# Selector AI (for selection stage, choode a good model)
|
|
AI_SELECTOR_ENDPOINT=https://llm.mikoshi.de
|
|
AI_SELECTOR_API_KEY=sk-DzREDACTEDHA
|
|
AI_SELECTOR_MODEL=mistral/mistral-medium-latest
|
|
|
|
# Analyzer AI (for analysis stage, choose a smaller model)
|
|
AI_ANALYZER_ENDPOINT=https://llm.mikoshi.de
|
|
AI_ANALYZER_API_KEY=sk-DzREDACTEDnHA
|
|
AI_ANALYZER_MODEL=mistral/mistral-small-latest
|
|
|
|
# === Embeddings Configuration ===
|
|
# Enable/disable semantic embeddings pre-selection
|
|
AI_EMBEDDINGS_ENABLED=true
|
|
|
|
# Embeddings API (Mistral recommended)
|
|
AI_EMBEDDINGS_ENDPOINT=https://api.mistral.ai/v1/embeddings
|
|
AI_EMBEDDINGS_API_KEY=ZSpREDACTED3wL
|
|
AI_EMBEDDINGS_MODEL=mistral-embed
|
|
|
|
# Embeddings performance settings
|
|
AI_EMBEDDINGS_BATCH_SIZE=20
|
|
AI_EMBEDDINGS_BATCH_DELAY_MS=1000
|
|
AI_EMBEDDING_CANDIDATES=30
|
|
AI_SIMILARITY_THRESHOLD=0.3
|
|
|
|
# Delay between micro-tasks to respect rate limits (milliseconds)
|
|
AI_MICRO_TASK_DELAY_MS=500
|
|
|
|
# Micro-task specific rate limiting (requests per minute per user)
|
|
AI_MICRO_TASK_RATE_LIMIT=30
|
|
|
|
# Maximum parallel micro-tasks (for future parallel processing)
|
|
AI_MAX_PARALLEL_TASKS=3
|
|
|
|
# Micro-task timeout settings (milliseconds)
|
|
AI_MICRO_TASK_TIMEOUT_MS=15000
|
|
|
|
# ENHANCED: Rate Limiting Configuration
|
|
# Main query rate limiting (reduced due to micro-tasks)
|
|
AI_RATE_LIMIT_DELAY_MS=3000
|
|
AI_RATE_LIMIT_MAX_REQUESTS=8
|
|
|
|
# Smart prompting rate limiting
|
|
AI_SMART_PROMPTING_RATE_LIMIT=5
|
|
AI_SMART_PROMPTING_WINDOW_MS=60000
|
|
|
|
# Queue management settings
|
|
AI_QUEUE_MAX_SIZE=50
|
|
AI_QUEUE_CLEANUP_INTERVAL_MS=300000
|
|
|
|
# === Performance & Monitoring ===
|
|
# Enable detailed micro-task logging
|
|
AI_MICRO_TASK_DEBUG=false
|
|
|
|
# Enable performance metrics collection
|
|
AI_PERFORMANCE_METRICS=true
|
|
|
|
# Cache settings for AI responses
|
|
AI_RESPONSE_CACHE_TTL_MS=3600000
|
|
|
|
# === Application Configuration ===
|
|
PUBLIC_BASE_URL=http://localhost:4321
|
|
NODE_ENV=development
|
|
|
|
# Nextcloud Integration (Optional)
|
|
NEXTCLOUD_ENDPOINT=https://your-nextcloud.com
|
|
NEXTCLOUD_USERNAME=your-username
|
|
NEXTCLOUD_PASSWORD=your-password
|
|
NEXTCLOUD_UPLOAD_PATH=/kb-media
|
|
NEXTCLOUD_PUBLIC_URL=https://your-nextcloud.com/s/ |