mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 15:33:11 +00:00
core[patch]: Add comment to clarify aadd_documents (#23920)
Add comment to clarify how add documents works
This commit is contained in:
@@ -507,7 +507,7 @@ class VectorStore(ABC):
|
|||||||
else:
|
else:
|
||||||
documents_ = documents
|
documents_ = documents
|
||||||
|
|
||||||
# If upsert has been implemented, we can use it to add documents
|
# The default implementation of aupsert delegates to upsert.
|
||||||
upsert_response = await self.aupsert(documents_, **kwargs)
|
upsert_response = await self.aupsert(documents_, **kwargs)
|
||||||
return upsert_response["succeeded"]
|
return upsert_response["succeeded"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user