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 <joao@crewai.com>
This commit is contained in:
Devin AI
2025-03-04 04:16:44 +00:00
parent 978d3a19c6
commit 121c3717b9

View File

@@ -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: