Module Values.VectorSearchRerankingConfigurationSource

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.

Sourcetype nonrec t = {
  1. type_ : VectorSearchRerankingConfigurationType.t;
    (*

    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.

    *)
  2. bedrockRerankingConfiguration : VectorSearchBedrockRerankingConfiguration.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?bedrockRerankingConfiguration:??? -> type_:VectorSearchRerankingConfigurationType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Integer of VectorSearchBedrockRerankingConfigurationNumberOfRerankedResultsInteger.t | `Structure of (string * [> `Enum of string | `Map of ([> `String of AdditionalModelRequestFieldsKey.t ] * [> `Structure of 'a list ]) list | `String of BedrockRerankingModelArn.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of FieldForRerankingFieldNameString.t ]) list ] list ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t