InferenceClient Class
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.
Azure Data AI provides semantic reranking operations.
public class InferenceClient
type InferenceClient = class
Public Class InferenceClient
- Inheritance
-
InferenceClient
Constructors
| Name | Description |
|---|---|
| InferenceClient() |
Initializes a new instance of InferenceClient for mocking. |
| InferenceClient(InferenceClientSettings) |
Initializes a new instance of InferenceClient from a InferenceClientSettings. |
| InferenceClient(Uri, AzureKeyCredential, InferenceClientOptions) |
Initializes a new instance of InferenceClient. |
| InferenceClient(Uri, AzureKeyCredential) |
Initializes a new instance of InferenceClient. |
| InferenceClient(Uri, TokenCredential, InferenceClientOptions) |
Initializes a new instance of InferenceClient. |
| InferenceClient(Uri, TokenCredential) |
Initializes a new instance of InferenceClient. |
Properties
| Name | Description |
|---|---|
| Pipeline |
The HTTP pipeline for sending and receiving REST requests and responses. |
Methods
| Name | Description |
|---|---|
| SemanticRerank(RequestContent, RequestContext) |
[Protocol Method] Reranks documents by their relevance to a query.
|
| SemanticRerank(SemanticRerankingInferenceContent, CancellationToken) |
Reranks documents by their relevance to a query. |
| SemanticRerankAsync(RequestContent, RequestContext) |
[Protocol Method] Reranks documents by their relevance to a query.
|
| SemanticRerankAsync(SemanticRerankingInferenceContent, CancellationToken) |
Reranks documents by their relevance to a query. |