The invention discloses a sample screening prompt generation method based on knowledge
point graph guidance, and belongs to the field of computer
natural language processing. The method is divided into two stages: in the first stage, knowledge points are extracted and a knowledge
point graph is constructed by analyzing book contents of Common Course Standard Invention, and data are aligned to the graph; in the second stage, input query is mapped to corresponding knowledge points through knowledge point association, samples with the knowledge point overlapping degree being 0 are removed through a sample initial screening model,
deep knowledge semantic features are extracted through a self-attention neural network, an optimal sample is screened out from a
training set in combination with a knowledge point similarity and diversity comprehensive selection model, and the
deep knowledge semantic features are extracted; and inputting a large
language model to generate an answer after combining with the query. According to the method, the context learning performance of a large
language model is remarkably improved, the problem that
sample selection is interfered by surface language characteristics is solved, the knowledge point dimension information is introduced, so that the understanding of the model on tasks is more accurate, the generation illusion is reduced, and experimental
verification is achieved.