AppFlowy-IO / AppFlowy-Cloud

AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
GNU Affero General Public License v3.0
524 stars 145 forks source link

chore: disabling indexing on workspace prunes collab embeddings #666

Closed Horusiath closed 5 days ago

Horusiath commented 5 days ago
  1. turning off workspace.settings.disable_search_indexing should prune af_collab_embeddings for that workspace: otherwise they will be outdated (as are no longer indexed) but will still appear in search results.
  2. should turning on workspace.settings.disable_search_indexing cause all of the collabs in that workspace to be reindexed? (question to @appflowy). IMO this could be an issue: if user starts flipping the disable indexing switch, they may overburden server with redundant requests and our AI billing will grow very easily.