Skip to content

Commit e9f663a

Browse files
Wang-Daojiyuan.wang
andauthored
Feat/fix explicit threshold (#495)
* fix explicit pref threshold * modify 2.0 * change theeshold --------- Co-authored-by: yuan.wang <[email protected]>
1 parent e8de395 commit e9f663a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/memories/textual/prefer_text_memory/retrievers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def retrieve(
136136

137137
# filter explicit mem by score bigger than threshold
138138
explicit_prefs_mem = [
139-
item for item in explicit_prefs_mem if explicit_id_scores.get(item.id, 0) >= 0.2
139+
item for item in explicit_prefs_mem if explicit_id_scores.get(item.id, 0) >= 0.0
140140
]
141141

142142
return explicit_prefs_mem + implicit_prefs_mem

0 commit comments

Comments
 (0)