EmbeddingsClient Class
- java.
lang. Object - com.
azure. ai. inference. EmbeddingsClient
- com.
public final class EmbeddingsClient
Initializes a new instance of the synchronous EmbeddingsClient type.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Embeddings |
embed(List<String> input)
Return the embedding vectors for given text prompts. |
|
Embeddings |
embed(List<String> input, Integer dimensions, EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model, ExtraParameters extraParams)
Return the embedding vectors for given text prompts. |
|
Response<Embeddings |
embedWithResponse(List<String> input)
Return the embedding vectors for given text prompts. |
|
Response<Embeddings |
embedWithResponse(List<String> input, Integer dimensions, EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model, ExtraParameters extraParams)
Return the embedding vectors for given text prompts. |
|
Model |
getModelInfo()
Returns information about the AI model. |
Methods inherited from java.lang.Object
Method Details
embed
public EmbeddingsResult embed(List<String> input)
Return the embedding vectors for given text prompts. The method makes a REST API call to the `/embeddings` route on the given endpoint.
Parameters:
Returns:
embed
public EmbeddingsResult embed(List<String> input, Integer dimensions, EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model, ExtraParameters extraParams)
Return the embedding vectors for given text prompts. The method makes a REST API call to the `/embeddings` route on the given endpoint.
Parameters:
extra-parameters.
Returns:
embedWithResponse
public Response<EmbeddingsResult> embedWithResponse(List<String> input)
Return the embedding vectors for given text prompts. The method makes a REST API call to the `/embeddings` route on the given endpoint.
Parameters:
Returns:
embedWithResponse
public Response<EmbeddingsResult> embedWithResponse(List<String> input, Integer dimensions, EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model, ExtraParameters extraParams)
Return the embedding vectors for given text prompts. The method makes a REST API call to the `/embeddings` route on the given endpoint.
Parameters:
extra-parameters.
Returns:
getModelInfo
public ModelInfo getModelInfo()
Returns information about the AI model. The method makes a REST API call to the `/info` route on the given endpoint.
Returns: