mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
Fix: metadata issue & graphrag speeding up. (#12113)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@ -198,7 +198,7 @@ async def run_graphrag_for_kb(
|
||||
|
||||
for d in raw_chunks:
|
||||
content = d["content_with_weight"]
|
||||
if num_tokens_from_string(current_chunk + content) < 1024:
|
||||
if num_tokens_from_string(current_chunk + content) < 4096:
|
||||
current_chunk += content
|
||||
else:
|
||||
if current_chunk:
|
||||
|
||||
Reference in New Issue
Block a user