Class: Aws::BedrockAgentRuntime::Types::RerankResult

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb

Overview

Contains information about a document that was reranked.

Constant Summary collapse

SENSITIVE =
[:document]

Instance Attribute Summary collapse

Instance Attribute Details

#document ⇒ Types::RerankDocument

Contains information about the document.



8533
8534
8535
8536
8537
8538
8539
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 8533

class RerankResult < Struct.new(
  :document,
  :index,
  :relevance_score)
  SENSITIVE = [:document]
  include Aws::Structure
end

#index ⇒ Integer

The original index of the document from the input sources array.

Returns:

  • (Integer)


8533
8534
8535
8536
8537
8538
8539
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 8533

class RerankResult < Struct.new(
  :document,
  :index,
  :relevance_score)
  SENSITIVE = [:document]
  include Aws::Structure
end

#relevance_score ⇒ Float

The relevance score of the document.

Returns:

  • (Float)


8533
8534
8535
8536
8537
8538
8539
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 8533

class RerankResult < Struct.new(
  :document,
  :index,
  :relevance_score)
  SENSITIVE = [:document]
  include Aws::Structure
end