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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET