Class: Aws::BedrockRuntime::Types::GuardrailContextualGroundingFilter

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

The details for the guardrails contextual grounding filter.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

The action performed by the guardrails contextual grounding filter.

Returns:

  • (String)


2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2186

class GuardrailContextualGroundingFilter < Struct.new(
  :type,
  :threshold,
  :score,
  :action,
  :detected)
  SENSITIVE = []
  include Aws::Structure
end

#detectedBoolean

Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.

Returns:

  • (Boolean)


2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2186

class GuardrailContextualGroundingFilter < Struct.new(
  :type,
  :threshold,
  :score,
  :action,
  :detected)
  SENSITIVE = []
  include Aws::Structure
end

#scoreFloat

The score generated by contextual grounding filter.

Returns:

  • (Float)


2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2186

class GuardrailContextualGroundingFilter < Struct.new(
  :type,
  :threshold,
  :score,
  :action,
  :detected)
  SENSITIVE = []
  include Aws::Structure
end

#thresholdFloat

The threshold used by contextual grounding filter to determine whether the content is grounded or not.

Returns:

  • (Float)


2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2186

class GuardrailContextualGroundingFilter < Struct.new(
  :type,
  :threshold,
  :score,
  :action,
  :detected)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The contextual grounding filter type.

Returns:

  • (String)


2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2186

class GuardrailContextualGroundingFilter < Struct.new(
  :type,
  :threshold,
  :score,
  :action,
  :detected)
  SENSITIVE = []
  include Aws::Structure
end