你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.