Adds documents to the docstore and vectorstores.
add_documents(
self,
documents: list[Document],
ids: list[str] | None = None,
add_to_docstore: bool = True,
**kwargs: Any = {}
) -> None| Name | Type | Description |
|---|---|---|
documents* | list[Document] | List of documents to add |
ids | list[str] | None | Default: NoneOptional list of IDs for documents. If provided should be the same length as the list of documents. Can be provided if parent documents are already in the document store and you don't want to re-add to the docstore. If not provided, random UUIDs will be used as IDs. |
add_to_docstore | bool | Default: TrueBoolean of whether to add documents to docstore.
This can be false if and only if |
**kwargs | Any | Default: {}additional keyword arguments passed to the |