psypredict-backend / .env.example
therandomuser03's picture
Add application file
f0f84fb
# PsyPredict v2.0 Environment Configuration
# Copy this file to .env and fill in any overrides needed.
# All values below are production defaults.
# ── Ollama / Phi-3.5 Mini (Local Inference) ──────────────────────────────────
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=phi3.5:3.8b-mini-instruct-q4_0
OLLAMA_TIMEOUT_S=90
OLLAMA_RETRIES=3
OLLAMA_RETRY_DELAY_S=2.0
# ── DistilBERT Text Emotion Model ────────────────────────────────────────────
DISTILBERT_MODEL=bhadresh-savani/distilbert-base-uncased-emotion
# ── Crisis Detection ─────────────────────────────────────────────────────────
CRISIS_THRESHOLD=0.65
# ── Multimodal Fusion Weights (TEXT + FACE must be <= 1.0) ──────────────────
TEXT_WEIGHT=0.65
FACE_WEIGHT=0.35
# ── Context Window ───────────────────────────────────────────────────────────
MAX_CONTEXT_TURNS=10
# ── Logging ──────────────────────────────────────────────────────────────────
LOG_LEVEL=INFO
# ── Rate Limiting ─────────────────────────────────────────────────────────────
RATE_LIMIT=30/minute
# ── Input Limits ─────────────────────────────────────────────────────────────
MAX_INPUT_CHARS=2000
# ── Frontend URL (for reference) ─────────────────────────────────────────────
VITE_BACKEND_URL=http://localhost:7860
# ── Deprecated (no longer used - kept for reference) ────────────────────────
# GOOGLE_API_KEY=your_key_here