Azure OpenAI Content Filter Error When Processing Pharmaceutical Analysis Document

Matej Kovačič 0 Reputation points
2025-03-11T14:03:46.2+00:00

Hello,

I am encountering an error when using Azure OpenAI in a production application that classifies and extracts information from pharmaceutical documents. The specific issue occurs during classification of a particular analysis document related to medication quality control.

Here is the relevant error message:

Alert information:
AI.OnErrorOccured[Error processing document]: Error classifying document
 ----- INNER-L1 EXCEPTION -----
HTTP 400 (content_filter)
Parameter: prompt

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: https://go.microsoft.com/fwlink/?linkid=2198766

Alert source: MFAIClassificationUtility
Timestamp: 11.03.2025 14:09:50

I have already reviewed the documentation on Azure's content filtering policies, and to my understanding, the document content does not violate any of the listed guidelines. Furthermore, similar documents (e.g., other pharmaceutical analysis reports) process successfully with the same prompt and program logic.

Since the content of this document is sensitive and cannot be shared publicly, I would like to request a private and secure method where I can share the document with your team for internal inspection.

My goal is to understand why this particular document is being flagged by the content filter, while similar documents are not. Identifying the triggering element will help us either adjust the content, the prompt, or file a formal request to adjust the filter sensitivity if needed.

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

1 answer

Sort by: Most helpful
  1. santoshkc 15,245 Reputation points Microsoft External Staff Moderator
    2025-03-17T10:41:23.6333333+00:00

    Hi @Matej Kovačič,

    The issue appears to be triggered by Azure OpenAI’s content management policy, which may have flagged certain terms in the document. While similar documents have processed successfully, some specific wording related to pharmaceuticals, quality control, or adverse effects might be causing this classification error.

    We recommend testing the document in smaller sections to identify the triggering content and adjusting any sensitive terminology. Additionally, rewording the prompt to focus on neutral analysis rather than classification might help bypass the filter. You can also try clearing your browser cache and cookies or using a different browser to rule out any local issues.

    I hope this helps! Thank you.

    0 comments No comments

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.