graphiti-core 0.21.0rc5__py3-none-any.whl → 0.21.0rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of graphiti-core might be problematic. Click here for more details.
- graphiti_core/graphiti.py +2 -5
- graphiti_core/utils/maintenance/edge_operations.py +0 -26
- graphiti_core/utils/maintenance/node_operations.py +0 -8
- {graphiti_core-0.21.0rc5.dist-info → graphiti_core-0.21.0rc6.dist-info}/METADATA +1 -1
- {graphiti_core-0.21.0rc5.dist-info → graphiti_core-0.21.0rc6.dist-info}/RECORD +7 -7
- {graphiti_core-0.21.0rc5.dist-info → graphiti_core-0.21.0rc6.dist-info}/WHEEL +0 -0
- {graphiti_core-0.21.0rc5.dist-info → graphiti_core-0.21.0rc6.dist-info}/licenses/LICENSE +0 -0
graphiti_core/graphiti.py
CHANGED
|
@@ -79,7 +79,6 @@ from graphiti_core.utils.maintenance.community_operations import (
|
|
|
79
79
|
update_community,
|
|
80
80
|
)
|
|
81
81
|
from graphiti_core.utils.maintenance.edge_operations import (
|
|
82
|
-
build_duplicate_of_edges,
|
|
83
82
|
build_episodic_edges,
|
|
84
83
|
extract_edges,
|
|
85
84
|
resolve_extracted_edge,
|
|
@@ -503,7 +502,7 @@ class Graphiti:
|
|
|
503
502
|
)
|
|
504
503
|
|
|
505
504
|
# Extract edges and resolve nodes
|
|
506
|
-
(nodes, uuid_map,
|
|
505
|
+
(nodes, uuid_map, _), extracted_edges = await semaphore_gather(
|
|
507
506
|
resolve_extracted_nodes(
|
|
508
507
|
self.clients,
|
|
509
508
|
extracted_nodes,
|
|
@@ -540,9 +539,7 @@ class Graphiti:
|
|
|
540
539
|
max_coroutines=self.max_coroutines,
|
|
541
540
|
)
|
|
542
541
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
entity_edges = resolved_edges + invalidated_edges + duplicate_of_edges
|
|
542
|
+
entity_edges = resolved_edges + invalidated_edges
|
|
546
543
|
|
|
547
544
|
episodic_edges = build_episodic_edges(nodes, episode.uuid, now)
|
|
548
545
|
|
|
@@ -65,32 +65,6 @@ def build_episodic_edges(
|
|
|
65
65
|
return episodic_edges
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
def build_duplicate_of_edges(
|
|
69
|
-
episode: EpisodicNode,
|
|
70
|
-
created_at: datetime,
|
|
71
|
-
duplicate_nodes: list[tuple[EntityNode, EntityNode]],
|
|
72
|
-
) -> list[EntityEdge]:
|
|
73
|
-
is_duplicate_of_edges: list[EntityEdge] = []
|
|
74
|
-
for source_node, target_node in duplicate_nodes:
|
|
75
|
-
if source_node.uuid == target_node.uuid:
|
|
76
|
-
continue
|
|
77
|
-
|
|
78
|
-
is_duplicate_of_edges.append(
|
|
79
|
-
EntityEdge(
|
|
80
|
-
source_node_uuid=source_node.uuid,
|
|
81
|
-
target_node_uuid=target_node.uuid,
|
|
82
|
-
name='IS_DUPLICATE_OF',
|
|
83
|
-
group_id=episode.group_id,
|
|
84
|
-
fact=f'{source_node.name} is a duplicate of {target_node.name}',
|
|
85
|
-
episodes=[episode.uuid],
|
|
86
|
-
created_at=created_at,
|
|
87
|
-
valid_at=created_at,
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
return is_duplicate_of_edges
|
|
92
|
-
|
|
93
|
-
|
|
94
68
|
def build_community_edges(
|
|
95
69
|
entity_nodes: list[EntityNode],
|
|
96
70
|
community_node: CommunityNode,
|
|
@@ -282,14 +282,6 @@ async def resolve_extracted_nodes(
|
|
|
282
282
|
resolved_nodes.append(resolved_node)
|
|
283
283
|
uuid_map[extracted_node.uuid] = resolved_node.uuid
|
|
284
284
|
|
|
285
|
-
duplicates: list[int] = resolution.duplicates
|
|
286
|
-
if duplicate_idx not in duplicates and duplicate_idx > -1:
|
|
287
|
-
duplicates.append(duplicate_idx)
|
|
288
|
-
for idx in duplicates:
|
|
289
|
-
existing_node = existing_nodes[idx] if idx < len(existing_nodes) else resolved_node
|
|
290
|
-
|
|
291
|
-
node_duplicates.append((extracted_node, existing_node))
|
|
292
|
-
|
|
293
285
|
logger.debug(f'Resolved nodes: {[(n.name, n.uuid) for n in resolved_nodes]}')
|
|
294
286
|
|
|
295
287
|
new_node_duplicates: list[
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: graphiti-core
|
|
3
|
-
Version: 0.21.
|
|
3
|
+
Version: 0.21.0rc6
|
|
4
4
|
Summary: A temporal graph building library
|
|
5
5
|
Project-URL: Homepage, https://help.getzep.com/graphiti/graphiti/overview
|
|
6
6
|
Project-URL: Repository, https://github.com/getzep/graphiti
|
|
@@ -2,7 +2,7 @@ graphiti_core/__init__.py,sha256=e5SWFkRiaUwfprYIeIgVIh7JDedNiloZvd3roU-0aDY,55
|
|
|
2
2
|
graphiti_core/edges.py,sha256=PhJm_s28cHLEaIqcw66wP16hOq4P4bVQbC_sESHQkXU,20919
|
|
3
3
|
graphiti_core/errors.py,sha256=cH_v9TPgEPeQE6GFOHIg5TvejpUCBddGarMY2Whxbwc,2707
|
|
4
4
|
graphiti_core/graph_queries.py,sha256=ZWMqAo5pwb8PO5ddg4zZ0ArhHWuWV42g3R9ULIxsHOs,8058
|
|
5
|
-
graphiti_core/graphiti.py,sha256=
|
|
5
|
+
graphiti_core/graphiti.py,sha256=fC7CCGeZDNAGK2Bj2tW30QzHMAjqWvpYZiY1A0yUvHM,41917
|
|
6
6
|
graphiti_core/graphiti_types.py,sha256=C_p2XwScQlCzo7ets097TrSLs9ATxPZQ4WCsxDS7QHc,1066
|
|
7
7
|
graphiti_core/helpers.py,sha256=q8kbL9gz8igdlh-oMUS-ylUyeMlXZb-ccf-HQkrES_0,5184
|
|
8
8
|
graphiti_core/nodes.py,sha256=wYLQcVEXvQMxTpTc9LWSoPTzzaoUOm0rl07c9wS1XSY,30323
|
|
@@ -68,13 +68,13 @@ graphiti_core/utils/bulk_utils.py,sha256=9XWXqjxiu2ydKMLKQRTbvzO6cO1o1HRjjpmaf5Y
|
|
|
68
68
|
graphiti_core/utils/datetime_utils.py,sha256=J-zYSq7-H-2n9hYOXNIun12kM10vNX9mMATGR_egTmY,1806
|
|
69
69
|
graphiti_core/utils/maintenance/__init__.py,sha256=vW4H1KyapTl-OOz578uZABYcpND4wPx3Vt6aAPaXh78,301
|
|
70
70
|
graphiti_core/utils/maintenance/community_operations.py,sha256=XMiokEemn96GlvjkOvbo9hIX04Fea3eVj408NHG5P4o,11042
|
|
71
|
-
graphiti_core/utils/maintenance/edge_operations.py,sha256=
|
|
71
|
+
graphiti_core/utils/maintenance/edge_operations.py,sha256=rfFsqigWXNcUGKu1l1-RdSoFdEeioK78oo4VWOagqgs,20576
|
|
72
72
|
graphiti_core/utils/maintenance/graph_data_operations.py,sha256=42icj3S_ELAJ-NK3jVS_rg_243dmnaZOyUitJj_uJ-M,6085
|
|
73
|
-
graphiti_core/utils/maintenance/node_operations.py,sha256=
|
|
73
|
+
graphiti_core/utils/maintenance/node_operations.py,sha256=xSeRK8cdit9GT9ZKNGpawg01Wcu1W3FsBH9moFH_mao,13423
|
|
74
74
|
graphiti_core/utils/maintenance/temporal_operations.py,sha256=IIaVtShpVkOYe6haxz3a1x3v54-MzaEXG8VsxFUNeoY,3582
|
|
75
75
|
graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
76
|
graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=4eVgxLWY6Q8k9cRJ5pW59IYF--U4nXZsZIGOVb_yHfQ,1285
|
|
77
|
-
graphiti_core-0.21.
|
|
78
|
-
graphiti_core-0.21.
|
|
79
|
-
graphiti_core-0.21.
|
|
80
|
-
graphiti_core-0.21.
|
|
77
|
+
graphiti_core-0.21.0rc6.dist-info/METADATA,sha256=55pEDr5ujjIjMUKQTqbJ_YRvCSAuUi41ejVjYXsQiSA,26933
|
|
78
|
+
graphiti_core-0.21.0rc6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
79
|
+
graphiti_core-0.21.0rc6.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
|
|
80
|
+
graphiti_core-0.21.0rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|