Package com.azure.ai.openai.models
Class EmbeddingItem
java.lang.Object
com.azure.ai.openai.models.EmbeddingItem
Representation of a single embeddings relatedness comparison.
-
Method Summary
Modifier and TypeMethodDescriptionGet the embedding property: List of embeddings value for the input prompt.Get the embedding property: List of embeddings value in base64 format for the input prompt.intGet the promptIndex property: Index of the prompt to which the EmbeddingItem corresponds.
-
Method Details
-
getEmbedding
Get the embedding property: List of embeddings value for the input prompt. These represent a measurement of the vector-based relatedness of the provided input.- Returns:
- the embedding value.
-
getEmbeddingAsString
Get the embedding property: List of embeddings value in base64 format for the input prompt.- Returns:
- the embedding base64 encoded string.
-
getPromptIndex
public int getPromptIndex()Get the promptIndex property: Index of the prompt to which the EmbeddingItem corresponds.- Returns:
- the promptIndex value.
-