Compartilhar via


AIInferenceModelFactory.EmbeddingsResult Method

Definition

Initializes a new instance of EmbeddingsResult.

public static Azure.AI.Inference.EmbeddingsResult EmbeddingsResult (string id = default, System.Collections.Generic.IEnumerable<Azure.AI.Inference.EmbeddingItem> data = default, Azure.AI.Inference.EmbeddingsUsage usage = default, string model = default);
static member EmbeddingsResult : string * seq<Azure.AI.Inference.EmbeddingItem> * Azure.AI.Inference.EmbeddingsUsage * string -> Azure.AI.Inference.EmbeddingsResult
Public Shared Function EmbeddingsResult (Optional id As String = Nothing, Optional data As IEnumerable(Of EmbeddingItem) = Nothing, Optional usage As EmbeddingsUsage = Nothing, Optional model As String = Nothing) As EmbeddingsResult

Parameters

id
String

Unique identifier for the embeddings result.

data
IEnumerable<EmbeddingItem>

Embedding values for the prompts submitted in the request.

usage
EmbeddingsUsage

Usage counts for tokens input using the embeddings API.

model
String

The model ID used to generate this result.

Returns

A new EmbeddingsResult instance for mocking.

Applies to