浏览代码

fix empty mind map issue (#1991)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.10.0
Kevin Hu 1年前
父节点
当前提交
2302a6baba
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      graphrag/mind_map_extractor.py

+ 3
- 0
graphrag/mind_map_extractor.py 查看文件

@@ -105,6 +105,9 @@ class MindMapExtractor:
for i, _ in enumerate(threads):
res.append(_.result())

if not res:
return MindMapResult(output={"root":{}})

merge_json = reduce(self._merge, res)
if len(merge_json.keys()) > 1:
keyset = set(

正在加载...
取消
保存