The invention relates to the technical field of
artificial intelligence, and discloses a
knowledge base-based question and answer method, device and equipment and a medium, and the method comprises the following steps: obtaining document data and input query in a
knowledge base, and carrying out preprocessing operation on the document data to obtain a preprocessed document set; constructing a text vectorization representation based on the preprocessed document set, generating a vectorization
feature matrix, and analyzing the vectorization
feature matrix through a
language model to obtain a high-dimensional context representation; performing
question answering on the high-dimensional context representation through an initial
question answering assembly line based on the input query, outputting initial answer information, and determining an initial performance
score through a
test query set; and determining an optimization strategy according to the initial performance
score, and optimizing the initial question and answer
assembly line based on the optimization strategy to obtain a target question and answer
assembly line so as to output and obtain target answer information. The method can be applied to financial science and technology or
medical care service program systems, and the accuracy and efficiency of question and answer results can be improved.