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

@@ -210,7 +210,6 @@ async def edge_search(
210
210
  query_vector,
211
211
  search_result_uuids_and_vectors,
212
212
  config.mmr_lambda,
213
- min_score=reranker_min_score,
214
213
  )
215
214
  elif config.reranker == EdgeReranker.cross_encoder:
216
215
  search_result_uuids = [[edge.uuid for edge in result] for result in search_results]
@@ -310,7 +309,6 @@ async def node_search(
310
309
  query_vector,
311
310
  search_result_uuids_and_vectors,
312
311
  config.mmr_lambda,
313
- min_score=reranker_min_score,
314
312
  )
315
313
  elif config.reranker == NodeReranker.cross_encoder:
316
314
  # use rrf as a preliminary reranker
@@ -437,7 +435,6 @@ async def community_search(
437
435
  query_vector,
438
436
  search_result_uuids_and_vectors,
439
437
  config.mmr_lambda,
440
- min_score=reranker_min_score,
441
438
  )
442
439
  elif config.reranker == CommunityReranker.cross_encoder:
443
440
  summary_to_uuid_map = {
@@ -230,8 +230,8 @@ async def edge_similarity_search(
230
230
 
231
231
  query: LiteralString = (
232
232
  """
233
- MATCH (n:Entity)-[r:RELATES_TO]->(m:Entity)
234
- """
233
+ MATCH (n:Entity)-[r:RELATES_TO]->(m:Entity)
234
+ """
235
235
  + group_filter_query
236
236
  + filter_query
237
237
  + """\nWITH DISTINCT r, vector.similarity.cosine(r.fact_embedding, $search_vector) AS score
@@ -852,7 +852,6 @@ def maximal_marginal_relevance(
852
852
  query_vector: list[float],
853
853
  candidates: list[tuple[str, list[float]]],
854
854
  mmr_lambda: float = DEFAULT_MMR_LAMBDA,
855
- min_score: float = 0,
856
855
  ):
857
856
  candidates_with_mmr: list[tuple[str, float]] = []
858
857
  for candidate in candidates:
@@ -862,6 +861,4 @@ def maximal_marginal_relevance(
862
861
 
863
862
  candidates_with_mmr.sort(reverse=True, key=lambda c: c[1])
864
863
 
865
- return list(
866
- set([candidate[0] for candidate in candidates_with_mmr if candidate[1] >= min_score])
867
- )
864
+ return list(set([candidate[0] for candidate in candidates_with_mmr]))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: graphiti-core
3
- Version: 0.10.2
3
+ Version: 0.10.3
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -42,12 +42,12 @@ graphiti_core/prompts/prompt_helpers.py,sha256=-9TABwIcIQUVHcNANx6wIZd-FT2DgYKyG
42
42
  graphiti_core/prompts/summarize_nodes.py,sha256=CDXeWCbv34BcHn6I9lkYN-YqQv98bSt0cOZMnVho2Lk,4146
43
43
  graphiti_core/py.typed,sha256=vlmmzQOt7bmeQl9L3XJP4W6Ry0iiELepnOrinKz5KQg,79
44
44
  graphiti_core/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
- graphiti_core/search/search.py,sha256=3D460AUKNn6llVkTghpautP925VDKwaQXXutntZTvRg,15745
45
+ graphiti_core/search/search.py,sha256=zI_KVSyu13zdiT0OyIYhownXJMTzQJSXqyCYt4o07Hk,15619
46
46
  graphiti_core/search/search_config.py,sha256=VvKg6AB_RPhoe56DBBXHRBXHThAVJ_OLFCyq_yKof-A,3765
47
47
  graphiti_core/search/search_config_recipes.py,sha256=4GquRphHhJlpXQhAZOySYnCzBWYoTwxlJj44eTOavZQ,7443
48
48
  graphiti_core/search/search_filters.py,sha256=JkP7NbM4Dor27dne5vAuxbJic12dIJDtWJxNqmVuRec,5884
49
49
  graphiti_core/search/search_helpers.py,sha256=G5Ceaq5Pfgx0Weelqgeylp_pUHwiBnINaUYsDbURJbE,2636
50
- graphiti_core/search/search_utils.py,sha256=_cX57B4azdeqHGpZidRj8t5jLFWMb1cOrRW95AKdlqw,27431
50
+ graphiti_core/search/search_utils.py,sha256=rravGcYaWzAYMyeNw8jUztpND4jr7k9M_1H06KJiig4,27370
51
51
  graphiti_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  graphiti_core/utils/bulk_utils.py,sha256=P4LKO46Yle4tBdNcQ3hDHcSQFaR8UBLfoL-z1M2Wua0,14690
53
53
  graphiti_core/utils/datetime_utils.py,sha256=Ti-2tnrDFRzBsbfblzsHybsM3jaDLP4-VT2t0VhpIzU,1357
@@ -59,7 +59,7 @@ graphiti_core/utils/maintenance/node_operations.py,sha256=7TLBBJ5m-3_UK53_UNm0hQ
59
59
  graphiti_core/utils/maintenance/temporal_operations.py,sha256=RdNtubCyYhOVrvcOIq2WppHls1Q-BEjtsN8r38l-Rtc,3691
60
60
  graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=QJX5cG0GSSNF_Mm_yrldr69wjVAbN_MxLhOSznz85Hk,1279
62
- graphiti_core-0.10.2.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
63
- graphiti_core-0.10.2.dist-info/METADATA,sha256=TDLWSn0xZGDl8QKnWqaw9tw_aKRRGTNLqPECCSLb-j8,14659
64
- graphiti_core-0.10.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
65
- graphiti_core-0.10.2.dist-info/RECORD,,
62
+ graphiti_core-0.10.3.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
63
+ graphiti_core-0.10.3.dist-info/METADATA,sha256=3tU3LJE6tj6tNi8WvIe32iKCA3QjFjzH7BPSELnu70Y,14659
64
+ graphiti_core-0.10.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
65
+ graphiti_core-0.10.3.dist-info/RECORD,,