The invention belongs to the crossing field of
artificial intelligence and
software engineering, and particularly relates to an automatic
engineering-level code iteration generation method and
system. The method comprises the following steps: acquiring an iteration demand document, an
engineering original code and engineering demand document multi-source input, analyzing the engineering original code, constructing a
knowledge graph, associating engineering business elements, analyzing the engineering demand document, outputting a structured demand
combing result in combination with the
knowledge graph, and defining a function boundary and an implementation path. Then integrating an iteration demand document to generate and correct a
source code technical document to form an engineering document, performing training optimization, finally generating an initial code by a
large model, forming a final code through auditing and debugging, and feeding back data to the model for training, so as to realize full-process
automation from demand input to code output. Therefore, manual intervention is greatly reduced, the development efficiency is improved, and the iteration period is shortened.