Skip to content

2.3 Vault Search (RAG)

Kevin On edited this page Nov 21, 2024 · 3 revisions

Vault Search (RAG) πŸ”

Vault Search automatically finds and uses relevant notes from your vault to enhance AI responses.

SC4_RAG-ezgif.com-crop-video.gif

Basic Usage

  1. Type your query in the chat
  2. Trigger vault search by:
    • Using the hotkey: Cmd+Shift+Enter (or Ctrl+Shift+Enter in Windows)
    • Or clicking the Vault Chat button

Other Situations Where Vault Search (RAG) Activates

Vault Search (RAG) also activates automatically when:

  • You include "@Vault" mention in your message
  • Mentioned files/folders exceed the Threshold Tokens limit

How It Works

  1. When triggered, the plugin:

    • Searches your vault for relevant notes
    • Updates embeddings for any modified files since last indexing
    • Includes found content as context
    • Note: Embeddings are only generated when vault search is triggered, not during regular chat
  2. Vault Indexing:

    • Embeddings are created only for modified files since last indexing
    • Full vault reindexing available via "Rebuild Entire Vault Index" command
  3. Referenced Documents:

    • After vault search, you can see which files were used as context
    • Click "Show Referenced Documents" to view the list
    • Each file shows its relevance score and the specific line numbers used

Clone this wiki locally