Megosztás a következőn keresztül:


SearchModelFactory.SingleVectorFieldResult Method

Definition

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

searchScore
Nullable<Double>

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.

vectorSimilarity
Nullable<Double>

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