The invention discloses a text data question and answer method and
system based on a
large model, and the method comprises the following steps: S1, obtaining a query text inputted by a user, and carrying out the preprocessing; s2, acquiring an intention analysis result; s3, judging whether the user query is a service scene, if not, performing non-service scene
processing, and updating the current scene; s4, extracting a key entity and a relation through Few-shot Learning; s5, constructing a dynamic extensible enhanced
knowledge graph by using the extracted key entities and relationships, and dynamically updating and optimizing the
knowledge graph by using a technology of combining a Transform model and GraphSAGE; s6, converting indexes in the
knowledge graph into numerical vector representation by using an m3e vectorization technology; s7, optimizing
system performance by adopting
reinforcement learning and
Bayesian optimization technologies based on near-end strategy optimization; and S8, generating an answer and
data analysis report based on the user query. The intelligent question-answering
system is realized by combining a large
language model, Few-shot Learning and a knowledge graph technology, and has the advantages of high response efficiency and the like.