Class: Aws::BedrockAgentRuntime::Types::KnowledgeBaseRetrievalResult

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

Overview

Details about a result from querying the knowledge base.

This data type is used in the following API operations:

^

Constant Summary collapse

SENSITIVE =
[:content, :location, :metadata]

Instance Attribute Summary collapse

Instance Attribute Details

#contentTypes::RetrievalResultContent

Contains a chunk of text from a data source in the knowledge base.



1094
1095
1096
1097
1098
1099
1100
1101
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1094

class KnowledgeBaseRetrievalResult < Struct.new(
  :content,
  :location,
  :metadata,
  :score)
  SENSITIVE = [:content, :location, :metadata]
  include Aws::Structure
end

#locationTypes::RetrievalResultLocation

Contains information about the location of the data source.



1094
1095
1096
1097
1098
1099
1100
1101
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1094

class KnowledgeBaseRetrievalResult < Struct.new(
  :content,
  :location,
  :metadata,
  :score)
  SENSITIVE = [:content, :location, :metadata]
  include Aws::Structure
end

#metadataHash<String,Hash,Array,String,Numeric,Boolean>

Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.

Returns:

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


1094
1095
1096
1097
1098
1099
1100
1101
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1094

class KnowledgeBaseRetrievalResult < Struct.new(
  :content,
  :location,
  :metadata,
  :score)
  SENSITIVE = [:content, :location, :metadata]
  include Aws::Structure
end

#scoreFloat

The level of relevance of the result to the query.

Returns:

  • (Float)


1094
1095
1096
1097
1098
1099
1100
1101
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1094

class KnowledgeBaseRetrievalResult < Struct.new(
  :content,
  :location,
  :metadata,
  :score)
  SENSITIVE = [:content, :location, :metadata]
  include Aws::Structure
end