Syntax
Arguments
input: A VARCHAR expression containing the original text to process.categories: A nonempty constantARRAY<VARCHAR>containing the categories to redact, such asname,email, andphone.
provider and model, see Common calling rules.
Return value
Returns a nullable VARCHAR. The database asks the model to replace each match with its uppercase category name in square brackets, such as[EMAIL] for an email address. If it finds no matches, the model should return the original text.
The original text is sent to the model service. This function does not redact data locally before transmission, and the model may miss sensitive information.