graphiti-core 0.17.8__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.
- graphiti_core/search/search_utils.py +12 -14
- {graphiti_core-0.17.8.dist-info → graphiti_core-0.17.10.dist-info}/METADATA +1 -1
- {graphiti_core-0.17.8.dist-info → graphiti_core-0.17.10.dist-info}/RECORD +5 -5
- {graphiti_core-0.17.8.dist-info → graphiti_core-0.17.10.dist-info}/WHEEL +0 -0
- {graphiti_core-0.17.8.dist-info → graphiti_core-0.17.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
|
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:
|
|
@@ -169,7 +167,7 @@ async def edge_fulltext_search(
|
|
|
169
167
|
get_relationships_query('edge_name_and_fact', db_type=driver.provider)
|
|
170
168
|
+ """
|
|
171
169
|
YIELD relationship AS rel, score
|
|
172
|
-
MATCH (n:Entity)-[r:RELATES_TO]->(m:Entity)
|
|
170
|
+
MATCH (n:Entity)-[r:RELATES_TO {uuid: rel.uuid}]->(m:Entity)
|
|
173
171
|
WHERE r.group_id IN $group_ids """
|
|
174
172
|
+ filter_query
|
|
175
173
|
+ """
|
|
@@ -295,12 +293,12 @@ async def edge_bfs_search(
|
|
|
295
293
|
|
|
296
294
|
query = (
|
|
297
295
|
"""
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
+ """
|
|
@@ -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
|
|
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.
|
|
75
|
-
graphiti_core-0.17.
|
|
76
|
-
graphiti_core-0.17.
|
|
77
|
-
graphiti_core-0.17.
|
|
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,,
|
|
File without changes
|
|
File without changes
|