RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
boost paralal of graphrag (#1924)
Kevin Huda2d8b826763
diff --git a/graphrag/index.py b/graphrag/index.pyindex ea9c354adf..f2835cc7a7 100644--- a/graphrag/index.py+++ b/graphrag/index.py@@ -61,11 +61,11 @@ def build_knowlege_graph_chunks(tenant_id: str, chunks: List[str], callback, entassert left_token_count > 0, f"The LLM context length({llm_bdl.max_length}) is smaller than prompt({ext.prompt_token_count})"- BATCH_SIZE=1+ BATCH_SIZE=4texts, graphs = [], []cnt = 0threads = []- exe = ThreadPoolExecutor(max_workers=12)+ exe = ThreadPoolExecutor(max_workers=50)for i in range(len(chunks)):tkn_cnt = num_tokens_from_string(chunks[i])if cnt+tkn_cnt >= left_token_count and texts: