Language

InferenceModelFactory.SemanticRerankingScore Method

Definition

A relevance score assigned to a submitted document.

public static Azure.Data.AI.SemanticRerankingScore SemanticRerankingScore(int? index = default, string document = default, float? score = default, System.Collections.Generic.IEnumerable<Azure.Data.AI.SentenceScore> sentenceScores = default);
static member SemanticRerankingScore : Nullable<int> * string * Nullable<single> * seq<Azure.Data.AI.SentenceScore> -> Azure.Data.AI.SemanticRerankingScore
Public Shared Function SemanticRerankingScore (Optional index As Nullable(Of Integer) = Nothing, Optional document As String = Nothing, Optional score As Nullable(Of Single) = Nothing, Optional sentenceScores As IEnumerable(Of SentenceScore) = Nothing) As SemanticRerankingScore

Parameters

index
Nullable<Int32>

The zero-based position of the document in the request.

document
String

The submitted document when requested in the response.

score
Nullable<Single>

The relevance score assigned to the document.

sentenceScores
IEnumerable<SentenceScore>

The sentence-level relevance scores for the submitted document.

Returns

A new SemanticRerankingScore instance for mocking.

Applies to