The invention discloses a
graph database fault query simplification method and device based on a large
language model, and belongs to the technical field of
computer software, and the method comprises the steps: obtaining an original
query statement for triggering the collapse of a
graph database and associated collapse information of the original
query statement, and constructing an iterative control architecture for managing query simplification, execution and
verification processes; inputting the original
query statement and the
crash information into a large
language model, so that the large
language model generates a simplified query statement according to a preset simplified rule set; executing the simplified query statement, and detecting whether the
graph database crashes again; based on execution and detection results, state updating and iterative
loop control are carried out through an iterative control architecture; and when a preset termination condition is met, outputting a minimum query statement for triggering the
crash of the graph
database. According to the method, the manual intervention requirement is remarkably reduced, the
automation degree is high, the simplification efficiency is improved, meanwhile, multiple LLM models and graph
database systems are compatible, and good expandability and adaptability are achieved.