embeddings-1 #2
61
.env.example
61
.env.example
@ -2,34 +2,51 @@
|
|||||||
# ForensicPathways Environment Configuration
|
# ForensicPathways Environment Configuration
|
||||||
# ===========================================
|
# ===========================================
|
||||||
|
|
||||||
# Authentication & OIDC (Required)
|
# === Authentication Configuration ===
|
||||||
AUTH_SECRET=change-this-to-a-strong-secret-key-in-production
|
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_ENDPOINT=https://your-oidc-provider.com
|
||||||
OIDC_CLIENT_ID=your-oidc-client-id
|
OIDC_CLIENT_ID=your-client-id
|
||||||
OIDC_CLIENT_SECRET=your-oidc-client-secret
|
OIDC_CLIENT_SECRET=your-client-secret
|
||||||
|
|
||||||
# Auth Scopes - set to true in prod
|
# === AI Configuration ===
|
||||||
AUTHENTICATION_NECESSARY_CONTRIBUTIONS=true
|
|
||||||
AUTHENTICATION_NECESSARY_AI=true
|
|
||||||
|
|
||||||
# Application Configuration (Required)
|
# Selector AI (for selection stage, choode a good model)
|
||||||
PUBLIC_BASE_URL=https://your-domain.com
|
AI_SELECTOR_ENDPOINT=https://llm.mikoshi.de
|
||||||
NODE_ENV=production
|
AI_SELECTOR_API_KEY=sk-DzREDACTEDHA
|
||||||
|
AI_SELECTOR_MODEL=mistral/mistral-medium-latest
|
||||||
|
|
||||||
# AI Service Configuration (Required for AI features)
|
# Analyzer AI (for analysis stage, choose a smaller model)
|
||||||
AI_MODEL=mistral-large-latest
|
AI_ANALYZER_ENDPOINT=https://llm.mikoshi.de
|
||||||
AI_API_ENDPOINT=https://api.mistral.ai
|
AI_ANALYZER_API_KEY=sk-DzREDACTEDnHA
|
||||||
AI_API_KEY=your-mistral-api-key
|
AI_ANALYZER_MODEL=mistral/mistral-small-latest
|
||||||
AI_RATE_LIMIT_DELAY_MS=1000
|
|
||||||
|
|
||||||
# Git Integration (Required for contributions)
|
# === Embeddings Configuration ===
|
||||||
GIT_REPO_URL=https://git.cc24.dev/mstoeck3/forensic-pathways
|
# Enable/disable semantic embeddings pre-selection
|
||||||
GIT_PROVIDER=gitea
|
AI_EMBEDDINGS_ENABLED=true
|
||||||
GIT_API_ENDPOINT=https://git.cc24.dev/api/v1
|
|
||||||
GIT_API_TOKEN=your-git-api-token
|
|
||||||
|
|
||||||
# File Upload Configuration (Optional)
|
# Embeddings API (Mistral recommended)
|
||||||
LOCAL_UPLOAD_PATH=./public/uploads
|
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
|
||||||
|
|
||||||
|
# === AI Processing Configuration ===
|
||||||
|
AI_MAX_SELECTED_ITEMS=15
|
||||||
|
AI_RATE_LIMIT_DELAY_MS=2000
|
||||||
|
|
||||||
|
# === Application Configuration ===
|
||||||
|
PUBLIC_BASE_URL=http://localhost:4321
|
||||||
|
NODE_ENV=development
|
||||||
|
|
||||||
# Nextcloud Integration (Optional)
|
# Nextcloud Integration (Optional)
|
||||||
NEXTCLOUD_ENDPOINT=https://your-nextcloud.com
|
NEXTCLOUD_ENDPOINT=https://your-nextcloud.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user