InferenceModelFactory.SemanticRerankingContent 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 input for a semantic reranking operation.
public static Azure.Data.AI.SemanticRerankingContent SemanticRerankingContent(string query = default, System.Collections.Generic.IEnumerable<string> documents = default, bool? returnDocuments = default, int? topK = default, int? batchSize = default, bool? sort = default, Azure.Data.AI.SemanticRerankingDocumentType? documentType = default, System.Collections.Generic.IEnumerable<string> targetPaths = default, string model = default, bool? returnSentenceScore = default);
static member SemanticRerankingContent : string * seq<string> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<Azure.Data.AI.SemanticRerankingDocumentType> * seq<string> * string * Nullable<bool> -> Azure.Data.AI.SemanticRerankingContent
Public Shared Function SemanticRerankingContent (Optional query As String = Nothing, Optional documents As IEnumerable(Of String) = Nothing, Optional returnDocuments As Nullable(Of Boolean) = Nothing, Optional topK As Nullable(Of Integer) = Nothing, Optional batchSize As Nullable(Of Integer) = Nothing, Optional sort As Nullable(Of Boolean) = Nothing, Optional documentType As Nullable(Of SemanticRerankingDocumentType) = Nothing, Optional targetPaths As IEnumerable(Of String) = Nothing, Optional model As String = Nothing, Optional returnSentenceScore As Nullable(Of Boolean) = Nothing) As SemanticRerankingContent
Parameters
- query
- String
The query used to rank the documents.
- documents
- IEnumerable<String>
The documents to rank against the query.
- documentType
- Nullable<SemanticRerankingDocumentType>
The format of the submitted documents.
- targetPaths
- IEnumerable<String>
The property containing text to rank when the document type is JSON.
This property is required for JSON documents. Use dot notation for a nested property, for example meta.content.
You can specify multiple property paths separated by commas, for example meta.content,id.
- model
- String
The name of the model used for the semantic reranking operation.
Returns
A new SemanticRerankingContent instance for mocking.