graphiti-core 0.17.7__py3-none-any.whl → 0.17.9__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.

@@ -169,7 +169,7 @@ async def edge_fulltext_search(
169
169
  get_relationships_query('edge_name_and_fact', db_type=driver.provider)
170
170
  + """
171
171
  YIELD relationship AS rel, score
172
- MATCH (n:Entity)-[r:RELATES_TO]->(m:Entity)
172
+ MATCH (n:Entity)-[r:RELATES_TO {uuid: rel.uuid}]->(m:Entity)
173
173
  WHERE r.group_id IN $group_ids """
174
174
  + filter_query
175
175
  + """
@@ -295,12 +295,12 @@ async def edge_bfs_search(
295
295
 
296
296
  query = (
297
297
  """
298
- UNWIND $bfs_origin_node_uuids AS origin_uuid
299
- MATCH path = (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
300
- UNWIND relationships(path) AS rel
301
- MATCH (n:Entity)-[r:RELATES_TO]-(m:Entity)
302
- WHERE r.uuid = rel.uuid
303
- """
298
+ UNWIND $bfs_origin_node_uuids AS origin_uuid
299
+ MATCH path = (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
300
+ UNWIND relationships(path) AS rel
301
+ MATCH (n:Entity)-[r:RELATES_TO]-(m:Entity)
302
+ WHERE r.uuid = rel.uuid
303
+ """
304
304
  + filter_query
305
305
  + """
306
306
  RETURN DISTINCT
@@ -353,7 +353,7 @@ async def node_fulltext_search(
353
353
  YIELD node AS n, score
354
354
  WITH n, score
355
355
  LIMIT $limit
356
- WHERE n:Entity
356
+ WHERE n:Entity AND n.group_id IN $group_ids
357
357
  """
358
358
  + filter_query
359
359
  + ENTITY_NODE_RETURN
@@ -443,10 +443,10 @@ async def node_bfs_search(
443
443
 
444
444
  query = (
445
445
  """
446
- UNWIND $bfs_origin_node_uuids AS origin_uuid
447
- MATCH (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
448
- WHERE n.group_id = origin.group_id
449
- """
446
+ UNWIND $bfs_origin_node_uuids AS origin_uuid
447
+ MATCH (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
448
+ WHERE n.group_id = origin.group_id
449
+ """
450
450
  + filter_query
451
451
  + ENTITY_NODE_RETURN
452
452
  + """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphiti-core
3
- Version: 0.17.7
3
+ Version: 0.17.9
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
@@ -57,7 +57,7 @@ graphiti_core/search/search_config.py,sha256=VvKg6AB_RPhoe56DBBXHRBXHThAVJ_OLFCy
57
57
  graphiti_core/search/search_config_recipes.py,sha256=4GquRphHhJlpXQhAZOySYnCzBWYoTwxlJj44eTOavZQ,7443
58
58
  graphiti_core/search/search_filters.py,sha256=cxiFkqB-r7QzVMh8nmujECLhzgsbeCpBHUQqDXnCQ3A,6383
59
59
  graphiti_core/search/search_helpers.py,sha256=G5Ceaq5Pfgx0Weelqgeylp_pUHwiBnINaUYsDbURJbE,2636
60
- graphiti_core/search/search_utils.py,sha256=86_2EncBcXhomdP9dZaIWC5InYU_m5QubMLrErLX6dQ,34248
60
+ graphiti_core/search/search_utils.py,sha256=1V3cdh1a8znVlp5Wb58uRECi7xBe37LFdVkmdt-xg-Q,34414
61
61
  graphiti_core/telemetry/__init__.py,sha256=5kALLDlU9bb2v19CdN7qVANsJWyfnL9E60J6FFgzm3o,226
62
62
  graphiti_core/telemetry/telemetry.py,sha256=47LrzOVBCcZxsYPsnSxWFiztHoxYKKxPwyRX0hnbDGc,3230
63
63
  graphiti_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -71,7 +71,7 @@ graphiti_core/utils/maintenance/node_operations.py,sha256=ZnopNRTNdBjBotQ2uQiI7E
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=QJX5cG0GSSNF_Mm_yrldr69wjVAbN_MxLhOSznz85Hk,1279
74
- graphiti_core-0.17.7.dist-info/METADATA,sha256=t2VOfx3ak61jHiNFOM2J_zFoRJqf-DjdgUiIarim9ag,23812
75
- graphiti_core-0.17.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
76
- graphiti_core-0.17.7.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
77
- graphiti_core-0.17.7.dist-info/RECORD,,
74
+ graphiti_core-0.17.9.dist-info/METADATA,sha256=gW57_drlbb23gz2xdvH_jPayfTLkkjSxOGvURRGyx4g,23812
75
+ graphiti_core-0.17.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
76
+ graphiti_core-0.17.9.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
77
+ graphiti_core-0.17.9.dist-info/RECORD,,