The invention discloses a large
language model-based PLM
system code generation method, which is characterized by comprising the following steps of: analyzing PLM
system requirements, including requirement entry embedding, requirement entry text splitting and requirement entry vector
database construction; constructing a
product demand model unit based on the PLM
system demand; constructing a
code generation platform based on the large
language model; and describing the product through the
product demand model unit, and inputting the
product description into the
code generation platform. On the basis of entries and modularization of product demands, a
product demand model unit is constructed, functions, structures and behaviors of products are described by using a demand model, then a code generation platform is constructed based on a large
language model, and finally codes are automatically generated through the large language model, so that modularization,
multiplexing and integration of the products are driven by the demand model.
Test case generation and code testing and perfection are achieved in an intelligent cooperation mode, main work of research and development personnel is converted into
demand analysis and
decomposition, demand model construction and automatic code generation auditing from coding implementation, and finally code quality and development efficiency are improved.