94 lines
2.0 KiB
Plaintext
94 lines
2.0 KiB
Plaintext
|
|
# ===========================================
|
||
|
|
# REASON FLOW - ENVIRONMENT CONFIGURATION
|
||
|
|
# ===========================================
|
||
|
|
|
||
|
|
# Server Configuration
|
||
|
|
PORT=8000
|
||
|
|
NODE_ENV=development
|
||
|
|
HOST=localhost
|
||
|
|
|
||
|
|
# Database Configuration
|
||
|
|
DB_HOST=localhost
|
||
|
|
DB_PORT=5432
|
||
|
|
DB_NAME=reason_flow
|
||
|
|
DB_USER=postgres
|
||
|
|
DB_PASSWORD=your_password_here
|
||
|
|
DB_SSL=false
|
||
|
|
|
||
|
|
# Groq API Configuration
|
||
|
|
GROQ_API_KEY=your_groq_api_key_here
|
||
|
|
GROQ_MODEL=moonshotai/kimi-k2-instruct-0905
|
||
|
|
GROQ_BASE_URL=https://api.groq.com
|
||
|
|
|
||
|
|
# OpenAI API (for embeddings and additional models)
|
||
|
|
OPENAI_API_KEY=your_openai_api_key_here
|
||
|
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
||
|
|
|
||
|
|
# JWT Configuration
|
||
|
|
JWT_SECRET=your_jwt_secret_here_make_it_long_and_secure
|
||
|
|
JWT_EXPIRES_IN=7d
|
||
|
|
|
||
|
|
# Admin User Configuration
|
||
|
|
ADMIN_EMAIL=admin@reasonflow.com
|
||
|
|
ADMIN_PASSWORD=admin123
|
||
|
|
ADMIN_FIRST_NAME=Admin
|
||
|
|
ADMIN_LAST_NAME=User
|
||
|
|
|
||
|
|
# File Upload Configuration
|
||
|
|
MAX_FILE_SIZE=50MB
|
||
|
|
UPLOAD_PATH=./uploads
|
||
|
|
ALLOWED_FILE_TYPES=pdf,txt,doc,docx
|
||
|
|
|
||
|
|
# Rate Limiting
|
||
|
|
RATE_LIMIT_WINDOW_MS=900000
|
||
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
||
|
|
|
||
|
|
# Logging Configuration
|
||
|
|
LOG_LEVEL=info
|
||
|
|
LOG_FILE=./logs/app.log
|
||
|
|
LOG_MAX_SIZE=10MB
|
||
|
|
LOG_MAX_FILES=5
|
||
|
|
|
||
|
|
# Vector Database Configuration
|
||
|
|
VECTOR_DB_URL=your_vector_db_url_here
|
||
|
|
VECTOR_DB_API_KEY=your_vector_db_api_key_here
|
||
|
|
|
||
|
|
# Web Search API Configuration
|
||
|
|
SERP_API_KEY=your_serp_api_key_here
|
||
|
|
SERP_ENGINE=google
|
||
|
|
|
||
|
|
# Redis Configuration (for caching and sessions)
|
||
|
|
REDIS_URL=redis://localhost:6379
|
||
|
|
REDIS_PASSWORD=your_redis_password_here
|
||
|
|
|
||
|
|
# Model Configuration
|
||
|
|
MODEL1_TEMPERATURE=0.3
|
||
|
|
MODEL1_MAX_TOKENS=3000
|
||
|
|
QUERYMODEL_TEMPERATURE=0.5
|
||
|
|
QUERYMODEL_MAX_TOKENS=4000
|
||
|
|
|
||
|
|
# Fine-tuning Configuration
|
||
|
|
FINE_TUNING_ENABLED=true
|
||
|
|
FINE_TUNING_SCHEDULE=weekly
|
||
|
|
FINE_TUNING_BATCH_SIZE=10
|
||
|
|
|
||
|
|
# Feedback Configuration
|
||
|
|
FEEDBACK_PROCESSING_ENABLED=true
|
||
|
|
FEEDBACK_BATCH_SIZE=50
|
||
|
|
FEEDBACK_PROCESSING_SCHEDULE=daily
|
||
|
|
|
||
|
|
# Security Configuration
|
||
|
|
CORS_ORIGIN=http://localhost:3000
|
||
|
|
HELMET_ENABLED=true
|
||
|
|
RATE_LIMIT_ENABLED=true
|
||
|
|
|
||
|
|
# Monitoring Configuration
|
||
|
|
HEALTH_CHECK_ENABLED=true
|
||
|
|
METRICS_ENABLED=true
|
||
|
|
PERFORMANCE_MONITORING=true
|
||
|
|
|
||
|
|
# Development Configuration
|
||
|
|
DEBUG_MODE=true
|
||
|
|
VERBOSE_LOGGING=true
|
||
|
|
HOT_RELOAD=true
|