Przeglądaj źródła

fix empty graph issue (#1939)

### 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 rok temu
rodzic
commit
853aa121a9
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      graphrag/index.py

+ 1
- 1
graphrag/index.py Wyświetl plik

@@ -85,7 +85,7 @@ def build_knowlege_graph_chunks(tenant_id: str, chunks: List[str], callback, ent
graphs.append(_.result().output)
callback(0.5 + 0.1*i/len(threads), f"Entities extraction progress ... {i+1}/{len(threads)}")

graph = reduce(graph_merge, graphs)
graph = reduce(graph_merge, graphs) if graphs else nx.Graph()
er = EntityResolution(llm_bdl)
graph = er(graph).output


Ładowanie…
Anuluj
Zapisz