Incorrect "Safety+Security" policy violation error when parsing a PDF document with Azure Open AI
We encountered an issue with Azure Open AI when attempting to parse and convert to markdown one of the pages of a PDF document that contained a family photo. In this case, Azure Open AI returned the following error message:
Error processing page: Error code: 400 - {'error': {'inner_error': {'code': 'ResponsibleAIPolicyViolation', 'content_filter_results': {'sexual': {'filtered': True, 'severity': 'high'}, 'violence': {'filtered': False, 'severity': 'safe'}, 'hate': {'filtered': False, 'severity': 'safe'}, 'self_harm': {'filtered': False, 'severity': 'safe'}}}, 'code': 'content_filter', 'message': "The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: \r\nhttps://go.microsoft.com/fwlink/?linkid=2198766.", 'param': 'prompt', 'type': None}}
The PDF files our product parses can include photos, so we need to solve for this use case. Also, we were surprised by the filter as the photo didn't contain any sexual content. This looks like a false positive and it happened multiple times as we continued to try to parse the document.
We checked our content filters in the “Safety + Security” section and confirmed that the values for all parameters were already set to high for both input and output filters.
Can anybody help us with this?