diff --git a/.env.example b/.env.example index e4034def..0f8e6c31 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ ### Server Configuration # HOST=0.0.0.0 # PORT=9621 +# WORKERS=1 # NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances # CORS_ORIGINS=http://localhost:3000,http://localhost:8080 @@ -138,3 +139,6 @@ MONGODB_GRAPH=false # deprecated (keep for backward compatibility) ### Qdrant QDRANT_URL=http://localhost:16333 # QDRANT_API_KEY=your-api-key + +### Redis +REDIS_URI=redis://localhost:6379 \ No newline at end of file diff --git a/lightrag/api/utils_api.py b/lightrag/api/utils_api.py index 0d8bebd0..2544276a 100644 --- a/lightrag/api/utils_api.py +++ b/lightrag/api/utils_api.py @@ -325,8 +325,8 @@ def parse_args() -> argparse.Namespace: parser.add_argument( "--workers", type=int, - default=get_env_value("WORKERS", 2, int), - help="Number of worker processes (default: from env or 2)", + default=get_env_value("WORKERS", 1, int), + help="Number of worker processes (default: from env or 1)", ) # LLM and embedding bindings