Local Semantic Search & Related Notes (Vector Embeddings)
What problem are you facing?
As a notebook grows, standard keyword/lexical search fails to surface conceptually related notes that do not share the exact same words or tags. Users often forget past notes or struggle to connect related ideas across a large knowledge base.
Proposed Solution
Implement an opt-in, local semantic search / "Related Notes" engine powered by a lightweight, embedded AI vector model (such as a small text-embedding ONNX model running locally via WebAssembly/native bindings).
Similar to plugins like Smart Connections in Obsidian or apps like Pellet, this model would run locally on the client device to generate embeddings for downloaded notes.
Key Functionality & Features
Related Notes Side Panel: When viewing a note, display a side panel showing topically/conceptually similar notes based on semantic closeness rather than exact word matches.
Semantic Query Search: Allow searching notes by concept/meaning (e.g., searching "how to fix Wi-Fi issues" surfaces a note titled "Linux NetworkManager Troubleshooting").
100% Local & Privacy-Preserving:
Embeddings are generated entirely on-device using locally stored/cached notes.
Zero note content or raw text is ever sent to external AI servers or third-party APIs.
Fully compatible with end-to-end encryption (E2EE) since vector indexing happens post-decryption on the user's local hardware.
Technical Considerations
Model Size: Use an extremely compact, open-source embedding model (e.g., all-MiniLM-L6-v2 or similar quantized ONNX models under ~30–50 MB).
Storage & Indexing: Store vector indexes locally (e.g., via IndexedDB/SQLite vector extension).
Performance Control: Limit embedding generation to full offline / background sync tasks to avoid battery/CPU drain on low-spec mobile devices.
Use Case / Value
This significantly enhances discovery across personal libraries, helps surface forgotten research, and bridges context between notes without requiring manual tagging or linking.
What's the solution you'd like to see in Notesnook?
What alternatives have you considered?
Additional context
Source: streetwriters/notesnook