Connect vault-rag
This wires up the vault-rag plugin. It's a little special: it uses two endpoints — one for embeddings (semantic search) and one for chat — and they can point at different servers.
What needs a server, and what doesn't
- Related notes & semantic search run entirely from a small on-disk index in
<vault>/_vaultrag/— no server, fully offline, works on mobile. - Building the index (the full-reindex command), live re-indexing (notes are re-embedded when you save) and chat need a running server.
Settings
Both kinds of endpoint are a priority list, not a single field: the first reachable row wins, and each row says whether it is active, a fallback, or skipped. You can move any row to the front with one click, and every row has its own connection test.
- Embedding endpoint — add Ollama at
http://localhost:11434as a row. - Embedding model — set it on that row, and it must match the model your index was built with (default
qwen3-embedding:8b). A row whose model doesn't match the index is skipped, and a write from a mismatched model is refused, so a different model means a full reindex. - Chat endpoint — add your chat server as a row, e.g. LM Studio at
http://localhost:1234. - Chat model — set it on that row (default
qwen3). Chat has no index to protect, so there is no model check here.
Optionally a row can carry an API key and turn into a hosted provider, sitting in the same list as your local servers. Keys live in Obsidian's keychain and do not travel with settings sync, so enter them again on each device.
See endpoint & model for the URL format.
Common pitfalls
- Embedding model must match the index — otherwise the row is skipped.
- Reachable is not the same as in use — read the status on each row; the first reachable endpoint is the one that answers.
- Endpoints without
/v1— enter the base URL, the plugin appends it. See the /v1 trap.
→ On mobile too: Mobile access.