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:
lorenzejay
2025-04-17 15:45:09 -07:00
parent 870dffbb89
commit d93e08a3a6
8 changed files with 149 additions and 21 deletions

View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class KnowledgeConfig(BaseModel):
limit: int = 3
score_threshold: float = 0.35