Class KnowledgeBaseVectorSearchConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.KnowledgeBaseVectorSearchConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class KnowledgeBaseVectorSearchConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>
Configurations for how to carry out the search.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKnowledgeBaseVectorSearchConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KnowledgeBaseVectorSearchConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegernumberOfResults()The number of results to return.SearchTypeoverrideSearchType()By default, Amazon Bedrock decides a search strategy for you.StringoverrideSearchTypeAsString()By default, Amazon Bedrock decides a search strategy for you.List<SdkField<?>>sdkFields()static Class<? extends KnowledgeBaseVectorSearchConfiguration.Builder>serializableBuilderClass()KnowledgeBaseVectorSearchConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
numberOfResults
public final 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.- Returns:
- The number of results to return.
The
numberOfResultsfield is currently unsupported forRetrieveAndGenerate. Don't include it in this field if you are sending aRetrieveAndGeneraterequest.
-
overrideSearchType
public final 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.If the service returns an enum value that is not available in the current SDK version,
overrideSearchTypewill returnSearchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoverrideSearchTypeAsString().- Returns:
- 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. - See Also:
SearchType
-
overrideSearchTypeAsString
public final String overrideSearchTypeAsString()
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.If the service returns an enum value that is not available in the current SDK version,
overrideSearchTypewill returnSearchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoverrideSearchTypeAsString().- Returns:
- 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. - See Also:
SearchType
-
toBuilder
public KnowledgeBaseVectorSearchConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<KnowledgeBaseVectorSearchConfiguration.Builder,KnowledgeBaseVectorSearchConfiguration>
-
builder
public static KnowledgeBaseVectorSearchConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends KnowledgeBaseVectorSearchConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-