Product Selector

Fusion 5.12
    Fusion 5.12

    Computes and emits selected distance between Query-Document dense vectors

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    queryVectorContextKey - stringrequired

    Name of the query context key containing dense vector (as double array)

    >= 1 characters

    Default: query_vector

    documentVectorField - stringrequired

    Name of the document field containing dense vector (as double array) or compressed vector (as string)

    >= 1 characters

    Default: compressed_document_vector_s

    keepDocumentVectorField - boolean

    Should the document field with the dense vector kept and returned in the response

    Default: false

    distanceType - stringrequired

    One of the following functions: cosine_similarity, cosine_distance, euclidean_distance, dot_product

    Default: cosine_similarity

    Allowed values: cosine_similaritycosine_distanceeuclidean_distancedot_product

    documentDistanceResultField - stringrequired

    Name of the result document field containing vectors distance. Might be used for further results sorting.

    >= 1 characters

    Default: vectors_distance

    failOnError - boolean

    Flag to indicate if this stage should throw an exception if an error occurs.

    Default: false