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:
Kevin Hu
2025-12-23 15:57:27 +08:00
committed by GitHub
parent 063b06494a
commit 00bb6fbd28
6 changed files with 6 additions and 11 deletions

View File

@ -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: