memos icon indicating copy to clipboard operation
memos copied to clipboard

Add Semantic Search

Open playlogo opened this issue 2 months ago • 2 comments

Check before submitting

  • [x] I searched existing issues and did not find a duplicate

What problem would this solve?

Memos currently only supports strict keyword exact-match search, which means users can only find memos by typing the exact words the memo contains. However, in most cases, users only remember the general meaning and context of their past notes, but not the precise wording (especially for older notes) which can result in poor search experiences. For example, a memo about "drinking warm water in the morning" cannot be retrieved by searching "morning hydration habit"; a memo about "weekly Sunday work summary" cannot be matched by searching "weekly work review".

What would you like to happen?

Add optional "AI" Semantic Based Search (meaning-based search) which probably at least includes the logic to:

  • Allow the user to configure an AI Provider and select an embedding model
  • Warn the user that changing the embedding model means re-embedding everything from scratch
  • Create embeddings for every existing note when the user enables Semantic Search for the first time
  • Update the embedding when a note changes
  • Embed the search term and calculate which other embeddings are close (=relevant) to it
    • Merge these embedding results with keyword-based search

Notes:

  • The existing "AI-Provider" settings page and framework, currently only used for the audio transcriptions, could probably be reused, as the OpenAI API specification also includes an endpoint for embedding models (and I'd bet the Gemini API does too).
  • Storing and efficiently searching the embedding vectors in the 3 database options Memos supports would probably be quite annoying to impliment:

Additional context

This feature request is a 1:1 duplicate of https://github.com/usememos/memos/issues/6041 (with some different wording), which was closed by the github-actions bot before it could get any response. Following the advice I got on the Discord server I'm creating a new feature request on GitHub about the same thing.

playlogo avatar Sep 27 '26 18:09 playlogo

This issue has been automatically marked as stale because it has had no activity for 30 days. It will be closed in 7 days if no further activity occurs. Comment with any relevant updates to keep it open.

github-actions[bot] avatar Oct 28 '26 02:10 github-actions[bot]

This issue has been automatically closed because it remained inactive for 7 days after being marked stale. If it is still relevant, comment with updated details so it can be reconsidered.

github-actions[bot] avatar Nov 05 '26 02:11 github-actions[bot]