Interface KnowledgeBaseVectorSearchConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>,SdkBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>,SdkPojo
- Enclosing class:
- KnowledgeBaseVectorSearchConfiguration
public static interface KnowledgeBaseVectorSearchConfiguration.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KnowledgeBaseVectorSearchConfiguration.BuildernumberOfResults(Integer numberOfResults)The number of results to return.KnowledgeBaseVectorSearchConfiguration.BuilderoverrideSearchType(String overrideSearchType)By default, Amazon Bedrock decides a search strategy for you.KnowledgeBaseVectorSearchConfiguration.BuilderoverrideSearchType(SearchType overrideSearchType)By default, Amazon Bedrock decides a search strategy for you.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
numberOfResults
KnowledgeBaseVectorSearchConfiguration.Builder numberOfResults(Integer numberOfResults)
The number of results to return.
The
numberOfResultsfield is currently unsupported forRetrieveAndGenerate. Don't include it in this field if you are sending aRetrieveAndGeneraterequest.- Parameters:
numberOfResults- The number of results to return.The
numberOfResultsfield is currently unsupported forRetrieveAndGenerate. Don't include it in this field if you are sending aRetrieveAndGeneraterequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideSearchType
KnowledgeBaseVectorSearchConfiguration.Builder overrideSearchType(String overrideSearchType)
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
HYBRIDsearch using both vector embeddings and raw text, orSEMANTICsearch using only vector embeddings. For other vector store configurations, onlySEMANTICsearch is available. For more information, see Test a knowledge base.- Parameters:
overrideSearchType- 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 aHYBRIDsearch using both vector embeddings and raw text, orSEMANTICsearch using only vector embeddings. For other vector store configurations, onlySEMANTICsearch is available. For more information, see Test a knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SearchType,SearchType
-
overrideSearchType
KnowledgeBaseVectorSearchConfiguration.Builder overrideSearchType(SearchType overrideSearchType)
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
HYBRIDsearch using both vector embeddings and raw text, orSEMANTICsearch using only vector embeddings. For other vector store configurations, onlySEMANTICsearch is available. For more information, see Test a knowledge base.- Parameters:
overrideSearchType- 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 aHYBRIDsearch using both vector embeddings and raw text, orSEMANTICsearch using only vector embeddings. For other vector store configurations, onlySEMANTICsearch is available. For more information, see Test a knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SearchType,SearchType
-
-