parent retriever nit (#9570)

if ids are nullable seems like they should have default val None.
mirrors VectorStore interface as well. cc @mcantillon21 @jacoblee93
This commit is contained in:
Bagatur 2023-08-22 11:58:16 -07:00 committed by GitHub
parent f3ba9ce7f4
commit 81163e3c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ class ParentDocumentRetriever(BaseRetriever):
def add_documents(
self,
documents: List[Document],
ids: Optional[List[str]],
ids: Optional[List[str]] = None,
add_to_docstore: bool = True,
) -> None:
"""Adds documents to the docstore and vectorstores.