SearchModelFactory.VectorSimilarityThreshold(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public static Azure.Search.Documents.Models.VectorSimilarityThreshold VectorSimilarityThreshold(double value = 0);
static member VectorSimilarityThreshold : double -> Azure.Search.Documents.Models.VectorSimilarityThreshold
Public Shared Function VectorSimilarityThreshold (Optional value As Double = 0) As VectorSimilarityThreshold
Parameters
- value
- Double
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.
Returns
A new VectorSimilarityThreshold instance for mocking.