The present invention proposes a
knowledge graph fact-checking method enhanced with hint subgraphs, comprising: S1, locating entities of the factual statements to be checked and identifying seed entities; S2, using the seed entities as seed nodes, performing a depth- and width-restricted
heuristic bundle search on the
knowledge graph to construct a local hint subgraph for the factual statements to be checked; S3, inputting the hint subgraph as a structured context into a large
language model to generate a query program composed of three types of restricted functions: SEARCH, MATCH, and VERIFY; S4, executing the query program on the
knowledge graph through an
interpreter and outputting whether the factual statements to be checked are supported by the current knowledge graph. This invention, by introducing a hint subgraph constraint program
generation process, solves the problems of easily fabricating relation names, omitting intermediate entities, and query path mismatches in existing methods, thereby improving the matching degree between the generated program and the
real structure of the knowledge graph.