Class AzureOpenAiEmbeddingClient
java.lang.Object
org.springframework.ai.embedding.AbstractEmbeddingClient
org.springframework.ai.azure.openai.AzureOpenAiEmbeddingClient
- All Implemented Interfaces:
EmbeddingClient
,ModelClient<EmbeddingRequest,
EmbeddingResponse>
-
Field Summary
Fields inherited from class org.springframework.ai.embedding.AbstractEmbeddingClient
embeddingDimensions
-
Constructor Summary
ConstructorDescriptionAzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient) AzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient, MetadataMode metadataMode) AzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient, MetadataMode metadataMode, AzureOpenAiEmbeddingOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncall
(EmbeddingRequest embeddingRequest) Executes a method call to the AI model.Embeds the given document's content into a vector.Methods inherited from class org.springframework.ai.embedding.AbstractEmbeddingClient
dimensions, dimensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.embedding.EmbeddingClient
embed, embed, embedForResponse
-
Constructor Details
-
AzureOpenAiEmbeddingClient
public AzureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient azureOpenAiClient) -
AzureOpenAiEmbeddingClient
public AzureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient azureOpenAiClient, MetadataMode metadataMode) -
AzureOpenAiEmbeddingClient
public AzureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient azureOpenAiClient, MetadataMode metadataMode, AzureOpenAiEmbeddingOptions options)
-
-
Method Details
-
embed
Description copied from interface:EmbeddingClient
Embeds the given document's content into a vector.- Parameters:
document
- the document to embed.- Returns:
- the embedded vector.
-
call
Description copied from interface:ModelClient
Executes a method call to the AI model.- Parameters:
embeddingRequest
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
getDefaultOptions
-