AIInferenceModelFactory.EmbeddingItem(BinaryData, Int32) 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 EmbeddingItem.
public static Azure.AI.Inference.EmbeddingItem EmbeddingItem(BinaryData embedding = default, int index = 0);
static member EmbeddingItem : BinaryData * int -> Azure.AI.Inference.EmbeddingItem
Public Shared Function EmbeddingItem (Optional embedding As BinaryData = Nothing, Optional index As Integer = 0) As EmbeddingItem
Parameters
- embedding
- BinaryData
List of embedding values for the input prompt. These represent a measurement of the vector-based relatedness of the provided input. Or a base64 encoded string of the embedding vector.
- index
- Int32
Index of the prompt to which the EmbeddingItem corresponds.
Returns
A new EmbeddingItem instance for mocking.
Applies to
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure SDK for .NET