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