The invention discloses an AI (
artificial intelligence) agent construction
system based on
hybrid retrieval and father-child segmentation, which comprises the following steps of: dividing a subclass
knowledge base according to
domain knowledge, performing father-child segmentation
processing, and constructing a hierarchical
semantic network; vectorization embedding and deep semantic reconstruction are carried out on the user
question text; retrieving the reconstructed problem by adopting a mixed
retrieval algorithm combining sparse retrieval and dense retrieval, and forming a high-
score sub-segment set according to a comprehensive
score obtained by dynamic
weight distribution; mapping the sub-segments to the parent segment through a hierarchical
backtracking algorithm, aggregating brother nodes to form an extended candidate set, and generating an associated sub-segment set after duplicate removal and re-retrieval; and finally inputting a large
language model to generate a complete answer. According to the method, the problems of context segmentation, low retrieval accuracy and complicated
knowledge base maintenance of traditional document segments are solved, the answer coverage and accuracy of an intelligent question-answering
system are remarkably improved, and the method is suitable for
knowledge question-answering scenes in the complicated technical fields such as
intelligent network connection automobiles and the like.