Class DatastoreSaver (0.2.0)

DatastoreSaver(kind: Optional[str] = None, client: Optional[Client] = None)

Write into Google Cloud Platform Firestore in Datastore Mode.

Methods

DatastoreSaver

DatastoreSaver(kind: Optional[str] = None, client: Optional[Client] = None)

Document Saver for Google Cloud Firestore in Datastore Mode.

delete_documents

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

Delete documents from the Datastore database.

upsert_documents

upsert_documents(
    documents: typing.List[langchain_core.documents.base.Document],
) -> None

Create / merge documents into the Firestore database in Datastore Mode.