From d4e2eb717afaa5d2bacbdef6c54a0d71166ad2e4 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Wed, 11 Dec 2024 16:04:31 +0100 Subject: [PATCH] fix: fix existing edge check Resolve issue with UUID concat by casting to string Fix COG-656 --- cognee/modules/graph/utils/retrieve_existing_edges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/modules/graph/utils/retrieve_existing_edges.py b/cognee/modules/graph/utils/retrieve_existing_edges.py index 50b5f3d7c..0959e79d8 100644 --- a/cognee/modules/graph/utils/retrieve_existing_edges.py +++ b/cognee/modules/graph/utils/retrieve_existing_edges.py @@ -53,6 +53,6 @@ async def retrieve_existing_edges( existing_edges_map = {} for edge in existing_edges: - existing_edges_map[edge[0] + edge[1] + edge[2]] = True + existing_edges_map[str(edge[0]) + str(edge[1]) + edge[2]] = True return existing_edges_map