mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-03 18:24:10 +00:00
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:
parent
f3ba9ce7f4
commit
81163e3c0c
@ -97,7 +97,7 @@ class ParentDocumentRetriever(BaseRetriever):
|
|||||||
def add_documents(
|
def add_documents(
|
||||||
self,
|
self,
|
||||||
documents: List[Document],
|
documents: List[Document],
|
||||||
ids: Optional[List[str]],
|
ids: Optional[List[str]] = None,
|
||||||
add_to_docstore: bool = True,
|
add_to_docstore: bool = True,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Adds documents to the docstore and vectorstores.
|
"""Adds documents to the docstore and vectorstores.
|
||||||
|
Loading…
Reference in New Issue
Block a user