Skip to content

Commit

Permalink
[chore]: removing to use the Parent one to avoid recursion error
Browse files Browse the repository at this point in the history
  • Loading branch information
keenborder786 committed Dec 15, 2024
1 parent 1d2c1ab commit 52bf546
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions libs/milvus/langchain_milvus/vectorstores/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52bf546

Please sign in to comment.