graphiti-core 0.18.3__py3-none-any.whl → 0.18.4__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/nodes.py +13 -8
- graphiti_core/search/search_filters.py +1 -1
- {graphiti_core-0.18.3.dist-info → graphiti_core-0.18.4.dist-info}/METADATA +3 -3
- {graphiti_core-0.18.3.dist-info → graphiti_core-0.18.4.dist-info}/RECORD +6 -6
- {graphiti_core-0.18.3.dist-info → graphiti_core-0.18.4.dist-info}/WHEEL +0 -0
- {graphiti_core-0.18.3.dist-info → graphiti_core-0.18.4.dist-info}/licenses/LICENSE +0 -0
graphiti_core/nodes.py
CHANGED
|
@@ -118,7 +118,7 @@ class Node(BaseModel, ABC):
|
|
|
118
118
|
return False
|
|
119
119
|
|
|
120
120
|
@classmethod
|
|
121
|
-
async def delete_by_group_id(cls, driver: GraphDriver, group_id: str):
|
|
121
|
+
async def delete_by_group_id(cls, driver: GraphDriver, group_id: str, batch_size: int = 100):
|
|
122
122
|
if driver.provider == GraphProvider.FALKORDB:
|
|
123
123
|
for label in ['Entity', 'Episodic', 'Community']:
|
|
124
124
|
await driver.execute_query(
|
|
@@ -129,13 +129,18 @@ class Node(BaseModel, ABC):
|
|
|
129
129
|
group_id=group_id,
|
|
130
130
|
)
|
|
131
131
|
else:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
async with driver.session() as session:
|
|
133
|
+
await session.run(
|
|
134
|
+
"""
|
|
135
|
+
MATCH (n:Entity|Episodic|Community {group_id: $group_id})
|
|
136
|
+
CALL {
|
|
137
|
+
WITH n
|
|
138
|
+
DETACH DELETE n
|
|
139
|
+
} IN TRANSACTIONS OF $batch_size ROWS
|
|
140
|
+
""",
|
|
141
|
+
group_id=group_id,
|
|
142
|
+
batch_size=batch_size,
|
|
143
|
+
)
|
|
139
144
|
|
|
140
145
|
@classmethod
|
|
141
146
|
async def get_by_uuid(cls, driver: GraphDriver, uuid: str): ...
|
|
@@ -31,7 +31,7 @@ class ComparisonOperator(Enum):
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
class DateFilter(BaseModel):
|
|
34
|
-
date: datetime = Field(description='A datetime to filter on')
|
|
34
|
+
date: datetime | None = Field(description='A datetime to filter on')
|
|
35
35
|
comparison_operator: ComparisonOperator = Field(
|
|
36
36
|
description='Comparison operator for date filter'
|
|
37
37
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: graphiti-core
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.4
|
|
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
|
|
@@ -369,7 +369,7 @@ graphiti = Graphiti(
|
|
|
369
369
|
"neo4j",
|
|
370
370
|
"password",
|
|
371
371
|
llm_client=OpenAIClient(
|
|
372
|
-
|
|
372
|
+
config=azure_llm_config,
|
|
373
373
|
client=llm_client_azure
|
|
374
374
|
),
|
|
375
375
|
embedder=OpenAIEmbedder(
|
|
@@ -379,7 +379,7 @@ graphiti = Graphiti(
|
|
|
379
379
|
client=embedding_client_azure
|
|
380
380
|
),
|
|
381
381
|
cross_encoder=OpenAIRerankerClient(
|
|
382
|
-
|
|
382
|
+
config=LLMConfig(
|
|
383
383
|
model=azure_llm_config.small_model # Use small model for reranking
|
|
384
384
|
),
|
|
385
385
|
client=llm_client_azure
|
|
@@ -5,7 +5,7 @@ graphiti_core/graph_queries.py,sha256=gXQvspJHpM5LRJ5HBJgr0Zw-AhHkqweCoq06wfyZ_b
|
|
|
5
5
|
graphiti_core/graphiti.py,sha256=DWp9b3r5mj64ZZz0OqsCTpOt9ZspQTe6Sxib5SlQq8A,40371
|
|
6
6
|
graphiti_core/graphiti_types.py,sha256=rL-9bvnLobunJfXU4hkD6mAj14pofKp_wq8QsFDZwDU,1035
|
|
7
7
|
graphiti_core/helpers.py,sha256=oKcOQE_bvsdhBpPr1Ia2tylBq1svj3X1oBMSR7qdo00,5331
|
|
8
|
-
graphiti_core/nodes.py,sha256
|
|
8
|
+
graphiti_core/nodes.py,sha256=7K5fiEG8iTgB0rqk_IcC9K--5ycTwmvSvWEwZU1E_zU,18123
|
|
9
9
|
graphiti_core/py.typed,sha256=vlmmzQOt7bmeQl9L3XJP4W6Ry0iiELepnOrinKz5KQg,79
|
|
10
10
|
graphiti_core/cross_encoder/__init__.py,sha256=hry59vz21x-AtGZ0MJ7ugw0HTwJkXiddpp_Yqnwsen0,723
|
|
11
11
|
graphiti_core/cross_encoder/bge_reranker_client.py,sha256=y3TfFxZh0Yvj6HUShmfUm6MC7OPXwWUlv1Qe5HF3S3I,1797
|
|
@@ -55,7 +55,7 @@ graphiti_core/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
55
55
|
graphiti_core/search/search.py,sha256=u-kTmSu3VlRHYlQhuYsbwDQ-AKKCp3BZ9JZNRv3ttVY,16720
|
|
56
56
|
graphiti_core/search/search_config.py,sha256=v_rUHsu1yo5OuPfEm21lSuXexQs-o8qYwSSemW2QWhU,4165
|
|
57
57
|
graphiti_core/search/search_config_recipes.py,sha256=4GquRphHhJlpXQhAZOySYnCzBWYoTwxlJj44eTOavZQ,7443
|
|
58
|
-
graphiti_core/search/search_filters.py,sha256=
|
|
58
|
+
graphiti_core/search/search_filters.py,sha256=f7rddW6sPIRRCVoBOS9nrOsjj-6ld03EGEQbTB2lzLg,6390
|
|
59
59
|
graphiti_core/search/search_helpers.py,sha256=G5Ceaq5Pfgx0Weelqgeylp_pUHwiBnINaUYsDbURJbE,2636
|
|
60
60
|
graphiti_core/search/search_utils.py,sha256=D6J93x0ol4Kd_zVo-dX0MRG0BZjLvG-mCdi-vjjDTfE,32104
|
|
61
61
|
graphiti_core/telemetry/__init__.py,sha256=5kALLDlU9bb2v19CdN7qVANsJWyfnL9E60J6FFgzm3o,226
|
|
@@ -71,7 +71,7 @@ graphiti_core/utils/maintenance/node_operations.py,sha256=mNqonVTNLtw0gK7tflhoCF
|
|
|
71
71
|
graphiti_core/utils/maintenance/temporal_operations.py,sha256=mJkw9xLB4W2BsLfC5POr0r-PHWL9SIfNj_l_xu0B5ug,3410
|
|
72
72
|
graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
73
|
graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=4eVgxLWY6Q8k9cRJ5pW59IYF--U4nXZsZIGOVb_yHfQ,1285
|
|
74
|
-
graphiti_core-0.18.
|
|
75
|
-
graphiti_core-0.18.
|
|
76
|
-
graphiti_core-0.18.
|
|
77
|
-
graphiti_core-0.18.
|
|
74
|
+
graphiti_core-0.18.4.dist-info/METADATA,sha256=J4bBucd0Rvm9mTrmYjy3vl1A_9Zy0irQX_F1hHTWPf4,24613
|
|
75
|
+
graphiti_core-0.18.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
76
|
+
graphiti_core-0.18.4.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
|
|
77
|
+
graphiti_core-0.18.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|