diff --git a/libs/milvus/langchain_milvus/vectorstores/milvus.py b/libs/milvus/langchain_milvus/vectorstores/milvus.py index 61fa109..bbcef1d 100644 --- a/libs/milvus/langchain_milvus/vectorstores/milvus.py +++ b/libs/milvus/langchain_milvus/vectorstores/milvus.py @@ -1541,21 +1541,6 @@ def add_documents(self, documents: List[Document], **kwargs: Any) -> List[str]: metadatas = [doc.metadata for doc in documents] return self.add_texts(texts, metadatas, **kwargs) - async def aadd_documents( - self, documents: List[Document], **kwargs: Any - ) -> List[str]: - """Run more documents through the embeddings and add to the vectorstore. - - Args: - documents: Documents to add to the vectorstore. - - Returns: - List of IDs of the added texts. - """ - texts = [doc.page_content for doc in documents] - metadatas = [doc.metadata for doc in documents] - return await self.aadd_texts(texts, metadatas, **kwargs) - def get_pks(self, expr: str, **kwargs: Any) -> List[int] | None: """Get primary keys with expression