The invention relates to the technical field of intelligent recommendation, and discloses a
hybrid retrieval RAG-based resource recommendation method and
system, and the method comprises the steps: collecting resource text data, and constructing a vector
library and a tag
library; expanding the user question based on the
language model to obtain a plurality of semantic extension questions; performing intention recognition, judging whether the user question is a resource recommendation question, and if yes, determining a target classification type; screening the data according to the field definition in the tag
library to obtain a candidate knowledge fragment set; obtaining candidate vectors, mapping the user question and the semantic extension question into query vectors, calculating the similarity between the query vectors and each candidate vector, and selecting knowledge supplement content; and performing resource splicing on all the knowledge supplement contents to generate resource recommendation answers. According to the method, a structured
label screening mechanism and a
semantic vector fine arrangement mechanism are fused, and the problems of recall redundancy, matching deviation and the like caused by the fact that an existing RAG
system only depends on
semantic similarity retrieval are solved.