Azure AI Search (formerly known asDocumentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-explai-1765467058-4ac1f26.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Azure Search and Azure Cognitive Search) is a cloud search service that gives developers infrastructure, APIs, and tools for information retrieval of vector, keyword, and hybrid queries at scale.
You’ll need to install langchain-community with pip install -qU langchain-community to use this integration
Install Azure AI Search SDK
Use azure-search-documents package version 11.4.0 or later.Import required libraries
OpenAIEmbeddings is assumed, but if you’re using Azure OpenAI, import AzureOpenAIEmbeddings instead.
Configure OpenAI settings
Set variables for your OpenAI provider. You need either an OpenAI account or an Azure OpenAI account to generate the embeddings.Configure vector store settings
You need an Azure subscription and Azure AI Search service to use this vector store integration. No-cost versions are available for small and limited workloads. Set variables for your Azure AI Search URL and admin API key. You can get these variables from the Azure portal.Create embeddings and vector store instances
Create instances of theOpenAIEmbeddings and AzureSearch classes. When you complete this step, you should have an empty search index on your Azure AI Search resource. The integration module provides a default schema.