Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
853aa121a9
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      graphrag/index.py

+ 1
- 1
graphrag/index.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit