Class: Aws::BedrockAgentRuntime::Types::RerankDocument

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

Overview

Contains information about a document to rerank. Choose the type to define and include the field that corresponds to the type.

Constant Summary collapse

SENSITIVE =
[:text_document]

Instance Attribute Summary collapse

Instance Attribute Details

#json_documentHash, ...

Contains a JSON document to rerank.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


4488
4489
4490
4491
4492
4493
4494
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 4488

class RerankDocument < Struct.new(
  :json_document,
  :text_document,
  :type)
  SENSITIVE = [:text_document]
  include Aws::Structure
end

#text_documentTypes::RerankTextDocument

Contains information about a text document to rerank.



4488
4489
4490
4491
4492
4493
4494
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 4488

class RerankDocument < Struct.new(
  :json_document,
  :text_document,
  :type)
  SENSITIVE = [:text_document]
  include Aws::Structure
end

#typeString

The type of document to rerank.

Returns:

  • (String)


4488
4489
4490
4491
4492
4493
4494
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 4488

class RerankDocument < Struct.new(
  :json_document,
  :text_document,
  :type)
  SENSITIVE = [:text_document]
  include Aws::Structure
end