adelete() — langchain Function Reference
Architecture documentation for the adelete() function in vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 093cd293_eab3_1dc2_c167_2cc2acba62f0["adelete()"] 2d095452_70a7_4606_a1b1_4650d16b5343["Qdrant"] 093cd293_eab3_1dc2_c167_2cc2acba62f0 -->|defined in| 2d095452_70a7_4606_a1b1_4650d16b5343 style 093cd293_eab3_1dc2_c167_2cc2acba62f0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/langchain_qdrant/vectorstores.py lines 1168–1190
async def adelete(self, ids: list[str] | None = None, **kwargs: Any) -> bool | None:
"""Delete by vector ID or other criteria.
Args:
ids: List of ids to delete.
**kwargs: Other keyword arguments that subclasses might use.
Returns:
True if deletion is successful, `False` otherwise.
"""
if self.async_client is None or isinstance(
self.async_client._client, AsyncQdrantLocal
):
msg = "QdrantLocal cannot interoperate with sync and async clients"
raise NotImplementedError(msg)
result = await self.async_client.delete(
collection_name=self.collection_name,
points_selector=ids,
)
return result.status == models.UpdateStatus.COMPLETED
Domain
Subdomains
Source
Frequently Asked Questions
What does adelete() do?
adelete() is a function in the langchain codebase, defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py.
Where is adelete() defined?
adelete() is defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py at line 1168.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free