diff --git a/env.example b/env.example index 4515fe34..24fb11a1 100644 --- a/env.example +++ b/env.example @@ -113,7 +113,7 @@ EMBEDDING_BINDING_HOST=http://localhost:11434 ### Num of chunks send to Embedding in single request # EMBEDDING_BATCH_NUM=10 ### Max concurrency requests for Embedding -# EMBEDDING_FUNC_MAX_ASYNC=16 +# EMBEDDING_FUNC_MAX_ASYNC=8 ### Maximum tokens sent to Embedding for each chunk (no longer in use?) # MAX_EMBED_TOKENS=8192 ### Optional for Azure diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index feb7ab16..6b85906a 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -205,7 +205,7 @@ class LightRAG: """Batch size for embedding computations.""" embedding_func_max_async: int = field( - default=int(os.getenv("EMBEDDING_FUNC_MAX_ASYNC", 16)) + default=int(os.getenv("EMBEDDING_FUNC_MAX_ASYNC", 8)) ) """Maximum number of concurrent embedding function calls."""