com.dtsx.astra.sdk.cassio.SimilarityMetric Maven / Gradle / Ivy
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;
}
}