View Source GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceRaiResult (google_api_ai_platform v0.5.0)
The RAI results for a given text.
Attributes
-
aidaRecitationResult
(type:GoogleApi.AIPlatform.V1.Model.LanguageLabsAidaTrustRecitationProtoRecitationResult.t
, default:nil
) - Recitation result from Aida recitation checker. -
blocked
(type:boolean()
, default:nil
) - Usetriggered_blocklist
. -
errorCodes
(type:list(integer())
, default:nil
) - The error codes indicate which RAI filters block the response. -
filtered
(type:boolean()
, default:nil
) - Whether the text should be filtered and not shown to the end user. This is determined based on a combination oftriggered_recitation
,triggered_blocklist
,language_filter_result
, andtriggered_safety_filter
. -
languageFilterResult
(type:GoogleApi.AIPlatform.V1.Model.LearningGenaiRootLanguageFilterResult.t
, default:nil
) - Language filter result from SAFT LangId. -
raiSignals
(type:list(GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceRaiSignal.t)
, default:nil
) - The RAI signals for the text. -
triggeredBlocklist
(type:boolean()
, default:nil
) - Whether the text triggered the blocklist. -
triggeredRecitation
(type:boolean()
, default:nil
) - Whether the text should be blocked by the recitation result from Aida recitation checker. It is determined from aida_recitation_result. -
triggeredSafetyFilter
(type:boolean()
, default:nil
) - Whether the text triggered the safety filter. Currently, this is due to CSAI triggering or one of four categories (derogatory, sexual, toxic, violent) having a score over the filter threshold.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceRaiResult{ aidaRecitationResult: GoogleApi.AIPlatform.V1.Model.LanguageLabsAidaTrustRecitationProtoRecitationResult.t() | nil, blocked: boolean() | nil, errorCodes: [integer()] | nil, filtered: boolean() | nil, languageFilterResult: GoogleApi.AIPlatform.V1.Model.LearningGenaiRootLanguageFilterResult.t() | nil, raiSignals: [GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceRaiSignal.t()] | nil, triggeredBlocklist: boolean() | nil, triggeredRecitation: boolean() | nil, triggeredSafetyFilter: boolean() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.