[Launched] Generally Available: langchain-azure-cosmosdb python package for Azure Cosmos DB
Microsoft•Announcement••Azure updates
You can now build production-ready AI and agent applications faster using the new LangChain and LangGraph integration for Azure Cosmos DB. This Python package enables you to directly use Cosmos DB for vector and hybrid search, semantic caching, chat history storage, checkpointing, and long-term memory, all within familiar LangChain and LangGraph workflows. You can store and retrieve embeddings, combine full-text and vector search for more relevant results, cache LLM responses to reduce cost…
Cosmos DB now works as a backend for LangChain and LangGraph through a new Python package, covering vector and hybrid search, LLM response caching, chat history, checkpointing and long-term memory.
Who it is for
Python teams building RAG or agent apps on Azure Cosmos DB who want retrieval, memory and agent state in one database.
Key points
Generally available as the langchain-azure-cosmosdb Python package
Supports vector search, full-text plus vector hybrid search, and semantic caching of LLM responses
AI:Both are database-vendor integration packages that let an agent framework store sessions, long-term memory and search data in the database (MongoDB for ADK, Cosmos DB for LangChain).
AI:Both give LLM apps long-term memory backed by a database, reached via a LangChain package at Microsoft rather than a graph store with an open-source memory server.
AI:Azure Cosmos DB now has a generally available Semantic Reranker that reorders search candidates by the meaning of the query and context, using an AI model.
AI:Azure Cosmos DB for NoSQL adds an MCP Toolkit Server so Foundry agents can run secure data operations and semantic searches on Cosmos DB data (public preview).