book / backend /.env.example
Ammar Ahmed Khan
Add Physical AI Humanoid Book Platform
e2eff86
# JWT Configuration
SECRET_KEY=your-super-secret-key-change-this-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# API Keys and Service Tokens
QWEN_API_KEY=your-qwen-api-key
GEMINI_API_KEY=your-gemini-api-key
HF_TOKEN=your-hugging-face-token
# Alternative embedding service (Hugging Face API token)
HUGGING_FACE_API_KEY=your-hugging-face-api-key
# Alternative embedding service (for fallback)
EMBEDDINGS_API_KEY=your-embeddings-api-key
# Database Configuration (using SQLite for local development)
DATABASE_URL=sqlite:///./physical_ai_book.db
# Vector Database Configuration
VECTOR_DB_URL=http://localhost:6333
# Translation API (Google Translate API)
TRANSLATION_API_KEY=your-translation-api-key
# Application Configuration
JWT_SECRET_KEY=your-super-secret-jwt-key-here
JWT_ALGORITHM=HS256
# Qdrant Vector Database Configuration
QDRANT_URL=http://localhost:6333
# Logging Configuration
LOG_LEVEL=INFO
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8000,http://localhost:3001,https://yourdomain.com
# External Services (Additional)
OPENAI_API_KEY=your-openai-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
COHERE_API_KEY=your-cohere-api-key
# Additional configuration for various AI services
GOOGLE_API_KEY=your-google-api-key
GOOGLE_CSE_ID=your-google-custom-search-id
# Service timeouts and rate limiting
API_REQUEST_TIMEOUT=30
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_SIZE=3600
# Feature flags
ENABLE_TRANSLATION=true
ENABLE_CHATBOT=true
ENABLE_RAG=true
ENABLE_AUTH=true
# Qwen-specific configurations (if using Qwen models)
QWEN_MODEL=text-embedding-v1
QWEN_BASE_URL=https://dashscope.aliyuncs.com/api/v1
# Gemini-specific configurations
GEMINI_MODEL=gemini-pro
GEMINI_BASE_URL=https://generativelanguage.googleapis.com/v1beta
# Hugging Face configurations
HF_MODEL_NAME=sentence-transformers/all-MiniLM-L6-v2
HF_BASE_URL=https://api-inference.huggingface.co/pipeline/feature-extraction/
# MongoDB configuration (if using)
MONGODB_URL=mongodb://localhost:27017/physical_ai_book
# Redis configuration (if using for caching/session storage)
REDIS_URL=redis://localhost:6379
REDIS_HOST=localhost
REDIS_PORT=6379
# SMTP configuration for email services
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
EMAIL_FROM=your-email@gmail.com