Explorar el Código

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 hace 1 año
padre
commit
2302a6baba
No account linked to committer's email address
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      graphrag/mind_map_extractor.py

+ 3
- 0
graphrag/mind_map_extractor.py Ver fichero

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

Cargando…
Cancelar
Guardar