The invention discloses a
code review method and device, a medium and a product, relates to the technical field of
code review and large models, and can be applied to the field of financial science and technology. The method comprises the following steps: constructing a first cue word according to a grammar
verification instruction, a to-be-reviewed code and coding specification information, and inputting the first cue word into a
large model to obtain a first review result; constructing a second cue word according to the logic
verification instruction, the to-be-reviewed code and the context information, and inputting the second cue word into the
large model to obtain a second review result comprising a logic
vulnerability description and a second modification suggestion; according to the
business logic generation instruction, the to-be-reviewed code, the logic
vulnerability description and the second modification suggestion, constructing a third cue word to input the
large model to obtain
business logic; constructing a fourth cue word according to the code reconstruction instruction, the
business logic and the coding specification information, and inputting the fourth cue word into the large model to obtain a third review result; and obtaining a target review result according to the first review result, the second review result and the third review result. Therefore, the
code review efficiency is improved.