mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 17:18:29 +00:00
Refactor knowledge configuration parameters in CrewAI
- Renamed `limit` to `results_limit` in `KnowledgeConfig`, `query_knowledge`, and `query` methods for consistency and clarity. - Updated related documentation to reflect the new parameter name, ensuring users understand the configuration options for knowledge retrieval.
This commit is contained in:
@@ -163,7 +163,7 @@ You can configure the knowledge configuration for the crew or agent.
|
||||
```python Code
|
||||
from crewai.knowledge.knowledge_config import KnowledgeConfig
|
||||
|
||||
knowledge_config = KnowledgeConfig(limit=10, score_threshold=0.5)
|
||||
knowledge_config = KnowledgeConfig(results_limit=10, score_threshold=0.5)
|
||||
|
||||
agent = Agent(
|
||||
...
|
||||
@@ -172,7 +172,7 @@ agent = Agent(
|
||||
```
|
||||
|
||||
<Tip>
|
||||
limit: is the number of relevant documents to return. Default is 3.
|
||||
results_limit: is the number of relevant documents to return. Default is 3.
|
||||
score_threshold: is the minimum score for a document to be considered relevant. Default is 0.35.
|
||||
</Tip>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user