mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
Enhance knowledge management in CrewAI
- Added `KnowledgeConfig` class to configure knowledge retrieval parameters such as `limit` and `score_threshold`. - Updated `Agent` and `Crew` classes to utilize the new knowledge configuration for querying knowledge sources. - Enhanced documentation to clarify the addition of knowledge sources at both agent and crew levels. - Introduced new tips in documentation to guide users on knowledge source management and configuration.
This commit is contained in:
6
src/crewai/knowledge/knowledge_config.py
Normal file
6
src/crewai/knowledge/knowledge_config.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class KnowledgeConfig(BaseModel):
|
||||
limit: int = 3
|
||||
score_threshold: float = 0.35
|
||||
Reference in New Issue
Block a user