The invention discloses a RAG
data acquisition and question and answer generation method and
system based on an
encyclopedia website, and relates to the technical field of
data processing.The method comprises the steps that entry content in the
encyclopedia website is captured, encrypted and stored in a
database, and an index is established; extracting
semantics of the vocabulary entry content to generate a
knowledge graph; obtaining interaction data of the user, and carrying out interaction willingness analysis to identify interaction willingness data of the user for each entry; dynamically updating the
database; and generating content reply according to the
knowledge graph. The method comprises the following steps: capturing entry contents of an
encyclopedia website in real time, combining data cleaning,
encryption and index construction technologies to ensure the security and efficient and timely retrieval of data, constructing a
knowledge graph based on
semantic information of entries, realizing information structuring and
semantic association, and generating personalized reply of a user based on a knowledge graph retrieval and generation technology. According to the overall scheme, the data real-time performance, the
content generation accuracy and the user experience are remarkably improved, and meanwhile data privacy and
system safety are guaranteed.