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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET