The invention discloses an underground
engineering on-demand ventilation
knowledge graph retrieval enhancement generation method and
system, and belongs to the technical field of
artificial intelligence, and the method comprises the steps of data cleaning and ontology layer modeling,
knowledge extraction based on prompt
engineering,
knowledge graph data filling and storage, storage of an extraction result in a Neo4j
graph database, and retrieval enhancement generation of an
inference engine. Developing an intelligent question and answer platform, and providing
knowledge graph visualization and interactive question and answer functions; the
system comprises a
data acquisition and preprocessing layer, an ontology and
knowledge extraction layer, a graph storage layer, a semantic index and entity
link layer, a sub-graph arrangement and cue
word generation layer, a generation and reasoning layer and an application and
interaction layer. According to the invention, the acquisition and
management efficiency of underground
engineering ventilation knowledge is improved, the professionality and accuracy of the question-answering
system are enhanced, the interface is friendly, knowledge tracing is supported, and convenient experience is provided for users.