The invention provides an automatic long text fine-tuning
instruction set construction method based on a large
language model, which comprises the following steps: acquiring an input text, and segmenting the input text by adopting a recursive character segmentation method to generate a
paragraph set; aiming at the generated
paragraph set, the large
language model generates a question set and an answer set by adopting a self-guidance learning method through a preset question type set and a prompt template according to the task type; and generating an
instruction set based on the generated question set and answer set, evaluating the quality of the
instruction set in multiple dimensions, and optimizing the instruction set according to an
evaluation result to obtain an optimized instruction set. According to the method, the high-quality long text
fine tuning instruction set can be automatically generated, so that the performance of a large
language model is improved, and meanwhile, the challenge of long
context processing is solved. By automatically constructing the long text fine-tuning instruction set, the requirement of
manual annotation is reduced, the cost is reduced, and meanwhile, the efficiency of the fine-tuning process and the long
text processing capacity of the model are improved.