InferenceModelFactory.SemanticRerankingInferenceContent 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.SemanticRerankingInferenceContent SemanticRerankingInferenceContent(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, string targetPaths = default, string model = default, bool? returnSentenceScore = default);
static member SemanticRerankingInferenceContent : string * seq<string> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<Azure.Data.AI.SemanticRerankingDocumentType> * string * string * Nullable<bool> -> Azure.Data.AI.SemanticRerankingInferenceContent
Public Shared Function SemanticRerankingInferenceContent (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 String = Nothing, Optional model As String = Nothing, Optional returnSentenceScore As Nullable(Of Boolean) = Nothing) As SemanticRerankingInferenceContent
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
- 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 SemanticRerankingInferenceContent instance for mocking.