The invention belongs to the technical field of
artificial intelligence, and relates to a multi-agent-based
knowledge graph automatic construction and query method and
system. The method comprises the following steps: performing entity identification on an input document to obtain an entity set; determining a theme of the input document, and obtaining a
seed entity according to the association strength between each entity in the entity set and the theme; extracting a relationship between seed entities based on a layered strategy
label system; the seed entities and the extracted relations form candidate knowledge triples, and
verification of different dimensions is carried out on the candidate knowledge triples through multi-agent cooperation; storing the knowledge triples passing the
verification into a
knowledge base to form a
knowledge graph; and querying by using the
knowledge graph to obtain answers to the questions. According to the method, the knowledge can be organized into a traceable logic chain, the
interpretability and reasoning capability of the knowledge graph are improved, the consistency and reliability of the stored knowledge can be improved, and the timeliness maintenance capability and query accuracy of the
knowledge base can be improved.