Class FirestoreSaver (0.5.0)

FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)

Write into Google Cloud Platform Firestore.

Methods

FirestoreSaver

FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)

Document Saver for Google Cloud Firestore.

delete_documents

delete_documents(
    documents: typing.List[langchain_core.documents.base.Document],
    document_ids: typing.Optional[typing.List[str]] = None,
) -> None

Delete documents from the Firestore database.

upsert_documents

upsert_documents(
    documents: typing.List[langchain_core.documents.base.Document],
    merge: typing.Optional[bool] = False,
    document_ids: typing.Optional[typing.List[str]] = None,
) -> None

Create / merge documents into the Firestore database.