SearchModelFactory.SingleVectorFieldResult 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.
Initializes a new instance of SingleVectorFieldResult.
public static Azure.Search.Documents.Models.SingleVectorFieldResult SingleVectorFieldResult (double? searchScore = default, double? vectorSimilarity = default);
static member SingleVectorFieldResult : Nullable<double> * Nullable<double> -> Azure.Search.Documents.Models.SingleVectorFieldResult
Public Shared Function SingleVectorFieldResult (Optional searchScore As Nullable(Of Double) = Nothing, Optional vectorSimilarity As Nullable(Of Double) = Nothing) As SingleVectorFieldResult
Parameters
The @search.score value that is calculated from the vector similarity score. This is the score that's visible in a pure single-field single-vector query.
The vector similarity score for this document. Note this is the canonical definition of similarity metric, not the 'distance' version. For example, cosine similarity instead of cosine distance.
Returns
A new SingleVectorFieldResult instance for mocking.
Applies to
Azure SDK for .NET