The invention relates to the technical field of voice
semantics, and discloses a cue word determination method and device based on compression and rearrangement, equipment and a medium, and the method comprises the steps: carrying out semantic analysis and blocking
processing on an original cue text, and generating an original semantic unit; calculating a correlation
score based on the task description information; distributing a
text compression ratio according to the correlation
score; and rearranging the target compressed semantic units to generate a target prompt word sequence. Through the above mode, redundant information is eliminated through intelligent
compression ratio distribution and fine-grained semantic compression based on correlation scores, so that the length of the input sequence is greatly reduced. The position weighting function and the correlation
score are introduced to perform sequence rearrangement on the semantic unit, the calculation complexity during large
language model reasoning is reduced, the method can be applied to the fields of financial science and technology,
medical treatment, health, old-age care and the like, and the efficiency of compressing redundant information and generating cue words by an intelligent interaction
system is improved.