Azure OpenAI False Positive Content Filter Issue When Parsing PDFs with Images

Hungry Scripter 0 Reputation points
2025-03-06T18:11:32.3466667+00:00

When attempting to parse a PDF document with Azure Open AI, it returns the following error for one of the pages that contains a family photo:

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}}

Our product needs to parse PDF files with photos, so we need to solve for this use case. Also, the photo didn't contain any sexual content, so this seems to be a false positive and it happened multiple times when we kept attempting to parse the document.

We checked our "Safety+Security" content filters and the values for all parameters were already set to high for both input and output filters.

Can anybody help us with this?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,784 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.