Skip to content

Ask vault and saved prompts

Both live in the AI panel — ⌃⌘4 / Ctrl+Shift+4. Set up a provider first: see AI setup.

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:

Terminal window
ollama pull bge-m3

Finding 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.

A prompt you use often can be saved under a name.

  1. Write the prompt in the question box — for example Rewrite this note as three short bullet points.
  2. Click ⋯ (More) next to Send, and type a name in Preset name — Bullets.
  3. 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.