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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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

#documentTypes::RerankDocument

Contains information about the document.



8043
8044
8045
8046
8047
8048
8049
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 8043

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

#indexInteger

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

Returns:

  • (Integer)


8043
8044
8045
8046
8047
8048
8049
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 8043

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

#relevance_scoreFloat

The relevance score of the document.

Returns:

  • (Float)


8043
8044
8045
8046
8047
8048
8049
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 8043

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