@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / ContextualGroundingFilter
Interface to define a Contextual Grounding Filter.
readonlyoptionalaction:GuardrailAction
The action to take when contextual grounding is detected.
readonlyoptionalenabled:boolean
Whether the contextual grounding filter is enabled.
readonlythreshold:number
The threshold for the contextual grounding filter.
0 (blocks nothing)0.99 (blocks almost everything)
readonlytype:ContextualGroundingFilterType
The type of contextual grounding filter.