The invention provides a training data generation method,
electronic equipment, a storage medium and a program product, and the method comprises the steps: obtaining
domain identification information of a target domain, and generating
system-level prompt information related to the target domain; inputting the
system-level prompt information into the large
language model after alignment training is completed, and driving the model to generate an input
instruction set related to the target domain; based on the input
instruction set, generating a response set semantically related to the input
instruction set, thereby forming a first training
data set; constructing multi-round dialogue training data with semantic coherence and rich context for each instruction-response pair in the first training
data set through a multi-round dialogue extension generation mode; and summarizing the multi-round dialogue training data to construct a second training
data set. The training data generated by the method does not depend on manual prompting
engineering, expert writing or seed instruction presetting, can quickly adapt to
business requirements in different fields, and has excellent universality, mobility and cross-field expansibility.