Skip to content

Using GPT4All to Privately Chat with your Google Drive Data

Local and Private AI Chat with your Google Drive Data

Google Drive for Desktop allows you to sync and access your Google Drive files directly on your computer. By connecting your synced directory to LocalDocs, you can start using GPT4All to privately chat with data stored in your Google Drive.

Download Google Drive for Desktop

Download Google Drive for Desktop

  1. Download Google Drive for Desktop:
  2. Visit drive.google.com and sign in with your Google account.
  3. Navigate to the Settings (gear icon) and select Settings from the dropdown menu.
  4. Scroll down to Google Drive for desktop and click Download.

  5. Install Google Drive for Desktop

  6. Run the installer file you downloaded.
  7. Follow the prompts to complete the installation process.

  8. Sign in and Sync

  9. Once installed, sign in to Google Drive for Desktop with your Google account credentials.
  10. Choose the folders you want to sync to your computer.

For advanced help, see Setting up Google Drive for Desktop

Connect Google Drive to LocalDocs

Connect Google Drive to LocalDocs

  1. Install GPT4All and Open LocalDocs:

    • Go to nomic.ai/gpt4all to install GPT4All for your operating system.

    • Navigate to the LocalDocs feature within GPT4All to configure it to use your synced directory.

    Screenshot 2024-07-09 at 3 15 35 PM

  2. Add Collection:

    • Click on + Add Collection to begin linking your Google Drive folders.

    Screenshot 2024-07-09 at 3 17 24 PM

    • Name Collection
  3. Create Collection:

    • Click Create Collection to initiate the embedding process. Progress will be displayed within the LocalDocs interface.
  4. Access Files in Chats:

    • Load a model to chat with your files (Llama 3 Instruct performs best)

    • In your chat, open 'LocalDocs' with the button in the top-right corner to provide context from your synced Google Drive files.

    Screenshot 2024-07-09 at 3 20 53 PM

  5. Interact With Your Drive:

    • Use the model to interact with your files

    Screenshot 2024-07-09 at 3 36 51 PM

    Screenshot 2024-07-11 at 11 34 00 AM

  6. View Referenced Files:

    • Click on Sources below LLM responses to see which Google Drive files were referenced.


    Screenshot 2024-07-11 at 11 34 37 AM

How It Works

Google Drive for Desktop syncs your Google Drive files to your computer, while LocalDocs maintains a database of these synced files for use by your local LLM. As your Google Drive updates, LocalDocs will automatically detect file changes and get up to date. LocalDocs is powered by Nomic Embedding models which find semantically similar snippets from your files to enhance the context of your interactions.