Azure Cosmos DB integrations for LangChain and LangGraph: vector stores, semantic caches, chat message history, stores, and checkpointers.
Sync classes are importable from langchain_azure_cosmosdb; their async counterparts live in langchain_azure_cosmosdb.aio.
This page contains reference documentation for Azure Cosmos DB. See the docs for conceptual guides, tutorials, and examples.
Configuration for vector embeddings in Cosmos DB store.
Shared query/logic between sync and async Cosmos DB stores.
Azure Cosmos DB-backed store with optional vector search.
A visitor that converts a StructuredQuery into a CosmosDB NoSQL query.
Chat message history backed by Azure CosmosDB.
Synchronous CosmosDB implementation of LangGraph BaseCache.
Enumerator of the Distance strategies for calculating distances.
CosmosDB synchronous implementation of BaseCheckpointSaver.
Cache that uses Cosmos DB NoSQL backend.
Azure Cosmos DB for NoSQL vector store.
Retriever that uses Azure CosmosDB No Sql Search.
Async Azure Cosmos DB-backed store with optional vector search.
Async chat message history backed by Azure CosmosDB.
Asynchronous CosmosDB implementation of LangGraph BaseCache.
Asynchronous CosmosDB implementation of BaseCheckpointSaver.
Async cache that uses Cosmos DB NoSQL backend.
Azure Cosmos DB for NoSQL async vector store.
Async retriever that uses Azure CosmosDB No Sql Search.
Extract partition key paths from a partition key definition.
Extract the partition-key value for item given its key paths.
Row-wise cosine similarity between two equal-width matrices.
Calculate maximal marginal relevance.
Filter out metadata types that are not supported for a vector store.