Setting the Granite Guardian input moderation threshold

You can enable, disable, or adjust the sensitivity of Granite Guardian input moderation by setting the GuardianInputModerationThreshold value in the Gen AI Advanced Options field.

About this task

Granite Guardian input moderation is enabled by default with a threshold value of 0.5. The threshold determines the minimum confidence level required before a query is flagged and blocked. The score threshold ranges from 0.0 to 1.0:

  • A lower value, such as 0.1 or 0.2, applies stricter filtering. The system blocks queries even when it is only moderately confident they are unsafe. Harmful content is more likely to be detected, but safe content might occasionally be flagged.
  • A higher value, such as 0.8 or 0.9, applies more lenient filtering. The system only blocks queries it is highly confident about, letting borderline cases through. Content that is flagged is more likely to be genuinely harmful, but some harmful content might be missed.
  • Setting the value to 0.0 disables Granite Guardian filtering. User queries are still submitted for moderation, but no query receives a score that meets the threshold, so no queries are blocked.

You set the threshold by editing the GenAI Configuration object for the object store and specifying the value as an advanced configuration option.

Procedure

  1. In the Administration Console for Content Platform Engine (ACCE), access the Gen AI Configuration object for the object store where you want to set the Granite Guardian threshold for Content Assistant.
    Tip: Starting with Content Platform Engine 26.0, you can open the Gen AI Configuration object for the selected object store directly from Administrative > Content Assistant > Gen AI Configuration.
    1. Go to the object store where you want to set the Granite Guardian threshold.
    2. In the left pane, click Search.
    3. Click New Object Store Search.
    4. In Simple View, specify the Class as Gen AI Configuration, and click Run.
      The search results display a single Gen AI Configuration object.
    5. From the search results, click the object ID to access the properties for the Gen AI Configuration object.
  2. In the Properties tab, set the GuardianInputModerationThreshold value in the Gen AI Advanced Options field.

    Specify the value as a JSON string. The value must be a number between 0.0 and 1.0. The default value is 0.5:

    • Enter a value between 0.1 and 0.4 for stricter filtering.
    • Enter a value between 0.5 and 0.9 for more lenient filtering.
    • Enter a value of 0.0 to disable Granite Guardian filtering.
    For example, to set a threshold of 0.6, enter {"GuardianInputModerationThreshold":"0.6"}.
  3. Save your changes.

Results

Granite Guardian moderation is updated for the object store. The system applies the new threshold to all subsequent user queries.