SAP AI SDK for JavaScript - v2.9.0
    Preparing search index...

    Type Alias MergeStrategyReranker

    MergeStrategyReranker: {
        boosting?:
            | (
                { key: string; scope: string[]; value: string[] } & Record<
                    string,
                    any,
                >
            )[]
            | null;
        includeAllMetaData?: boolean
        | null;
        model?: "cohere-3.5" | null;
        type?: MergeStrategyType;
    } & Record<string, any>

    The MergeStrategyReranker will call a reranker LLM to merge the given PerFilterSearchResult instances. This strategy adds latency, but yields good results.

    Type Declaration

    • Optionalboosting?:
          | (
              { key: string; scope: string[]; value: string[] } & Record<string, any>
          )[]
          | null

      Key-value pairs to be included in the ranking process, to boost related chunks according to chunk content and metadata, if includeMetaData is true.

    • OptionalincludeAllMetaData?: boolean | null

      If true, document and chunk metadata are sent to the reranker LLM along with the text content of the chunk.

    • Optionalmodel?: "cohere-3.5" | null

      The RerankerModel to use. Default: "cohere-3.5".

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

    • Optionaltype?: MergeStrategyType