yangdx
commited on
Commit
·
ccc35ac
1
Parent(s):
d273149
add redis configuration and update workers default value
Browse files- .env.example +4 -0
- lightrag/api/utils_api.py +2 -2
.env.example
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
### Server Configuration
|
2 |
# HOST=0.0.0.0
|
3 |
# PORT=9621
|
|
|
4 |
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
|
5 |
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
6 |
|
@@ -138,3 +139,6 @@ MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
|
|
138 |
### Qdrant
|
139 |
QDRANT_URL=http://localhost:16333
|
140 |
# QDRANT_API_KEY=your-api-key
|
|
|
|
|
|
|
|
1 |
### Server Configuration
|
2 |
# HOST=0.0.0.0
|
3 |
# PORT=9621
|
4 |
+
# WORKERS=1
|
5 |
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
|
6 |
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
7 |
|
|
|
139 |
### Qdrant
|
140 |
QDRANT_URL=http://localhost:16333
|
141 |
# QDRANT_API_KEY=your-api-key
|
142 |
+
|
143 |
+
### Redis
|
144 |
+
REDIS_URI=redis://localhost:6379
|
lightrag/api/utils_api.py
CHANGED
@@ -325,8 +325,8 @@ def parse_args() -> argparse.Namespace:
|
|
325 |
parser.add_argument(
|
326 |
"--workers",
|
327 |
type=int,
|
328 |
-
default=get_env_value("WORKERS",
|
329 |
-
help="Number of worker processes (default: from env or
|
330 |
)
|
331 |
|
332 |
# LLM and embedding bindings
|
|
|
325 |
parser.add_argument(
|
326 |
"--workers",
|
327 |
type=int,
|
328 |
+
default=get_env_value("WORKERS", 1, int),
|
329 |
+
help="Number of worker processes (default: from env or 1)",
|
330 |
)
|
331 |
|
332 |
# LLM and embedding bindings
|