This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT!spring-doc.cn

Refer to the Dependency Management section to add the Spring AI BOM to your build file.
Property Description Default

spring.ai.azure.openai.api-keyspring-doc.cn

The Key from Azure AI OpenAI Keys and Endpoint section under Resource Managementspring-doc.cn

-spring-doc.cn

spring.ai.azure.openai.endpointspring-doc.cn

The endpoint from the Azure AI OpenAI Keys and Endpoint section under Resource Managementspring-doc.cn

-spring-doc.cn

spring.ai.azure.openai.openai-api-keyspring-doc.cn

(non Azure) OpenAI API key. Used to authenticate with the OpenAI service, instead of Azure OpenAI. This automatically sets the endpoint to api.openai.com/v1. Use either api-key or openai-api-key property. With this configuraiton the spring.ai.azure.openai.embedding.options.deployment-name is threated as an OpenAi Model name.spring-doc.cn

-spring-doc.cn

Property Description Default

spring.ai.azure.openai.embedding.enabledspring-doc.cn

Enable Azure OpenAI embedding model.spring-doc.cn

truespring-doc.cn

spring.ai.azure.openai.embedding.metadata-modespring-doc.cn

Document content extraction modespring-doc.cn

EMBEDspring-doc.cn

spring.ai.azure.openai.embedding.options.deployment-namespring-doc.cn

This is the value of the 'Deployment Name' as presented in the Azure AI Portalspring-doc.cn

text-embedding-ada-002spring-doc.cn

spring.ai.azure.openai.embedding.options.userspring-doc.cn

An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes.spring-doc.cn

-spring-doc.cn

All properties prefixed with spring.ai.azure.openai.embedding.options can be overridden at runtime by adding a request specific Runtime Options to the EmbeddingRequest call.
Refer to the Dependency Management section to add the Spring AI BOM to your build file.
The spring-ai-azure-openai dependency also provide the access to the AzureOpenAiEmbeddingModel. For more information about the AzureOpenAiChatModel refer to the Azure OpenAI Embeddings section.
the text-embedding-ada-002 is actually the Deployment Name as presented in the Azure AI Portal.