Hello Hungry Scripter,
The error occurring in Azure OpenAI while processing a PDF with a family photo seems to be a false positive triggered by content filtering policies. The system incorrectly flagged the content as potentially containing sexual material, even though you have confirmed that it does not.
To address the issue of false positives when processing PDFs with Azure OpenAI, you can take several steps to mitigate content filtering errors.
Review the flagged content to confirm that it does not contain elements that could be misinterpreted by the content filter. Since your severity settings for input and output filters are already set to high, consider experimenting with different configurations to see if the filtering behavior changes.
Additionally, preprocessing the PDF before sending it such as adjusting image quality or format may help avoid misclassification.
If the issue persists, document key details of the false positive, including a description of the flagged content (such as the family photo), the context in which it appears within the PDF, the specific reason provided by Azure AI Content Safety for flagging it, and an explanation of why it should not be considered a violation.
Reviewing Azure’s content filtering policies and severity definitions can provide insights into how the system categorizes content. Understanding these policies may help in making necessary adjustments to prevent false positives and ensure smooth document processing.
Please refer this Mitigate false results in Azure AI Content Safety, Default content safety policies.
I Hope this helps. Do let me know if you have any further queries.
Thank you!