Skip to content

Commit 48da7ca

Browse files
authored
feat: set minimun returned memories back to 3 (#280)
* feat: parallel doc process * add memory size config for tree * feat: add reranker Facktory * feat: pass reranker from tree config * feat: add reranker config in mos product * style: modify annotation * feat: slightly adjust similarity threshold for returned memories * test: fix researcher test script * fix: reranker config bug * feat: similarity threshold 0.52->0.30 * feat: min memories:3
1 parent d48a7c8 commit 48da7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/mem_os/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def run_async_in_thread():
693693
thread.start()
694694

695695
def _filter_memories_by_threshold(
696-
self, memories: list[TextualMemoryItem], threshold: float = 0.30, min_num: int = 0
696+
self, memories: list[TextualMemoryItem], threshold: float = 0.30, min_num: int = 3
697697
) -> list[TextualMemoryItem]:
698698
"""
699699
Filter memories by threshold.

0 commit comments

Comments
 (0)