Azure DocumentDB integrations for AI applications

Azure DocumentDB connects to large language model (LLM) orchestration frameworks through vector store connectors, checkpoint persistence, and application-specific integrations. Depending on the integration, you can store agent state or retrieve grounding data from your MongoDB-compatible cluster. These integrations don't all provide the same capabilities or release maturity.

The following links cover integration guides:

Framework What you build with it Get started
Microsoft Agent Framework Agent retrieval with the native Python agent-framework-azure-documentdb vector store connector (alpha). Native Python vector stores
Haystack Composable RAG pipelines with the azure-documentdb-haystack document store and embedding retriever. Build RAG pipelines
LangChain on Azure RAG applications with Azure integrations. The DocumentDB vector store moved from langchain-azure-ai to langchain-azure-cosmosdb. Build RAG applications
LangGraph Stateful agents with checkpoint persistence so threads survive across turns and process restarts. Persist agent state
LlamaIndex Knowledge bases built from your private documents, queryable through VectorStoreIndex and QueryEngines. Query a knowledge base
Semantic Kernel Vector store integrations for Python and .NET, with connector-specific APIs and limitations. Azure DocumentDB connector

Language support at a glance

✓ identifies a documented integration or published implementation, not general availability, feature parity, or a support guarantee. — means no integration is listed here; it doesn't mean the language or framework is unsupported. Check the linked implementation's package versions and limitations.

Framework Python TypeScript / JavaScript .NET Java
Microsoft Agent Framework ✓ Native connector (alpha; see limitations below) — ✓ VectorData implementation —
LangChain ✓ (reference) ✓ (reference) — ✓ LangChain4j
LangChain on Azure ✓ Compatibility imports; see migration note below — — —
LangGraph ✓ Checkpoints ✓ Checkpoints — —
LlamaIndex ✓ Vector store ✓ AzureCosmosDBMongoDBVectorStore in @llamaindex/azure — —
Haystack ✓ Document store and retriever — — —
Semantic Kernel ✓ Connector — ✓ Connector —

The native Agent Framework Python connector supports dense vector search with portable metadata filters and string or integer keys. Generated ObjectIds, hybrid and full-text search, and nested filter paths aren't supported. Its alpha package is separate from the Semantic Kernel Python connector; their contracts aren't interchangeable. The .NET integration uses a compatible Microsoft.Extensions.VectorData implementation rather than this native Python package.

In langchain-azure-ai 1.4.0, DocumentDB vector store imports are deprecated compatibility aliases that require langchain-azure-cosmosdb. For new code, use AzureDocumentDBVectorSearch from the package linked in the LangChain Python reference.

LangGraph entries refer to checkpoint persistence, not a vector store connector. The LlamaIndex TypeScript implementation uses the historical AzureCosmosDBMongoDBVectorStore name for the MongoDB-compatible service; it is distinct from the Azure Cosmos DB for NoSQL vector store in the same package. CosmosAIGraph is a separate reference application that uses Azure Cosmos DB for NoSQL and Apache Jena, not an Azure DocumentDB connector.

For a custom integration, use a compatible MongoDB driver and Azure DocumentDB's query syntax. Vector queries use the $search aggregation stage with the cosmosSearch operator. See Vector search in Azure DocumentDB.