The invention discloses a
knowledge graph-based large
language model intelligent teaching aid question-answering
system and an implementation method thereof. The
knowledge graph-based large
language model intelligent teaching aid question-answering
system comprises a
knowledge base module, a question-answering module and a graph
visualization module. And the
knowledge base module divides the subject resources into documents to be stored as a local
knowledge base of a large
language model, and performs related vector base construction for the local knowledge base, so that subsequent retrieval enhancement generation tasks are facilitated. The question and answer module converts user questions into embedded vectors, retrieves most relevant documents in a local knowledge base through
semantic similarity to serve as context filling of a large language model, and through prompt word
engineering construction, the large language model generation effect is enhanced, the
professional degree is enhanced, and the illusion problem is reduced. And the graph
visualization module returns the context generated by interaction between the user and the large language model to the large language model again, knowledge nodes in the context are extracted through prompt word
engineering, so that a context
knowledge graph is constructed and visually presented to the user, an inquiry node and an inquiry relationship are set for interaction, and the interaction experience of the user is improved. According to the method, the knowledge graph and the big language
model application are combined and landing in the education field, the
text generation and semantic understanding ability of the big language model and knowledge graph
visualization are utilized, the question and answer enthusiasm of the user is enhanced, and the learning effect of the user is improved. Meanwhile, a novel man-
machine collaborative normal form is provided for an education mode, and a new insight is provided for the technical field of education.