File size: 3,163 Bytes
c3a3710 | 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | # MnemoCore Environment Configuration
# ====================================
# Copy this file to .env and fill in the values.
# All variables can be overridden at runtime.
# ===========================================
# REQUIRED: API Security
# ===========================================
# API key for authentication (REQUIRED - must be set)
# Generate a secure key: python -c "import secrets; print(secrets.token_urlsafe(32))"
HAIM_API_KEY=your-secure-api-key-here
# ===========================================
# Redis Configuration
# ===========================================
# Redis connection URL
# Format: redis://[username:password@]host:port/db
REDIS_URL=redis://redis:6379/0
# Redis stream key for pub/sub events
REDIS_STREAM_KEY=haim:subconscious
# Maximum Redis connections
REDIS_MAX_CONNECTIONS=10
# Redis socket timeout (seconds)
REDIS_SOCKET_TIMEOUT=5
# ===========================================
# Qdrant Configuration
# ===========================================
# Qdrant connection URL
QDRANT_URL=http://qdrant:6333
# Collection names
QDRANT_COLLECTION_HOT=haim_hot
QDRANT_COLLECTION_WARM=haim_warm
# ===========================================
# Server Configuration
# ===========================================
# Host to bind the server
HOST=0.0.0.0
# Port to listen on
PORT=8100
# Number of uvicorn workers (1 recommended for stateful apps)
WORKERS=1
# ===========================================
# Logging Configuration
# ===========================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Enable structured JSON logging
STRUCTURED_LOGGING=true
# ===========================================
# Observability (Prometheus)
# ===========================================
# Port for Prometheus metrics
METRICS_PORT=9090
# ===========================================
# Memory Tier Configuration
# ===========================================
# Hot tier max memories
HOT_MAX_MEMORIES=2000
# Warm tier max memories
WARM_MAX_MEMORIES=100000
# LTP decay rate
LTP_DECAY_LAMBDA=0.01
# ===========================================
# GPU Configuration (Optional)
# ===========================================
# Enable GPU acceleration
GPU_ENABLED=false
# CUDA device (e.g., cuda:0)
GPU_DEVICE=cuda:0
# ===========================================
# MCP Bridge Configuration (Optional)
# ===========================================
# Enable MCP bridge
MCP_ENABLED=false
# MCP transport: stdio, tcp
MCP_TRANSPORT=stdio
# MCP host and port (for TCP transport)
MCP_HOST=127.0.0.1
MCP_PORT=8110
# ===========================================
# CORS Configuration (Optional)
# ===========================================
# Allowed CORS origins (comma-separated)
# CORS_ORIGINS=http://localhost:3000,https://example.com
# ===========================================
# Rate Limiting (Optional)
# ===========================================
# Enable rate limiting
RATE_LIMIT_ENABLED=true
# Requests per window
RATE_LIMIT_REQUESTS=100
# Window size in seconds
RATE_LIMIT_WINDOW=60
|