A Gen AI Specialist is writing a Python script that leverages Snowflake Cortex to answer users' questions. The script contains this code:
Python
from snowflake.cortex import CompleteOptions, complete
user_question = < 'Prompt that could generate an unsafe response' >
Regardless of the content of the prompt (user_question) that is passed to snowflake.cortex.complete, the Specialist must ensure that the function filters potentially unsafe or harmful response language.
Which code will accomplish this?
Python
Submit