Skip to content

Using GPT4All to Privately Chat with your Obsidian Vault

Obsidian for Desktop is a powerful management and note-taking software designed to create and organize markdown notes. This tutorial allows you to sync and access your Obsidian note files directly on your computer. By connecting it to LocalDocs, you can integrate these files into your LLM chats for private access and enhanced context.

Download Obsidian for Desktop

Download Obsidian for Desktop

  1. Download Obsidian for Desktop:

  2. Set Up Obsidian:

    • Launch Obsidian from your Applications folder (macOS), Start menu (Windows), or equivalent location (Linux).
    • On the welcome screen, you can either create a new vault (a collection of notes) or open an existing one.
    • To create a new vault, click Create a new vault, name your vault, choose a location on your computer, and click Create.
  3. Sign in and Sync: - Once installed, you can start adding and organizing notes. - Choose the folders you want to sync to your computer.

Connect Obsidian to LocalDocs

Connect Obsidian to LocalDocs

    • Navigate to the LocalDocs feature within GPT4All.

    Open LocalDocs:

    LocalDocs interface

  1. Add Collection:

    • Click on + Add Collection to begin linking your Obsidian Vault.

    Screenshot of adding collection

    • Name your collection
  2. Create Collection:

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

    • Load a model to chat with your files (Llama 3 Instruct is the fastest)
    • In your chat, open 'LocalDocs' with the button in the top-right corner to provide context from your synced Obsidian notes.

    Accessing LocalDocs in chats

  4. Interact With Your Notes:

    • Use the model to interact with your files
      osbsidian user interaction
      osbsidian GPT4ALL response
  5. View Referenced Files:

    • Click on Sources below LLM responses to see which Obsidian Notes were referenced.

    Referenced Files

How It Works

Obsidian for Desktop syncs your Obsidian notes to your computer, while LocalDocs integrates these files into your LLM chats using embedding models. These models find semantically similar snippets from your files to enhance the context of your interactions.

To learn more about embedding models and explore further, refer to the Nomic Python SDK documentation.