The invention provides an answer enhancement method and device based on an RAG technology, and the method comprises the steps: recognizing an entity from a text block in a
knowledge base construction stage, linking the entity to a standard entity in a
knowledge graph, and generating a general
knowledge graph; in the RAG technology use stage, an input question of a user is obtained, a query vector is obtained, an associated text block is retrieved through
similarity matching of the query vector in a vector
database, an associated entity is recognized from the associated text block, and other entities related to the associated entity and an entity relationship are retrieved in a general
knowledge graph. Adding the associated text blocks into the input question to supplement the associated text blocks, constructing the supplemented associated text blocks and the input question into cue words of a large
language model, and inputting to obtain an answer of the input question;
user feedback is received in real time, and a personalized knowledge graph of each user is constructed according to the
user feedback and then used for
processing query of the users. According to the invention, more complete, coherent and accurate prompts and answers can be generated.