This specification provides a task
processing method, program product, device, and storage medium. After obtaining a task requirement in
natural language input from a user, a task planning model can be used to generate at least one analysis strategy based on the task requirement, the
data type of the data required for the
data analysis task, and a pre-built
knowledge graph, and then determine the
target analysis strategy. Each analysis strategy includes an analysis path and multiple sub-tasks obtained by decomposing the
data analysis task based on the
data analysis methods represented by each node in the analysis path. Then, a
code generation model can be used to automatically generate and execute the task code for each sub-task in the
target analysis strategy, and a final analysis report is obtained based on the
processing results of each sub-task. By guiding the task planning model to accurately decompose the data analysis task under the constraints of the
knowledge graph, the accuracy and reliability of the
processing results can be improved.