Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

turn down es bulk size (#2013)

Kevin Hu5efb3476f2ae
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index 2391a3acd3..2cd04b0f2d 100644
--- a/rag/svr/task_executor.py
+++ b/rag/svr/task_executor.py
@@ -348,7 +348,7 @@ def main():
chunk_count = len(set([c["_id"] for c in cks]))
st = timer()
es_r = ""
- es_bulk_size = 16
+ es_bulk_size = 4
for b in range(0, len(cks), es_bulk_size):
es_r = ELASTICSEARCH.bulk(cks[b:b + es_bulk_size], search.index_name(r["tenant_id"]))
if b % 128 == 0: