Skip to main content
Knowledge is a class that manages knowledge bases for AI agents. It provides comprehensive knowledge management capabilities including adding new content to the knowledge base, searching the knowledge base and deleting content from the knowledge base.
ParameterTypeDefaultDescription
nameOptional[str]NoneName of the knowledge base
descriptionOptional[str]NoneDescription of the knowledge base
vector_dbOptional[VectorDb]NoneVector database for storing embeddings
contents_dbOptional[BaseDb]NoneDatabase for storing content metadata
max_resultsint10Maximum number of results to return from searches
readersOptional[Dict[str, Reader]]NoneDictionary of custom readers for processing content