fix(langchain): search() crashes with TypeError when score is None (#5072)

Co-authored-by: Kartik <kartik.labhshetwar@mem0.ai>
This commit is contained in:
Oleg Ovcharuk
2026-06-11 22:34:06 +05:30
committed by GitHub
co-authored by Kartik
parent 32c8849044
commit b36847622d
4 changed files with 103 additions and 7 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ def score_and_rank(
if mem_id is None:
continue
semantic_score = result.get("score", 0.0)
semantic_score = result.get("score") or 0.0
if semantic_score < threshold:
continue