← Grimoire

Search

Open the Search panel with Ctrl+F (⌘F on macOS). The panel combines full-text and semantic search over your notes.

Source pointers: Search.svelte, commands/search.rs.

Full-text (FTS)

SQLite FTS indexes note text as you save. Keyword-style queries work without an embedding model. After Ctrl+S, FTS updates for that note as part of the save path (Vault & data).

Semantic results use vector embeddings in LanceDB. That path needs:

  1. Ollama running locally (http://localhost:11434)
  2. The configured embedding model pulled (default fallback nomic-embed-text)

Changing the embedding model invalidates the vector index — use the clear + re-index flow in Settings → LLM.

Locked content

Locked vault / folder content is excluded from normal search (and from RAG) until unlocked. Treat ciphertext as absent from results (Privacy & security).

Relationship to chat RAG (“Use notes”)

Search and chat Use notes share the same underlying indexes:

SurfaceRole
Ctrl+F SearchYou browse FTS + semantic hits yourself
Chat → Use notesThe assistant retrieves relevant chunks via RAG and injects them as context

If Search finds a note but chat does not, check the Use notes toggle, that the note is saved and unlocked, and that Ollama embeddings succeeded (AI assistant).

See also