Smart Connections for Obsidian

repository·main·Indexed 26 days ago

https://github.com/brianpetro/obsidian-smart-connections

An Obsidian plugin that uses local embeddings to surface semantically related notes and perform semantic searches across a vault. It features a Connections view for discovering related ideas, a Lookup view for meaning-based search, and a Smart Environment for note indexing. The ecosystem includes a core free version and Pro extensions for advanced features like inline connections, footer connections, and configurable ranking algorithms.

Tokens
2.3K
Snippets
1
Records
19
Agent score
90%

What's inside Smart Connections

  1. Overview of Smart Plugins and Pro versions

    main

    The project follows an open-core model:

    • Core Smart Plugins: These are free, source-available plugins focused on essential features (e.g., basic connections or context selection).
    • Pro Plugins: These sit on top of the core and include advanced, highly configurable options that require continuous maintenance (e.g., Connections Pro or Smart Chat Pro). Pro plugins are used to fund the ongoing development and maintenance of the ecosystem.
  2. Overview of Connections Pro features

    main

    Connections Pro is an advanced extension for power users that provides deeper integration and control. Key features include:

    • Inline connections: Small badges in the editor showing strong matches for a block with a pop-over for related content.
    • Footer connections: A persistent panel that updates in real-time as you type.
    • Configurable scoring and ranking: Ability to choose different algorithms and add a rerank stage.
    • Connections in Bases: Integration with Obsidian Bases using score_connection and list_connections to show similarity columns and related note lists in tables.
    • Advanced filters and models: Extended Smart Environment controls for embeddings, collections, and include/exclude rules.
    • Early release experiments: Access to new features in Early channels.
  3. Understand the Smart Environment

    main

    The Smart Environment is the shared local core that powers the Smart Ecosystem (including Smart Connections and Smart Chat). It provides the following functionality:

    • Note Indexing: Maintains an up-to-date index of your notes using embeddings.
    • Obsidian Integration: Listens for Obsidian events to ensure indexing and statistics stay synchronized with your vault.
    • Centralized Management: Provides a single location to manage models, sources, and exclusions across all Smart Plugins.
  4. Perform semantic search with Lookup view

    main

    The Lookup view allows you to perform ad hoc semantic searches across your entire vault based on meaning rather than exact text matches.

    Accessing the view

    • Click the Lookup icon in the left ribbon.
    • Run the Open: Lookup view command from the command palette.

    Semantic queries do not behave like standard plain-text searches. A note containing the exact text of your query might not appear in the results if the semantic meaning does not align.

  5. Jump to a random connection

    main

    You can quickly discover new content by jumping to a random note that has a strong semantic connection to your current note.

    How to use

    • Click the random connection icon in the ribbon.
    • Run the Open: Random note from connections command from the command palette.

    Note: The Connections view must be active for this command to work.

  6. Review Smart Environment events and notifications

    main

    Important system events (such as initial indexing completion, source reimports, or folder exclusion warnings) are surfaced in a dedicated notifications modal rather than standard Obsidian notifications.

    • On Desktop: Click the Smart Env item in the status bar to open the notifications modal.
    • On Mobile: Tap the Smart Environment notice that appears at the bottom of the Connections view.
  7. Use the Connections view to find related notes

    main

    The Connections view surfaces notes that are semantically related to the note you are currently viewing. The view updates automatically as you switch notes.

    Accessing the view

    • Click the Connections icon in the left ribbon.
    • Run the Open: Connection view command from the command palette.

    Key Features

    • Result score: A yellow underline indicating semantic similarity (exact numbers depend on the model).
    • Show/Hide content: Expand or collapse individual results. Use the top row button to toggle all.
    • Play/Pause updates: Control whether the view automatically updates when you change notes.
    • Lookup query: Opens the Lookup view for semantic search across the entire vault.

    Interacting with results

    • Create links: Drag a result directly into a note to create a link.
    • Preview: Hold Cmd or Ctrl while hovering over a result to show Obsidian's Hover Preview.
    • Hide results: Right-click a result to hide it. To bring them back, right-click any result and select Unhide all.
  8. Copy all connections content for AI Context Engineering

    main

    To use your connections as context for an AI chat, click the connections view menu button and select the "Send to Smart Context" option (represented by a briefcase icon).

    This action copies all content from the current connections to your clipboard. The Smart Context view also allows you to manually add or remove specific items from the selection before performing the one-click copy.