API documentation for document_loader module.
Classes
DatastoreLoader
DatastoreLoader(
source: Union[Query, str],
page_content_properties: List[str] = [],
metadata_properties: List[str] = [],
client: Optional[Client] = None,
)Document Loader for Google Cloud Firestore in Datastore Mode.
| Parameters | |
|---|---|
| Name | Description |
source |
Query or str
The source to load the documents. It can be an instance of Query or the name of the Datastore kind to read from. |
page_content_properties |
list of str
The properties to write into the |
metadata_properties |
list of str
The properties to write into the |
client |
DatastoreClient
Client for interacting with the Google Cloud Datastore API. |
| Returns | |
|---|---|
| Type | Description |
list of dict |
Returns a list of documents with their content structured as specified by page_content_properties and metadata_properties. |
DatastoreSaver
DatastoreSaver(kind: Optional[str] = None, client: Optional[Client] = None)Write into Google Cloud Platform Firestore in Datastore Mode.