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

@@ -341,10 +341,10 @@ async def node_fulltext_search(
341
341
 
342
342
  query = (
343
343
  """
344
- CALL db.index.fulltext.queryNodes("node_name_and_summary", $query, {limit: $limit})
345
- YIELD node AS n, score
346
- WHERE n:Entity
347
- """
344
+ CALL db.index.fulltext.queryNodes("node_name_and_summary", $query, {limit: $limit})
345
+ YIELD node AS n, score
346
+ WHERE n:Entity
347
+ """
348
348
  + filter_query
349
349
  + ENTITY_NODE_RETURN
350
350
  + """
@@ -676,7 +676,7 @@ async def get_relevant_nodes(
676
676
  WHERE score > $min_score
677
677
  WITH node, collect(n)[..$limit] AS top_vector_nodes, collect(n.uuid) AS vector_node_uuids
678
678
 
679
- CALL db.index.fulltext.queryNodes("node_name_and_summary", 'group_id:"' + $group_id + '" AND ' + node.name, {limit: $limit})
679
+ CALL db.index.fulltext.queryNodes("node_name_and_summary", node.fulltext_query, {limit: $limit})
680
680
  YIELD node AS m
681
681
  WHERE m.group_id = $group_id
682
682
  WITH node, top_vector_nodes, vector_node_uuids, collect(m) AS fulltext_nodes
@@ -705,13 +705,20 @@ async def get_relevant_nodes(
705
705
  """
706
706
  )
707
707
 
708
+ query_nodes = [
709
+ {
710
+ 'uuid': node.uuid,
711
+ 'name': node.name,
712
+ 'name_embedding': node.name_embedding,
713
+ 'fulltext_query': fulltext_query(node.name, [node.group_id]),
714
+ }
715
+ for node in nodes
716
+ ]
717
+
708
718
  results, _, _ = await driver.execute_query(
709
719
  query,
710
720
  query_params,
711
- nodes=[
712
- {'uuid': node.uuid, 'name': node.name, 'name_embedding': node.name_embedding}
713
- for node in nodes
714
- ],
721
+ nodes=query_nodes,
715
722
  group_id=group_id,
716
723
  limit=limit,
717
724
  min_score=min_score,
@@ -102,6 +102,7 @@ async def extract_nodes(
102
102
  'previous_episodes': [ep.content for ep in previous_episodes],
103
103
  'custom_prompt': custom_prompt,
104
104
  'entity_types': entity_types_context,
105
+ 'source_description': episode.source_description,
105
106
  }
106
107
 
107
108
  while entities_missed and reflexion_iterations <= MAX_REFLEXION_ITERATIONS:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: graphiti-core
3
- Version: 0.11.0
3
+ Version: 0.11.2
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -48,7 +48,7 @@ graphiti_core/search/search_config.py,sha256=VvKg6AB_RPhoe56DBBXHRBXHThAVJ_OLFCy
48
48
  graphiti_core/search/search_config_recipes.py,sha256=4GquRphHhJlpXQhAZOySYnCzBWYoTwxlJj44eTOavZQ,7443
49
49
  graphiti_core/search/search_filters.py,sha256=JkP7NbM4Dor27dne5vAuxbJic12dIJDtWJxNqmVuRec,5884
50
50
  graphiti_core/search/search_helpers.py,sha256=G5Ceaq5Pfgx0Weelqgeylp_pUHwiBnINaUYsDbURJbE,2636
51
- graphiti_core/search/search_utils.py,sha256=94WN65cFn9IeMcYqx_BERs3YPVmFfHB2tAxQyQjgeAI,30955
51
+ graphiti_core/search/search_utils.py,sha256=h9pgLwOpFe6rugFNXITxvDQ0qhx6M6xgQ4KW0NLBqes,31099
52
52
  graphiti_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  graphiti_core/utils/bulk_utils.py,sha256=Z1QzpcopVHxttRmVeYdVDHRjjY7z0cW1wwHB-0yQ6Ng,14820
54
54
  graphiti_core/utils/datetime_utils.py,sha256=Ti-2tnrDFRzBsbfblzsHybsM3jaDLP4-VT2t0VhpIzU,1357
@@ -56,11 +56,11 @@ graphiti_core/utils/maintenance/__init__.py,sha256=vW4H1KyapTl-OOz578uZABYcpND4w
56
56
  graphiti_core/utils/maintenance/community_operations.py,sha256=aLMfQ5l8PkNJY3ugqV6UOMG74aI6L9Zz2zFiLBsnKvM,10155
57
57
  graphiti_core/utils/maintenance/edge_operations.py,sha256=3rstKAv85Hshv3jgbUSU8OBTFmYn4BQYA9bd5ZfDURU,14319
58
58
  graphiti_core/utils/maintenance/graph_data_operations.py,sha256=BIJKc8tbvU4IjWxLgeotw57b1eE3Iw8YtV74j6eo4RQ,7493
59
- graphiti_core/utils/maintenance/node_operations.py,sha256=g2HytAgTcI6-EN9i-GnTtpdm6eYr83p33WUVdmfclss,14909
59
+ graphiti_core/utils/maintenance/node_operations.py,sha256=lhNEobEbEX0RrcqNUt9OpakigXNzHpEbf6EG4vQRB0A,14967
60
60
  graphiti_core/utils/maintenance/temporal_operations.py,sha256=DBCmKZscR6_GxSv0wBK5PNHoyJfuF4RrrFd6yr02x5s,3311
61
61
  graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=QJX5cG0GSSNF_Mm_yrldr69wjVAbN_MxLhOSznz85Hk,1279
63
- graphiti_core-0.11.0.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
64
- graphiti_core-0.11.0.dist-info/METADATA,sha256=K5UkaIT3XKjZqfjP5p9i0a4iQZThf--4Y8FjWtUCv4o,15348
65
- graphiti_core-0.11.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
- graphiti_core-0.11.0.dist-info/RECORD,,
63
+ graphiti_core-0.11.2.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
64
+ graphiti_core-0.11.2.dist-info/METADATA,sha256=93_6qBvl0gAPqmBa9jBsHZwX2emFq4CYW8d--WS1pLY,15348
65
+ graphiti_core-0.11.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
+ graphiti_core-0.11.2.dist-info/RECORD,,