This application relates to a method and
system for managing a large-
scale model corpus
knowledge graph. The method includes: collecting multi-source
natural gas corpora to obtain a clean text set; extracting candidate entities using a large
language model, and iteratively obtaining a
list of valid entities through domain-strong rule validation; constructing relation extraction instructions to drive the
large model to output candidate triples, and obtaining the final triple set through
JSON repair and
differential correction. An ontology hierarchical structure is constructed, mapping entities to triples to generate a
knowledge graph, which is stored using a
hybrid approach of relational databases, graph databases, and vector databases. Based on the graph, the method extracts the time-series and descriptive features of users' daily consumption, outputting user categories through k-shape clustering and fuzzy C-means clustering; performing STL
decomposition on the
time series of each user category, then predicting and reconstructing using a temporal convolutional network to obtain short-term consumption prediction values, which are fed back to the
knowledge graph; and dynamically updating knowledge through vector similarity and ontology constraints when new corpora are added.