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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/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

#action ⇒ String

The action performed by the guardrails contextual grounding filter.

Returns:

  • (String)


2829
2830
2831
2832
2833
2834
2835
2836
2837
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2829

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

#detected ⇒ Boolean

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

Returns:

  • (Boolean)


2829
2830
2831
2832
2833
2834
2835
2836
2837
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2829

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

#score ⇒ Float

The score generated by contextual grounding filter.

Returns:

  • (Float)


2829
2830
2831
2832
2833
2834
2835
2836
2837
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2829

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

#threshold ⇒ Float

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

Returns:

  • (Float)


2829
2830
2831
2832
2833
2834
2835
2836
2837
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2829

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

#type ⇒ String

The contextual grounding filter type.

Returns:

  • (String)


2829
2830
2831
2832
2833
2834
2835
2836
2837
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2829

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