Class VectorSearchRerankingConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.VectorSearchRerankingConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class VectorSearchRerankingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>
Configuration for reranking vector search results to improve relevance. Reranking applies additional relevance models to reorder the initial vector search results based on more sophisticated criteria.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVectorSearchRerankingConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorSearchBedrockRerankingConfigurationbedrockRerankingConfiguration()Configuration for using Amazon Bedrock foundation models to rerank search results.static VectorSearchRerankingConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends VectorSearchRerankingConfiguration.Builder>serializableBuilderClass()VectorSearchRerankingConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.VectorSearchRerankingConfigurationTypetype()The type of reranking to apply to vector search results.StringtypeAsString()The type of reranking to apply to vector search results.-
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
-
type
public final VectorSearchRerankingConfigurationType type()
The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
If the service returns an enum value that is not available in the current SDK version,
typewill returnVectorSearchRerankingConfigurationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
- See Also:
VectorSearchRerankingConfigurationType
-
typeAsString
public final String typeAsString()
The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
If the service returns an enum value that is not available in the current SDK version,
typewill returnVectorSearchRerankingConfigurationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
- See Also:
VectorSearchRerankingConfigurationType
-
bedrockRerankingConfiguration
public final VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration()
Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.
- Returns:
- Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.
-
toBuilder
public VectorSearchRerankingConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>
-
builder
public static VectorSearchRerankingConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends VectorSearchRerankingConfiguration.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-