Ask vault and saved prompts
Both live in the AI panel — ⌃⌘4 / Ctrl+Shift+4. Set up a provider first: see AI setup.
Ask vault
Section titled “Ask vault”Type a question in the panel’s question box and click Ask vault (not Send). mdai finds the passages in your notes that are closest to the question, and the provider chosen under Provider writes the answer from them. Under the answer, Sources: lists the notes it used.
Ask vault needs Ollama running on your
computer with an embedding model — the model that finds the passages. mdai
suggests bge-m3:
ollama pull bge-m3Finding the passages happens on your computer, through Ollama. Where the answer is written depends on Provider:
- Ollama — the question and the passages stay on your computer.
- A cloud provider — the question and the passages mdai found are sent to that provider.
Saved prompts
Section titled “Saved prompts”A prompt you use often can be saved under a name.
- Write the prompt in the question box — for example Rewrite this note as three short bullet points.
- Click ⋯ (More) next to Send, and type a name in Preset name — Bullets.
- Click Save prompt.
The prompt now has its own button next to Summarize, Fix grammar and Translate to English, and its own command in the palette — type its name in ⇧⌘P / Ctrl+Shift+P and choose AI prompt: Bullets. The answer arrives like any other suggestion, as a difference you Accept or Reject.
To delete a saved prompt, open ⋯, type its name in Preset name and click Delete preset, then click again to confirm — the button asks Delete “Bullets”? first.
Saved prompts are kept in mdai’s settings file, not in your vault.
Related
Section titled “Related”- AI setup — providers, keys, and what leaves your computer
- External agents (MCP)