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

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

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

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * Wrap query parameters as a Bean.
 */
@Data @Builder
public class SimilaritySearchQuery {

    /**
     * Maximum number of item returned
     */
    private int recordCount;

    /**
     * Minimum distance computation
     */
    private double threshold = 0.0;

    /**
     * Embeddings to be searched.
     */
    private List embeddings;

    /**
     * Default distance is cosine
     */
    private SimilarityMetric distance = SimilarityMetric.DOT_PRODUCT;

    /**
     * If provided search on metadata
     */
    private Map metaData;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy