Skip to content

VectorSearchRerankingConfiguration

Structure Class

VectorSearchRerankingConfiguration dataclass

Bases: _SerdeShape

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.

Attributes

bedrock_reranking_configuration class-attribute instance-attribute
bedrock_reranking_configuration: VectorSearchBedrockRerankingConfiguration | None = ...

Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.

type instance-attribute
type: str

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.