Mistral Moderation API Release

Mistral AI has launched the Mistral Moderation API, a content moderation tool designed to provide system-level guardrails for AI deployments. This API is the same technology powering the moderation service in Le Chat, now made available for users to tailor to their specific application safety standards.

LLM-Based Classification and Capabilities

The Mistral Moderation API utilizes an LLM classifier trained to categorize text inputs into nine distinct policy categories. By leveraging a Large Language Model for classification, Mistral AI aims to provide a more scalable and robust moderation system compared to traditional methods.

Multilingual Support

The model is natively multilingual, with specific training on the following languages:

  • Arabic
  • Chinese
  • English
  • French
  • German
  • Italian
  • Japanese
  • Korean
  • Portuguese
  • Russian
  • Spanish

Input Endpoints

To address the fact that undesirable content is often context-dependent, the API provides two distinct endpoints:

  1. Raw Text Endpoint: For analyzing standalone text inputs.
  2. Conversational Content Endpoint: For analyzing text within a conversational context. In this case, the model is trained to classify the last message of the conversation.

Safety Policy and Guardrails

The Moderation API addresses model-generated harms, including the prevention of unqualified advice and the protection of Personally Identifiable Information (PII). The full set of policy definitions is available in Mistral AI's technical documentation.

Performance Metrics

Mistral AI has shared performance data based on AUC PR (Area Under the Precision-Recall Curve) across various policies using an internal testset. This metric is used to evaluate the effectiveness of the classifier across the nine defined policy categories.

Sources

Related

  • Dispatch
  • Dispatch
  • Dispatch
  • Dispatch
  • Dispatch