Skip to content

Using GPT4All to Privately Chat with your OneDrive Data

Local and Private AI Chat with your OneDrive Data

OneDrive for Desktop allows you to sync and access your OneDrive 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 OneDrive.

Download OneDrive for Desktop

Download OneDrive for Desktop

  1. Download OneDrive for Desktop:
  2. Visit Microsoft OneDrive.
  3. Press 'download' for your respective device type.
  4. Download the OneDrive for Desktop application.

  5. Install OneDrive 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 OneDrive for Desktop with your Microsoft account credentials.
  10. Choose the folders you want to sync to your computer.

Connect OneDrive to LocalDocs

Connect OneDrive 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 OneDrive directory.

    Screenshot 2024-07-10 at 10 55 41 AM

  2. Add Collection:

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

    Screenshot 2024-07-10 at 10 56 29 AM

    • Name the Collection and specify the OneDrive folder path.
  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 within GPT4All to chat with your files.

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

    Screenshot 2024-07-10 at 10 58 55 AM

  5. Interact With Your OneDrive:

    • Use the model to interact with your files directly from OneDrive.

    Screenshot 2024-07-10 at 11 04 55 AM

    Screenshot 2024-07-11 at 11 21 46 AM

  6. View Referenced Files:

    • Click on Sources below responses to see which OneDrive files were referenced.

    Screenshot 2024-07-11 at 11 22 49 AM

How It Works

OneDrive for Desktop syncs your OneDrive files to your computer, while LocalDocs maintains a database of these synced files for use by your local GPT4All model. As your OneDrive updates, LocalDocs will automatically detect file changes and stay up to date. LocalDocs leverages Nomic Embedding models to find semantically similar snippets from your files, enhancing the context of your interactions.