From 121c3717b9475b0e03a03102bcc3da4b6f497b13 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 4 Mar 2025 04:16:44 +0000 Subject: [PATCH] fix: Lower knowledge search score threshold for better recall - Reduce score threshold from 0.35 to 0.25 to include more relevant results - This helps improve knowledge effectiveness while maintaining quality Part of #2269 Co-Authored-By: Joe Moura --- src/crewai/knowledge/storage/knowledge_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/knowledge/storage/knowledge_storage.py b/src/crewai/knowledge/storage/knowledge_storage.py index 72240e2b6..3be131b9e 100644 --- a/src/crewai/knowledge/storage/knowledge_storage.py +++ b/src/crewai/knowledge/storage/knowledge_storage.py @@ -59,7 +59,7 @@ class KnowledgeStorage(BaseKnowledgeStorage): query: List[str], limit: int = 3, filter: Optional[dict] = None, - score_threshold: float = 0.35, + score_threshold: float = 0.25, ) -> List[Dict[str, Any]]: with suppress_logging(): if self.collection: