Class: Aws::BedrockAgentRuntime::Types::KnowledgeBaseVectorSearchConfiguration

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

Overview

Configurations for how to perform the search query and return results. For more information, see Query configurations.

This data type is used in the following API operations:

Constant Summary collapse

SENSITIVE =
[:filter]

Instance Attribute Summary collapse

Instance Attribute Details

#filterTypes::RetrievalFilter

Specifies the filters to use on the metadata in the knowledge base data sources before returning results. For more information, see Query configurations.



1194
1195
1196
1197
1198
1199
1200
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1194

class KnowledgeBaseVectorSearchConfiguration < Struct.new(
  :filter,
  :number_of_results,
  :override_search_type)
  SENSITIVE = [:filter]
  include Aws::Structure
end

#number_of_resultsInteger

The number of source chunks to retrieve.

Returns:

  • (Integer)


1194
1195
1196
1197
1198
1199
1200
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1194

class KnowledgeBaseVectorSearchConfiguration < Struct.new(
  :filter,
  :number_of_results,
  :override_search_type)
  SENSITIVE = [:filter]
  include Aws::Structure
end

#override_search_typeString

By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless vector store that contains a filterable text field, you can specify whether to query the knowledge base with a HYBRID search using both vector embeddings and raw text, or SEMANTIC search using only vector embeddings. For other vector store configurations, only SEMANTIC search is available. For more information, see Test a knowledge base.

Returns:

  • (String)


1194
1195
1196
1197
1198
1199
1200
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 1194

class KnowledgeBaseVectorSearchConfiguration < Struct.new(
  :filter,
  :number_of_results,
  :override_search_type)
  SENSITIVE = [:filter]
  include Aws::Structure
end