The invention discloses a question retrieval method and device based on a question-answer pair information
library and a medium, and is applied to the field of
artificial intelligence, and the method comprises the following steps: obtaining a user question, and matching the user question through the pre-constructed question-answer pair information
library to determine a matching condition; judging whether the matching condition is that a matched question-answer pair exists or not, and if yes, generating a target
question answer according to a cached answer in a question-answer pair information base; otherwise, matching the questions of the user through a pre-constructed
knowledge base to generate an answer to the target question. Through pre-retrieval of
questions and answers on an information base, similar matching items of historical questions of a user are quickly positioned, direct retrieval of massive knowledge bases is avoided, and the calculation amount is reduced. And for the matched questions, the cached answers are directly called without triggering
knowledge base retrieval and
large model regeneration processes, so that the
system response speed is increased. For unmatched new questions, the accuracy and integrity of answers are ensured through bottom retrieval of the
knowledge base, and the answer failure caused by information base deficiency is avoided.