The invention provides a
content generation method, a related device and a
computer program product. The method comprises the following steps: acquiring demand description information of target generated content; performing demand
decomposition on the demand description information through a demand
processing model to obtain material demand information, training an initial demand
processing model according to the difference between the
training material and the sample material to obtain the demand
processing model, and performing demand
decomposition on the sample demand description information by the
training material according to the initial demand processing model to obtain the material demand information; after the
training material demand information is obtained, the sample material is extracted from a material
library based on the training material demand information, and the sample material is used for meeting the material demand of the sample demand description information and is extracted from the material
library; extracting a target material corresponding to the material demand information from a material
library; and generating target generation content based on the target material. Therefore, the demand processing model with stronger
perception ability and stronger
material selection ability for the material library can be utilized to more accurately generate the material demand information for obtaining the materials required by the processing demand of the user according to the content in the material library, so that the model illusion is reduced, and the user experience is improved. Therefore, the task of demand processing and
content generation can be better completed.