Package version:

Interface VectorSimilarityThreshold

The results of the vector query will be filtered based on the vector similarity metric. Note this is the canonical definition of similarity metric, not the 'distance' version. The threshold direction (larger or smaller) will be chosen automatically according to the metric used by the field.

interface VectorSimilarityThreshold {
    kind: "vectorSimilarity";
    value: number;
}

Hierarchy (view full)

Properties

Properties

kind

Polymorphic discriminator, which specifies the different types this object can be

value: number

The threshold will filter based on the similarity metric value. Note this is the canonical definition of similarity metric, not the 'distance' version. The threshold direction (larger or smaller) will be chosen automatically according to the metric used by the field.