Azure AI Search
This is not a LLM provider, but a content search provider. However since it is configured similarly to the other Azure services, it is included here. It allows you to do vector search of your documents using Azure AI Search.
const index = await retrieval.index("animals", { type: "azure_ai_search",});await index.insertOrUpdate(env.files);const docs = await index.search("cat dog");
Managed Identity (Entra ID)
Section titled “Managed Identity (Entra ID)”The service is configured through the AZURE_AI_SEARCH_ENDPOINT
environment variable
and the configuration of the managed identity.
AZURE_AI_SEARCH_ENDPOINT=https://{{service-name}}.search.windows.net/
Open your Azure AI Search resource in the Azure Portal, click on Overview and click on Properties.
Click on API Access control and enable Role-based access control or Both.
Open the Access Control (IAM) tab and make sure your user or service principal has the Search Service Contributor role.
API Key
Section titled “API Key”The service is configured through the AZURE_AI_SEARCH_ENDPOINT
and AZURE_AI_SEARCH_API_KEY
environment variables.
AZURE_AI_SEARCH_ENDPOINT=https://{{service-name}}.search.windows.net/AZURE_AI_SEARCH_API_KEY=...