The invention discloses a question and answer
system knowledge base shunting method based on a weighted
polling algorithm, and belongs to the technical field of
artificial intelligence retrieval enhancement generation. In order to overcome the defects of a single
knowledge base architecture of a traditional RAG
system in the aspects of multi-source
knowledge management, gray updating and load balancing, a cluster architecture comprising a main
knowledge base, an auxiliary knowledge base and a test knowledge base is constructed, and intelligent flow distribution is achieved through a flow distribution controller. The
system adopts a multi-
dimensional weight calculation model, fuses a
user role coefficient, a knowledge base state coefficient and a performance coefficient, and dynamically calculates the weight of each knowledge base according to a weight calculation formula; using a weighted
polling algorithm to accurately distribute user requests; and automatically adjusting the weight of the knowledge base in the gray
scale test period. The vector retrieval module converts questions into vectors to retrieve in a target
library, and a result fusion engine resolves multi-
library answer conflicts through weighted voting. After the method is applied, the update
failure rate of the knowledge base is reduced from 25% to 5%, the question and answer accuracy is improved by 22%, and the response speed is improved by 40%.