The invention discloses a
code review method,
system and device, a storage medium and a program product, and the method comprises the steps: cleaning a to-be-reviewed
code snippet, and obtaining an incremental
code snippet and position information; vectorizing the incremental code snippets;
semantic query is conducted on the vectorized incremental
code snippet data based on an ES
database according to the cosine law, development rules of similar
semantics are obtained and ranked from high to low according to similarity values, and a preset number of first several snippets are obtained; recombining cue words, wherein the recombining cue words comprise incremental code snippets and a preset number of development rules; and sending the recombined cue word to a general generative
large model to obtain an examination suggestion. The code snippets to be examined are pushed to the gilab warehouse by a developer, and are cleaned by the gilab warehouse through
webhook triggering. According to the review method, the whole process is automatic, the review efficiency is high, review can be conducted according to the development rules in the team,
knowledge sharing is achieved, the review result is objective, and the problem that the text exceeds the upper limit is avoided.