The invention belongs to the technical field of
artificial intelligence, and particularly relates to a mixed identifier generation type recommendation method and
system based on local collaborative context, and the method comprises the steps: obtaining a user historical interaction sequence, and carrying out the multi-
granularity clustering of users, and obtaining a group of each user; constructing a static identifier based on the article content, constructing a dynamic identifier in combination with the
user group information and the local interaction sequence, and fusing to generate a mixed identifier of each article; constructing an instruction
fine tuning task, embedding group information into an instruction prompt word, and learning by using a large
language model to generate a mixed identifier of a next article from a historical sequence; and generating a recommendation result based on the optimized large
language model according to the historical sequence of the target user and the group information thereof. According to the method, the local collaborative context is fused through multi-
granularity group
estimation, and the mixed article representation is constructed in combination with static and dynamic identifiers, so that the problems of single user interest modeling and semantic deficiency of article representation are effectively solved, and the accuracy and personalized level of generative recommendation are improved.