File tree Expand file tree Collapse file tree 3 files changed +39
-39
lines changed
Expand file tree Collapse file tree 3 files changed +39
-39
lines changed Original file line number Diff line number Diff line change 1- # Development Environment Configuration
2- # This file contains environment variables for development
1+ # ###########################################################
2+ # Development Environment
3+ # ###########################################################
34
4- # Backend Configuration
5+ # Backend
56BACKEND = auto
67MODEL_NAME = sentence-transformers/all-MiniLM-L6-v2
78MLX_MODEL_PATH =
89CROSS_ENCODER_MODEL =
910
10- # Server Configuration
11+ # Server
1112HOST = 0.0.0.0
1213PORT = 9000
1314RELOAD = true
1415
15- # Performance Settings
16+ # Performance
1617BATCH_SIZE = 32
1718MAX_BATCH_SIZE = 128
1819MAX_TEXTS_PER_REQUEST = 100
1920MAX_PASSAGES_PER_RERANK = 1000
21+ MAX_SEQUENCE_LENGTH = 512
2022DEVICE_MEMORY_FRACTION = 0.8
23+ REQUEST_TIMEOUT = 300
2124
22- # Logging Configuration
25+ # Logging
2326LOG_LEVEL = DEBUG
2427LOG_FORMAT = json
2528
26- # Security Settings (Development )
29+ # Security (dev permissive )
2730ALLOWED_HOSTS = ["*"]
2831ALLOWED_ORIGINS = ["*"]
29- REQUEST_TIMEOUT = 300
3032
31- # Development Features
32- DEBUG = true
33- ENABLE_CORS = true
34- ENABLE_DOCS = true
33+ # NOTE: Removed unsupported flags (DEBUG, ENABLE_*)
Original file line number Diff line number Diff line change 1- # Environment Configuration
1+ # ###########################################################
2+ # Example Environment (.env example)
3+ # ###########################################################
4+
5+ # Backend
26BACKEND = auto
37MODEL_NAME = Qwen/Qwen3-Embedding-4B
48MLX_MODEL_PATH =
59CROSS_ENCODER_MODEL =
610
7- # Server Configuration
11+ # Server
812HOST = 0.0.0.0
913PORT = 9000
1014RELOAD = false
1115
12- # Performance Settings
16+ # Performance
1317BATCH_SIZE = 32
1418MAX_BATCH_SIZE = 128
1519MAX_TEXTS_PER_REQUEST = 100
1620MAX_PASSAGES_PER_RERANK = 1000
17- DEVICE_MEMORY_FRACTION = 0.8
1821MAX_SEQUENCE_LENGTH = 512
22+ DEVICE_MEMORY_FRACTION = 0.8
1923REQUEST_TIMEOUT = 300
2024
21- # Logging Configuration
25+ # Logging
2226LOG_LEVEL = INFO
2327LOG_FORMAT = json
28+
29+ # Security (optional)
30+ # ALLOWED_HOSTS=["example.com","api.example.com"]
31+ # ALLOWED_ORIGINS=["https://example.com","https://app.example.com"]
32+
33+ # Copy to .env and adjust as needed.
Original file line number Diff line number Diff line change 1- # Production Environment Configuration
2- # This file contains environment variables for production deployment
1+ # ###########################################################
2+ # Production Environment (clean)
3+ # ###########################################################
34
4- # Backend Configuration
5+ # Backend
56BACKEND = auto
67MODEL_NAME = mlx-community/Qwen3-Embedding-4B-4bit-DWQ
78MLX_MODEL_PATH =
89CROSS_ENCODER_MODEL =
910
10- # Server Configuration
11+ # Server
1112HOST = 0.0.0.0
1213PORT = 9000
1314RELOAD = false
1415
15- # Performance Settings
16+ # Performance
1617BATCH_SIZE = 32
1718MAX_BATCH_SIZE = 128
1819MAX_TEXTS_PER_REQUEST = 100
1920MAX_PASSAGES_PER_RERANK = 1000
21+ MAX_SEQUENCE_LENGTH = 512
2022DEVICE_MEMORY_FRACTION = 0.8
23+ REQUEST_TIMEOUT = 300
2124
22- # Logging Configuration
25+ # Logging
2326LOG_LEVEL = INFO
2427LOG_FORMAT = json
2528
26- # Security Settings (Production)
27- ALLOWED_HOSTS = ["your-domain.com", "api.your-domain.com"]
28- ALLOWED_ORIGINS = ["https://your-domain.com", "https://app.your-domain.com"]
29- REQUEST_TIMEOUT = 300
30-
31- # Production Features
32- DEBUG = false
33- ENABLE_CORS = true
34- ENABLE_DOCS = false
35-
36- # Health Check Settings
37- HEALTH_CHECK_INTERVAL = 30
38- HEALTH_CHECK_TIMEOUT = 10
29+ # Security (uncomment & customize)
30+ ALLOWED_HOSTS = ["your-domain.com","api.your-domain.com"]
31+ ALLOWED_ORIGINS = ["https://your-domain.com","https://app.your-domain.com"]
3932
40- # Monitoring
41- ENABLE_METRICS = true
42- METRICS_PORT = 9001
33+ # NOTE: Removed unsupported flags (DEBUG, ENABLE_*, HEALTH_*, METRICS_*)
You can’t perform that action at this time.
0 commit comments