zhenghaoyang24178 downloadsAI-powered chat assistant that stays in the sidebar. Chats with your entire vault as context, and provides answers grounded in your notes.
中文 | English
AI-powered chat assistant for Obsidian. Chat with your entire vault as context.
data.json file.If you use Obsidian across multiple devices, it's recommended to sync the data.json file via Git. If your .gitignore ignores the entire plugins directory, you can exclude data.json like this:
.obsidian/plugins/*
!.obsidian/plugins/vaultbuddy/
!.obsidian/plugins/vaultbuddy/data.json
VaultBuddy uses a two-stage retrieval approach to find the most relevant notes for your question.
When you ask a question, VaultBuddy first builds a lightweight index of every file in your vault using Obsidian's built-in metadata cache — no need to read the full content of each file. It extracts key information from each note:
title or filename# titles in the note#tag used in the notealiasesThese lightweight "file cards" are then scored against your question using keyword matching and synonym expansion, and the top-ranked files are selected as candidates.
Only the candidate files are fully read and split into chunks (paragraphs grouped by headings). Each chunk is re-scored against your question, and the most relevant chunks are assembled into the AI's context window — fitting within the model's token limit.
If you have a note open when you ask a question, its full content is always included first, ensuring the AI has complete context for tasks like summarizing or improving the note you're working on.
Tip: The richer your note metadata (descriptive titles, meaningful tags, clear headings), the better VaultBuddy can match your notes to your questions.
main.jsmanifest.jsonstyles.css.obsidian/plugins/vaultbuddy/ inside your vaultOpen Settings → VaultBuddy and click + Add Model. Fill in:
| Field | Example |
|---|---|
| Display Name | DeepSeek |
| Base URL | https://api.deepseek.com/chat/completions |
| API Key | sk-... |
| Model ID | deepseek-chat |
| Context Window | 131072 |
The Base URL must be a cURL-compatible chat completions endpoint (e.g.
https://api.openai.com/v1/chat/completions).
Click Save Model, then select your model as the Default Model in the dropdown below.
| Setting | Description |
|---|---|
| Models | Add, edit, delete, and test API model configurations |
| Default Model | Which model to use for new conversations |
| Max Response Tokens | Maximum length of AI responses (recommended 4096-8192) |
| Custom Rules | Extra instructions appended to the system prompt |
| Skills | Create, edit, and delete custom skills |
| Resume Last Conversation | Automatically reload the previous chat on startup |
isDesktopOnly: false)Contributions are welcome! Here's how you can help:
Please follow the existing code style and include tests when applicable.