Share via


AIInferenceModelFactory.EmbeddingItem(BinaryData, Int32) Method

Definition

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