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

@@ -62,9 +62,7 @@ MAX_QUERY_LENGTH = 128
62
62
 
63
63
  def fulltext_query(query: str, group_ids: list[str] | None = None, fulltext_syntax: str = ''):
64
64
  group_ids_filter_list = (
65
- [fulltext_syntax + f"group_id:'{lucene_sanitize(g)}'" for g in group_ids]
66
- if group_ids is not None
67
- else []
65
+ [fulltext_syntax + f'group_id:"{g}"' for g in group_ids] if group_ids is not None else []
68
66
  )
69
67
  group_ids_filter = ''
70
68
  for f in group_ids_filter_list:
@@ -295,12 +293,12 @@ async def edge_bfs_search(
295
293
 
296
294
  query = (
297
295
  """
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
- """
296
+ UNWIND $bfs_origin_node_uuids AS origin_uuid
297
+ MATCH path = (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
298
+ UNWIND relationships(path) AS rel
299
+ MATCH (n:Entity)-[r:RELATES_TO]-(m:Entity)
300
+ WHERE r.uuid = rel.uuid
301
+ """
304
302
  + filter_query
305
303
  + """
306
304
  RETURN DISTINCT
@@ -443,10 +441,10 @@ async def node_bfs_search(
443
441
 
444
442
  query = (
445
443
  """
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
- """
444
+ UNWIND $bfs_origin_node_uuids AS origin_uuid
445
+ MATCH (origin:Entity|Episodic {uuid: origin_uuid})-[:RELATES_TO|MENTIONS]->{1,3}(n:Entity)
446
+ WHERE n.group_id = origin.group_id
447
+ """
450
448
  + filter_query
451
449
  + ENTITY_NODE_RETURN
452
450
  + """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphiti-core
3
- Version: 0.17.9
3
+ Version: 0.17.10
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=1V3cdh1a8znVlp5Wb58uRECi7xBe37LFdVkmdt-xg-Q,34414
60
+ graphiti_core/search/search_utils.py,sha256=-EmzUbjy3qxVAkn6V3hIJNWyHkpKiSWz4cVoYw7VnbM,34461
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.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,,
74
+ graphiti_core-0.17.10.dist-info/METADATA,sha256=EFiNjoh3V_rDczmpKgccKJ_tc1nHKZ7XborF4GheWN4,23813
75
+ graphiti_core-0.17.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
76
+ graphiti_core-0.17.10.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
77
+ graphiti_core-0.17.10.dist-info/RECORD,,