How to Handle Content Safety in Azure Prompt Flow to Prevent Flow Failures
Hi everyone,
I'm working with Azure Machine Learning Prompt Flow, and I'm facing an issue related to content safety. When a user inputs a harmful or unsafe prompt, the entire flow stops and throws a run error. This completely halts the execution of the prompt flow, which is not ideal.
I want to know the best way to handle unsafe content within a prompt flow without crashing the whole process. Specifically:
Is there a way to integrate content safety checks directly within the flow?
Can we use a Content Safety node or some other component to filter or flag harmful inputs before continuing the rest of the flow?
If there's no built-in option, what are the recommended best practices to handle such scenarios gracefully?
I'd really appreciate any guidance or examples on how to add content safety handling in a Prompt Flow setup.
Thanks in advance!