This commit is contained in:
Yannick Stephan
2025-02-17 23:21:14 +01:00
parent 80272cbf16
commit ba65329898

View File

@@ -228,14 +228,14 @@ async def _merge_nodes_then_upsert(
async def _merge_edges_then_upsert(
src_id: str,
tgt_id: str,
edges_data: list[dict[str, Any]],
edges_data: list[dict],
knowledge_graph_inst: BaseGraphStorage,
global_config: dict[str, str],
global_config: dict,
):
already_weights: list[float] = []
already_source_ids: list[str] = []
already_description: list[str] = []
already_keywords: list[str] = []
already_weights = []
already_source_ids = []
already_description = []
already_keywords = []
if await knowledge_graph_inst.has_edge(src_id, tgt_id):
already_edge = await knowledge_graph_inst.get_edge(src_id, tgt_id)