Module exposing: KnowledgeConfig
# Source: https://github.com/crewAIInc/crewAI | License: MIT | Copyright 2025 crewAI, Inc
# Provided via justclaw.it.com; keep this notice with the code.
from pydantic import BaseModel, Field
class KnowledgeConfig(BaseModel):
"""Configuration for knowledge retrieval.
Args:
results_limit (int): The number of relevant documents to return.
score_threshold (float): The minimum score for a document to be considered relevant.
"""
results_limit: int = Field(default=5, description="The number of results to return")
score_threshold: float = Field(
default=0.6,
description="The minimum score for a result to be considered relevant",
)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key