The invention provides a retrieval enhancement method based on dynamic
hybrid retrieval and LLM reordering, and belongs to the technical field of
artificial intelligence. Constructing
a domain query
feature set, training a
simple linear regression model, and dynamically predicting weights of keyword retrieval and vector retrieval according to user query; through quantile calibration, calculating a weight calibration factor, and adjusting a prediction weight; removing abnormal scores of keyword retrieval and vector retrieval by adopting a truncation normalization method, and generating
score distribution of a unified dimension; and fusing the normalized scores of the query and candidate documents through convex combination, sorting to obtain TopK most relevant documents, calling a DeepSeek model to carry out correlation scoring on the query and candidate documents, and carrying out weighted fusion and resorting with the mixed scores to obtain TopN most relevant documents. According to the method, the problems of limitation of a fixed weight, insufficient query diversity
adaptation and the like in RAG mixed retrieval are effectively solved, and the retrieval precision and stability in a complex query scene are remarkably improved.