Module document_loader (0.3.1)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
API documentation for document_loader
module.
Classes
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 page_content
. If an empty or None list is provided, all fields will be written into page_content
. When only one field is provided, only the value is written.
metadata_properties
list of str
The properties to write into the metadata
. By default, it will write all fields that are not in page_content
into metadata
.
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 ( kind : Optional [ str ] = None , client : Optional [ Client ] = None )
Write into Google Cloud Platform Firestore
in Datastore Mode.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Module document_loader (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/python/docs/reference/langchain-google-datastore/latest/langchain_google_datastore.document_loader)\n- [0.3.0](/python/docs/reference/langchain-google-datastore/0.3.0/langchain_google_datastore.document_loader)\n- [0.2.0](/python/docs/reference/langchain-google-datastore/0.2.0/langchain_google_datastore.document_loader) \nAPI documentation for `document_loader` module.\n\nClasses\n-------\n\n### [DatastoreLoader](/python/docs/reference/langchain-google-datastore/latest/langchain_google_datastore.document_loader.DatastoreLoader)\n\n DatastoreLoader(\n source: Union[Query, str],\n page_content_properties: List[str] = [],\n metadata_properties: List[str] = [],\n client: Optional[Client] = None,\n )\n\nDocument Loader for Google Cloud Firestore in Datastore Mode.\n\n### [DatastoreSaver](/python/docs/reference/langchain-google-datastore/latest/langchain_google_datastore.document_loader.DatastoreSaver)\n\n DatastoreSaver(kind: Optional[str] = None, client: Optional[Client] = None)\n\nWrite into Google Cloud Platform `Firestore` in Datastore Mode."]]