Ask Your Notes

approvedunreviewed

by haochen12

Chat with any OpenAI-compatible LLM using your notes as context. @-mention notes, streaming replies, copy, insert and regenerate.

↓ 61 downloadsUpdated 16d agoMIT

Ask Your Notes: a folded note with a conversation tail

Ask Your Notes

Read, question, and develop your notes without leaving Obsidian.
Bring a note, a selected passage, or a few references into a sidebar conversation.

简体中文 · Download · Quick start · Privacy · Report an issue

Summarize a note, explain a difficult passage, compare ideas across referenced notes, or turn rough thoughts into an outline. Choose what to attach, review the references above the input, and send your question.

The plugin connects Obsidian to an OpenAI-compatible chat API. You supply the model connection, using a provider preset or your own endpoint. It does not automatically search or index your entire vault.

This README describes the current source. Check the release notes for features available in your installed version.

Features

  • Active note or selection. Include unsaved editor changes; in automatic mode, send a selected passage instead of the whole note.
  • References with @. Attach multiple Markdown notes, remove individual references, or chat without attaching notes.
  • Replies you can use. Render Markdown, tables, code, and math. Copy a reply, insert it at the note editor's selection or cursor, or regenerate the latest answer.
  • Visible request status. See when notes are being read or a reply is generating. Stop generation or retry after a failed request.
  • Fits your workspace. Colors, fonts, icons, and main control radii follow Obsidian's theme. English and Chinese interfaces are included.
  • Optional local history. Resume the last conversation after restarting Obsidian.

Preview

Ask Your Notes sidebar showing a demo reading workflow, a Markdown table, reply actions, and the message input

Captured in Obsidian using a demo conversation, with no private notes or API requests. The preview follows your light or dark mode; appearance varies by theme.

Installation

In Obsidian, open Settings → Community plugins → Browse, search for Ask Your Notes, then install and enable it. Existing users can check for updates under Community plugins.

Alternatively, use BRAT or install a release manually.

BRAT

  1. Install and enable BRAT.
  2. Choose Add a beta plugin and enter Howzits/obsidian-ask-your-notes.
  3. Enable Ask Your Notes under Settings → Community plugins if needed.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create <vault>/.obsidian/plugins/ask-your-notes/ and place all three files there.
  3. Reload Obsidian and enable Ask Your Notes under Settings → Community plugins.

Use the release attachments, rather than GitHub's source-code ZIP. To build from source, see Development.

Quick start

  1. Open Settings → Ask Your Notes and choose a provider.
  2. Enter its API key if required, confirm the endpoint and model, and select Test connection. The test sends a small request and may consume API quota.
  3. Open a Markdown note, then open Ask Your Notes from the ribbon icon or command palette.
  4. Check the references above the input. Ask “Summarize this note in five points,” then press Enter.

For Ollama, start the local service and install a model first. Use a model name available on that service. localhost refers to the device running Obsidian.

Connection presets

These are the defaults in the code, rather than model recommendations. Endpoints and model IDs are editable; availability depends on your provider and account.

PresetChat completions endpointDefault model
DeepSeekhttps://api.deepseek.com/chat/completionsdeepseek-chat
OpenAIhttps://api.openai.com/v1/chat/completionsgpt-4o-mini
OpenRouterhttps://openrouter.ai/api/v1/chat/completionsopenai/gpt-4o-mini
Ollamahttp://localhost:11434/v1/chat/completionsllama3.1
CustomYour full OpenAI-compatible chat completions URLYour model ID

Use the full chat completions URL, not just the base URL. Switching provider presets clears the previous API key. Third-party services may charge for requests.

Choose the context

Context is refreshed before every send and regeneration: open editors supply the current unsaved content, and closed reference notes are read from disk again. File modifications also refresh the context indicator.

ModeAttached to the next question
Follow the active noteThe active Markdown note, including unsaved edits. Enabled by default.
Selected textIn automatic mode, with Prefer selected text enabled, a nonempty selection replaces the full note.
Explicit referencesNotes chosen through @ or the @ button. The first reference replaces automatic following; more can be added.
No attached notesRemove all references, or disable automatic context and leave explicit references empty.

Select a reference name to open its note, use its remove button to detach it, or use the reset arrow to restore automatic mode. Turning off Use the active note as context stops automatic attachment; explicit references still apply.

Each request also includes previous chat messages. Switching notes or removing references does not erase those messages. Start a New chat when changing topics or when you need a fresh conversation.

Max context characters defaults to 30,000 characters per note. Truncation is marked in the context bar. Many references or a long conversation can still exceed a model's context window.

Controls

ActionControl
SendEnter
New lineShift+Enter
Add a noteType @ or select the @ button, then choose a note
Stop a replySelect the stop button while generating
Start freshSelect + in the header; this clears the current conversation
Reuse a replySelect copy or insert; regenerate is available for the latest reply
Replace the active noteSelect the reply's replace-note button; Undo restores the previous note content
Copy everythingSelect Copy entire conversation in the header; includes questions, answers, and a currently streaming partial reply as Markdown

Each question and answer also has its own copy button. Replacing a note targets the most recently active open Markdown editor, even if the reply was based on different referenced notes; it replaces the entire note, including frontmatter.

Desktop supports streaming replies. Mobile uses non-streaming requests. Stopping a non-streaming request stops local waiting and discards the late reply; it cannot cancel the underlying request or guarantee that provider processing stops.

Privacy and data

  • Sent to the configured endpoint: your question, earlier chat messages, system instructions, and attached note content or selection. If supplied, the API key is sent there as an authorization header.
  • Stored locally: settings and the API key are saved as plain text in <vault>/.obsidian/plugins/ask-your-notes/data.json. With history enabled, this file also stores the last conversation, capped at 200 saved messages.
  • History controls: disabling persistence clears saved history while keeping the current conversation in memory. New chat clears the conversation; there is no conversation archive.
  • Sync and Git: exclude data.json from shared backups, sync, and version control if you do not want credentials and chat history copied. The plugin does not encrypt this file.
  • Provider handling: your chosen service determines how requests are processed and retained. A local Ollama endpoint can keep model requests on your machine.

Answers and generated note links can be inaccurate. Check the source before relying on an answer or inserting it into your notes.

Troubleshooting

ProblemWhat to check
Connection test failsCheck the full endpoint, API key, model availability, and network. Re-enter the key after switching providers.
Wrong note is attachedReview the references above the input. Remove them or reset automatic following.
Only part of a note is usedClear the editor selection or disable selection preference. Check the per-note character limit.
Request fails or times outCheck the provider and retry. Generation times out after two minutes. Reduce references or start a new chat for context-limit errors.
An old topic affects a new questionStart a new chat; earlier messages remain when you switch notes.

For bug reports, include the Obsidian and plugin versions, platform, provider/model, reproduction steps, and error message. Remove API keys and private note content.

Development

Built with TypeScript and esbuild, without a UI framework. The current dependencies have been tested with Node.js 22.23.4 and npm.

git clone https://github.com/Howzits/obsidian-ask-your-notes.git
cd obsidian-ask-your-notes
npm ci
npm run build
npm test

Copy main.js, manifest.json, and styles.css into a development vault's plugin folder. No separate logo files are needed at runtime. Run npm run dev to watch changes, then reload the plugin in Obsidian after rebuilding.

Run npm run build:brand after editing the vector logo master. See asset documentation for exports and CHANGELOG.md for release history.

Contributions are welcome. Keep changes focused, run npm run build and npm test, and explain the behavior changed and how it was verified in your pull request.

License

MIT.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.