Ask a question to get started
Enter to send•Shift+Enter new line
GoogleDriveLoader()
BaseLoader
BaseModel
Path to the service account key file.
Path to the credentials file.
Path to the token file.
Your own google credentials created via your own mechanism
The folder ID to load from.
The document IDs to load from.
The file IDs to load from.
Whether to load recursively. Only applies when folder_id is given.
folder_id
The file types to load. Only applies when folder_id is given.
Whether to load trashed files. Only applies when folder_id is given.
The file loader class to use.
The file loader kwargs to use.
Whether to load authorization identities.
Whether to load extended metadata.
The credential scopes to use for Google Drive API access. Default is drive.file scope.
drive.file
Validate that either folder_id or document_ids is set, but not both.
Validate that credentials_path exists.
Validate that the provided scopes are not empty and are valid Google Drive API scopes.
Load documents.
Load documents from Google Drive.
Inherits from BaseLoader.
Supports loading from folders, specific documents, or file IDs with authentication.
Requires additional dependencies:
pip install langchain-google-community[drive]