Methods and apparatuses for training prompt injection detection model, storage media, and electronic devices
AssigneeAnt Group Co., Ltd.
InventorsYan LIU, Haiqin WENG
Life of this patent
Estimating the term…
Loading patent…
AssigneeAnt Group Co., Ltd.
InventorsYan LIU, Haiqin WENG
Estimating the term…
Implementations of this specification disclose methods and apparatuses for training a prompt injection detection model. In an implementation, a method comprises obtaining word feature information corresponding to a prompt training sample, obtaining account feature information based on an account attribute of a user corresponding to the prompt training sample, obtaining dialog feature information based on a historical dialog record of the user for a large language model, and training the prompt injection detection model based on the account feature information, the dialog feature information, and the word feature information, to obtain a trained prompt injection detection model.
A method for training a prompt injection detection model, comprising:
An apparatus for training a prompt injection detection model, comprising:
A non-transitory, computer-readable medium storing one or more instructions executable by at least one processor to perform operations comprising:
Dependencies are inferred from the claim text.