mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 02:49:00 +08:00
fix empty graph issue (#1939)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
54fc6dcf01
commit
853aa121a9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user