The KnowledgeAcquirer
class is responsible for enriching and updating the knowledge graph with validated information from various knowledge sources.
KnowledgeAcquirer
class uses an agent to interact with defined knowledge sources, acquire new information, and update the knowledge graph.
__init__(self, graph: KnowledgeGraph, ontology: KnowledgeOntology, knowledge_sources_config_file: str)
KnowledgeAcquirer
class.
graph
(KnowledgeGraph): The knowledge graph to be updated.ontology
(KnowledgeOntology): The ontology that defines the structure of the knowledge graph.knowledge_sources_config_file
(str): The path to the YAML file that configures the knowledge sources.disable_exa
(bool): If True
, the knowledge base will not use Exa search for knowledge acquisition. Defaults to False
.acquire(self, query: str)
query
(str): The query to guide the knowledge acquisition process.