distanceThreshold property

double? distanceThreshold
final

If set, only documents within this distance of queryVector are returned.

For DistanceMeasure.euclidean and DistanceMeasure.cosine these are documents whose distance is at most the threshold. For DistanceMeasure.dotProduct, a similarity where larger is closer, they are documents whose value is at least the threshold.

Implementation

final double? distanceThreshold;