The invention discloses a
graph embedding-based medical field retrieval enhancement method, a question-answering
system and equipment, and the method comprises the steps: collecting a question-answering pair
data set in the medical field, and combining questions in the question-answering pair
data set with questions queried by a user to establish a question set; classifying sentences in the question set through a large
language model (LLM), and judging categories of departments corresponding to the sentences; for the problems in the same category, extracting medical entities in the problems through a UIE model, and constructing a problem map; on the basis of the obtained problem graph,
graph embedding of all nodes in the sequence is obtained through random walk and a Word2Vec
algorithm to serve as vector representation of the nodes, and the vector representation is stored in a vector
database; searching N most similar problems from the vector
database, and constructing a search prompt; after the retrieval prompt is acquired, the generator generates a final answer from the retrieval prompt. According to the method, the understanding and reasoning capabilities of the model on user questions are enhanced, and accurate
information retrieval and knowledge enhancement generation in the medical field are better supported.