AIInferenceModelFactory.EmbeddingsResult 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.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET