The invention discloses a graph retrieval enhanced
text generation method based on a data table
graph database, which comprises four main stages of pre-retrieval, retrieval, post-retrieval and generation: in the pre-retrieval stage, a
user needs a graph construction module to construct the
graph database in advance, and in the
graph database construction process, an index for knowledge query is established; in the retrieval stage, for the small problem of the field, word segmentation is carried out on the small problem through JIEBA word segmentation, and knowledge matching and recommendation are carried out on a word segmentation result by adopting a TF-IDF + minimum editing distance
algorithm; in the post-retrieval stage, the matched and recommended entities are filtered. The invention relates to the technical field of map
processing. According to the graph retrieval enhanced
text generation method based on the data-in-channel graph
library, data can be obtained from the data-in-channel graph
library, more accurate information can be provided for a large
language model, more accurate and credible text content can be generated, and the problem that the large
language model may generate illusion or fact error content is reduced.