mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
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:
@@ -59,7 +59,7 @@ class KnowledgeStorage(BaseKnowledgeStorage):
|
|||||||
query: List[str],
|
query: List[str],
|
||||||
limit: int = 3,
|
limit: int = 3,
|
||||||
filter: Optional[dict] = None,
|
filter: Optional[dict] = None,
|
||||||
score_threshold: float = 0.35,
|
score_threshold: float = 0.25,
|
||||||
) -> List[Dict[str, Any]]:
|
) -> List[Dict[str, Any]]:
|
||||||
with suppress_logging():
|
with suppress_logging():
|
||||||
if self.collection:
|
if self.collection:
|
||||||
|
|||||||
Reference in New Issue
Block a user