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

@ -380,7 +380,7 @@ async def build_chunks(task, progress_callback):
cached = await gen_metadata(chat_mdl,
metadata_schema(task["parser_config"]["metadata"]),
d["content_with_weight"])
set_llm_cache(chat_mdl.llm_name, d["content_with_weight"], cached, "metadata")
set_llm_cache(chat_mdl.llm_name, d["content_with_weight"], cached, "metadata", {})
if cached:
d["metadata_obj"] = cached
tasks = []