All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dtsx.astra.sdk.cassio.SimilarityMetric Maven / Gradle / Ivy

There is a newer version: 1.2.7
Show newest version
package com.dtsx.astra.sdk.cassio;

import lombok.Getter;

/**
 * Option for the similarity metric.
 */
@Getter
public enum SimilarityMetric {

    /** dot product. */
    DOT_PRODUCT("DOT_PRODUCT","similarity_dot_product"),

    /** cosine. */
    COS("COSINE","similarity_cosine"),

    /** euclidean. */
    DOT("EUCLIDEAN","similarity_euclidean");

    /**
     * Option.
     */
    private final String option;

    /**
     * Function.
     */
    private final String function;

    /**
     * Constructor.
     *
     * @param option
     *     option in the index creation
     * @param function
     *      function to be used in the query
     */
    SimilarityMetric(String option, String function) {
        this.option = option;
        this.function = function;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy