[PR #7892] [MERGED] chore: use tanvity as fallback ai search #8188

Closed
opened 2026-03-23 23:23:01 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7892
Author: @appflowy
Created: 5/7/2025
Status: Merged
Merged: 5/7/2025
Merged by: @appflowy

Base: mainHead: tanvity_search_fallback


📝 Commits (5)

📊 Changes

26 files changed (+784 additions, -577 deletions)

View changed files

📝 frontend/rust-lib/Cargo.lock (+5 -0)
📝 frontend/rust-lib/flowy-ai/src/embeddings/scheduler.rs (+2 -0)
📝 frontend/rust-lib/flowy-core/src/app_life_cycle.rs (+56 -64)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rs (+2 -2)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps/folder_deps_doc_impl.rs (+8 -1)
📝 frontend/rust-lib/flowy-core/src/folder_view_observer.rs (+1 -1)
📝 frontend/rust-lib/flowy-core/src/full_indexed_data_provider.rs (+2 -6)
📝 frontend/rust-lib/flowy-core/src/indexed_data_consumer.rs (+18 -46)
📝 frontend/rust-lib/flowy-core/src/indexing_data_runner.rs (+8 -5)
📝 frontend/rust-lib/flowy-core/src/server_layer.rs (+34 -21)
📝 frontend/rust-lib/flowy-search-pub/Cargo.toml (+6 -1)
📝 frontend/rust-lib/flowy-search-pub/src/entities.rs (+15 -0)
📝 frontend/rust-lib/flowy-search-pub/src/lib.rs (+4 -0)
📝 frontend/rust-lib/flowy-search-pub/src/schema.rs (+0 -1)
frontend/rust-lib/flowy-search-pub/src/tantivy_state.rs (+424 -0)
frontend/rust-lib/flowy-search-pub/src/tantivy_state_init.rs (+52 -0)
📝 frontend/rust-lib/flowy-search/src/document/local_search_handler.rs (+15 -399)
📝 frontend/rust-lib/flowy-search/src/entities/result.rs (+2 -2)
📝 frontend/rust-lib/flowy-search/src/lib.rs (+0 -1)
📝 frontend/rust-lib/flowy-search/src/services/manager.rs (+2 -1)

...and 6 more files

📄 Description

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Summary by Sourcery

Implement Tantivy as a fallback search mechanism for local document search, enhancing the search capabilities when AI-based search fails or returns no results.

New Features:

  • Add local Tantivy-based search as a fallback mechanism for document search

Enhancements:

  • Improve search resilience by implementing a two-tier search strategy
  • Add support for indexing and searching documents using Tantivy

Chores:

  • Refactor search-related code to support multiple search strategies

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7892 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 5/7/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `tanvity_search_fallback` --- ### 📝 Commits (5) - [`0598b66`](https://github.com/AppFlowy-IO/AppFlowy/commit/0598b661405972cba189f8c5db3a285c9e0299e5) chore: use tanvity as fallback ai search - [`fa45c22`](https://github.com/AppFlowy-IO/AppFlowy/commit/fa45c22a498d09c9ec822235b1cf5043d1499b1c) chore: fix test - [`7075e9f`](https://github.com/AppFlowy-IO/AppFlowy/commit/7075e9f81da319c3ae38df418d370e8bb6bd4cea) chore: fix test - [`c0614b7`](https://github.com/AppFlowy-IO/AppFlowy/commit/c0614b71fc811dcc238d0b168b1e8b0cbceba088) chore: fix test - [`28b97fe`](https://github.com/AppFlowy-IO/AppFlowy/commit/28b97fe7fab78f1493a8a5092a0c88d91a0a628c) chore: fix test ### 📊 Changes **26 files changed** (+784 additions, -577 deletions) <details> <summary>View changed files</summary> 📝 `frontend/rust-lib/Cargo.lock` (+5 -0) 📝 `frontend/rust-lib/flowy-ai/src/embeddings/scheduler.rs` (+2 -0) 📝 `frontend/rust-lib/flowy-core/src/app_life_cycle.rs` (+56 -64) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps/folder_deps_doc_impl.rs` (+8 -1) 📝 `frontend/rust-lib/flowy-core/src/folder_view_observer.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/full_indexed_data_provider.rs` (+2 -6) 📝 `frontend/rust-lib/flowy-core/src/indexed_data_consumer.rs` (+18 -46) 📝 `frontend/rust-lib/flowy-core/src/indexing_data_runner.rs` (+8 -5) 📝 `frontend/rust-lib/flowy-core/src/server_layer.rs` (+34 -21) 📝 `frontend/rust-lib/flowy-search-pub/Cargo.toml` (+6 -1) 📝 `frontend/rust-lib/flowy-search-pub/src/entities.rs` (+15 -0) 📝 `frontend/rust-lib/flowy-search-pub/src/lib.rs` (+4 -0) 📝 `frontend/rust-lib/flowy-search-pub/src/schema.rs` (+0 -1) ➕ `frontend/rust-lib/flowy-search-pub/src/tantivy_state.rs` (+424 -0) ➕ `frontend/rust-lib/flowy-search-pub/src/tantivy_state_init.rs` (+52 -0) 📝 `frontend/rust-lib/flowy-search/src/document/local_search_handler.rs` (+15 -399) 📝 `frontend/rust-lib/flowy-search/src/entities/result.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-search/src/lib.rs` (+0 -1) 📝 `frontend/rust-lib/flowy-search/src/services/manager.rs` (+2 -1) _...and 6 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. ## Summary by Sourcery Implement Tantivy as a fallback search mechanism for local document search, enhancing the search capabilities when AI-based search fails or returns no results. New Features: - Add local Tantivy-based search as a fallback mechanism for document search Enhancements: - Improve search resilience by implementing a two-tier search strategy - Add support for indexing and searching documents using Tantivy Chores: - Refactor search-related code to support multiple search strategies --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:23:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#8188
No description provided.