graphiti-core 0.20.2__py3-none-any.whl → 0.20.3__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 +20 -3
- {graphiti_core-0.20.2.dist-info → graphiti_core-0.20.3.dist-info}/METADATA +1 -1
- {graphiti_core-0.20.2.dist-info → graphiti_core-0.20.3.dist-info}/RECORD +5 -5
- {graphiti_core-0.20.2.dist-info → graphiti_core-0.20.3.dist-info}/WHEEL +0 -0
- {graphiti_core-0.20.2.dist-info → graphiti_core-0.20.3.dist-info}/licenses/LICENSE +0 -0
graphiti_core/graphiti.py
CHANGED
|
@@ -113,6 +113,15 @@ class AddEpisodeResults(BaseModel):
|
|
|
113
113
|
community_edges: list[CommunityEdge]
|
|
114
114
|
|
|
115
115
|
|
|
116
|
+
class AddBulkEpisodeResults(BaseModel):
|
|
117
|
+
episodes: list[EpisodicNode]
|
|
118
|
+
episodic_edges: list[EpisodicEdge]
|
|
119
|
+
nodes: list[EntityNode]
|
|
120
|
+
edges: list[EntityEdge]
|
|
121
|
+
communities: list[CommunityNode]
|
|
122
|
+
community_edges: list[CommunityEdge]
|
|
123
|
+
|
|
124
|
+
|
|
116
125
|
class Graphiti:
|
|
117
126
|
def __init__(
|
|
118
127
|
self,
|
|
@@ -572,7 +581,6 @@ class Graphiti:
|
|
|
572
581
|
except Exception as e:
|
|
573
582
|
raise e
|
|
574
583
|
|
|
575
|
-
##### EXPERIMENTAL #####
|
|
576
584
|
async def add_episode_bulk(
|
|
577
585
|
self,
|
|
578
586
|
bulk_episodes: list[RawEpisode],
|
|
@@ -581,7 +589,7 @@ class Graphiti:
|
|
|
581
589
|
excluded_entity_types: list[str] | None = None,
|
|
582
590
|
edge_types: dict[str, type[BaseModel]] | None = None,
|
|
583
591
|
edge_type_map: dict[tuple[str, str], list[str]] | None = None,
|
|
584
|
-
):
|
|
592
|
+
) -> AddBulkEpisodeResults:
|
|
585
593
|
"""
|
|
586
594
|
Process multiple episodes in bulk and update the graph.
|
|
587
595
|
|
|
@@ -597,7 +605,7 @@ class Graphiti:
|
|
|
597
605
|
|
|
598
606
|
Returns
|
|
599
607
|
-------
|
|
600
|
-
|
|
608
|
+
AddBulkEpisodeResults
|
|
601
609
|
|
|
602
610
|
Notes
|
|
603
611
|
-----
|
|
@@ -849,6 +857,15 @@ class Graphiti:
|
|
|
849
857
|
end = time()
|
|
850
858
|
logger.info(f'Completed add_episode_bulk in {(end - start) * 1000} ms')
|
|
851
859
|
|
|
860
|
+
return AddBulkEpisodeResults(
|
|
861
|
+
episodes=episodes,
|
|
862
|
+
episodic_edges=resolved_episodic_edges,
|
|
863
|
+
nodes=final_hydrated_nodes,
|
|
864
|
+
edges=resolved_edges + invalidated_edges,
|
|
865
|
+
communities=[],
|
|
866
|
+
community_edges=[],
|
|
867
|
+
)
|
|
868
|
+
|
|
852
869
|
except Exception as e:
|
|
853
870
|
raise e
|
|
854
871
|
|
|
@@ -2,7 +2,7 @@ graphiti_core/__init__.py,sha256=e5SWFkRiaUwfprYIeIgVIh7JDedNiloZvd3roU-0aDY,55
|
|
|
2
2
|
graphiti_core/edges.py,sha256=O-WqtqR9w6ZO5nbi4VRveXVrinfTcZmDJ6PcjudDAsY,18821
|
|
3
3
|
graphiti_core/errors.py,sha256=cH_v9TPgEPeQE6GFOHIg5TvejpUCBddGarMY2Whxbwc,2707
|
|
4
4
|
graphiti_core/graph_queries.py,sha256=9DWMiFTB-OmodMDaOws0lwzgiD7EUDNO7mAFJ1nxusE,6624
|
|
5
|
-
graphiti_core/graphiti.py,sha256=
|
|
5
|
+
graphiti_core/graphiti.py,sha256=yLDI8l95DwNe6NtggwsqLKG92ShkIh3JAIXzNYOp2J8,41413
|
|
6
6
|
graphiti_core/graphiti_types.py,sha256=C_p2XwScQlCzo7ets097TrSLs9ATxPZQ4WCsxDS7QHc,1066
|
|
7
7
|
graphiti_core/helpers.py,sha256=6q_wpiOW3_j28EfZ7FgWW7Hl5pONj_5zvVXZGW9FxTU,5175
|
|
8
8
|
graphiti_core/nodes.py,sha256=sJGCaEWroCL7rL7rUPqFw_NjTY-aNdc44fFOsvKZpdw,26399
|
|
@@ -74,7 +74,7 @@ graphiti_core/utils/maintenance/node_operations.py,sha256=r9ilkA01eq1z-nF8P_s1EX
|
|
|
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.20.
|
|
78
|
-
graphiti_core-0.20.
|
|
79
|
-
graphiti_core-0.20.
|
|
80
|
-
graphiti_core-0.20.
|
|
77
|
+
graphiti_core-0.20.3.dist-info/METADATA,sha256=fDuytcZeJ0ypHOmoIgSBhUxsqleAKnz4Yf5AkBcmJEE,26773
|
|
78
|
+
graphiti_core-0.20.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
79
|
+
graphiti_core-0.20.3.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
|
|
80
|
+
graphiti_core-0.20.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|