Ver código fonte

Fix: parameter error. (#5641)

### What problem does this PR solve?

#5600

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.1
Kevin Hu 8 meses atrás
pai
commit
02c955babb
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      graphrag/general/extractor.py

+ 3
- 2
graphrag/general/extractor.py Ver arquivo

@@ -186,7 +186,7 @@ class Extractor:
src_id: str,
tgt_id: str,
edges_data: list[dict],
all_relationships_data
all_relationships_data=None
):
if not edges_data:
return
@@ -229,7 +229,8 @@ class Extractor:
source_id=source_id
)
self._set_relation_(src_id, tgt_id, edge_data)
all_relationships_data.append(edge_data)
if all_relationships_data is not None:
all_relationships_data.append(edge_data)

async def _handle_entity_relation_summary(
self,

Carregando…
Cancelar
Salvar