Answer library management
This topic describes how to manage and configure answer libraries in the AI Guardrails console. AI Guardrails allows you to configure custom answer libraries by risk label. You can add custom reply texts to an answer library. When a detection result hits the corresponding label, the system randomly returns one of the reply texts in the library in the API response. This makes it easy to integrate and maintain custom reply content for risk blocking scenarios.
Answer library management
The Content Compliance feature lets you configure custom answer libraries and answer content based on risk labels.
-
Log on to the Guardrails console.
-
In the left navigation pane, choose .
-
On the Response Templates page, you can add or modify answer libraries and the answers within them.
-
Click Create Answer Library and enter an answer library name. You can choose to Batch add answers, Upload file to import, or Create a library and then add answers.
-
In the answer library list, click Management in the Actions column to open the answer maintenance page for that library.
-
Click Add to use the Batch add answers feature.
-
You can add, remove, or modify answers in the answer library.
-
Answer library configuration
-
In the left navigation pane, choose .
-
On the Model Protection page, take AI input content safety detection (
query_security_check) as an example. Click Management in the Actions column.-
Select the detection type to adjust, for example, advertisement content detection.
-
Click Edit to enter edit mode and modify the Customize Response Template Library configuration.
-
In the Select Response Template Library column, select an existing answer library or click Add Response Template Library to create a new one. For each label, you can configure up to three answer libraries.
-
Click Save to save the new custom answer library configuration. The configuration takes effect in your production environment in about one minute.
-