Built in
Azure OpenAI
In order to be able to use OpenAI models on Azure, they first need to be deployed. Please refer to Azure OpenAI documentation on how to deploy a model on Azure.
Once these models are deployed, using Azure OpenAI is easy to do. Just follow these steps -
- Set the following environment variables -
Install OpenAI addon
Usage
The following embedding models do not require you to pass a dimension parameter -
text-embedding-3-large
text-embedding-3-small
text-embedding-ada-002
All other models require you provide one.
To use Azure Managed Identity, you can use something similar to the following code snippet -