Skip to main content
This page covers all LangChain integrations with Microsoft Azure and its related projects. Integration packages for Azure AI, Dynamic Sessions, SQL Server are maintained in the langchain-azure repository.

Chat models

We recommend developers start with the (langchain-azure-ai) to access all the models available in Azure AI Foundry.

Azure AI chat completions

Access models like Azure OpenAI, DeepSeek R1, Cohere, Phi and Mistral using the AzureAIOpenAIApiChatModel class.
Configure your endpoint. You can use a project endpoint with DefaultAzureCredential, or set an API key directly.

Embedding models

Azure AI model inference for embeddings

Configure your endpoint. You can use a project endpoint with DefaultAzureCredential, or set an API key directly.

Vector stores

Azure CosmosDB NoSQL is a fully managed, globally distributed, serverless document database for modern applications. It stores data in flexible JSON documents and uses a SQL-like query language. This provides high performance, low latency, and automatic, elastic scalability. It also features integrated vector search capabilities for AI workloads like generative AI and RAG. This allows you to store, index, and query vector embeddings alongside your operational data in the same database. You can combine vector similarity search with traditional keyword-based search for relevant results and choose from various indexing methods for optimal performance. This unified approach simplifies application architecture and ensures data consistency.
We need to install the langchain-azure-cosmosdb and azure-cosmos packages to use this vector store.
See a usage example.
Azure CosmosDB Mongo vCore architecture makes it easy to create a database with full native MongoDB support. You can apply your MongoDB experience and continue to use your favorite MongoDB drivers, SDKs, and tools by pointing your application to the API for MongoDB (vCore) cluster’s connection string.
We need to install the pymongo package to use this vector store.
See a usage example.