[PR #7881] [MERGED] chore: local ai chat with pages #8181

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

📋 Pull Request Information

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

Base: mainHead: local_chat_with_file


📝 Commits (9)

📊 Changes

54 files changed (+1123 additions, -410 deletions)

View changed files

📝 .github/workflows/flutter_ci.yaml (+1 -1)
📝 .github/workflows/rust_ci.yaml (+1 -1)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_input.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart (+2 -1)
📝 frontend/rust-lib/Cargo.lock (+14 -13)
📝 frontend/rust-lib/Cargo.toml (+3 -3)
📝 frontend/rust-lib/collab-integrate/src/collab_builder.rs (+3 -3)
📝 frontend/rust-lib/collab-integrate/src/instant_indexed_data_provider.rs (+119 -10)
📝 frontend/rust-lib/event-integration-test/src/chat_event.rs (+7 -0)
frontend/rust-lib/event-integration-test/tests/chat/local_chat_test.rs (+1 -0)
📝 frontend/rust-lib/event-integration-test/tests/chat/mod.rs (+1 -0)
📝 frontend/rust-lib/flowy-ai-pub/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-ai-pub/src/cloud.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai-pub/src/entities.rs (+5 -4)
📝 frontend/rust-lib/flowy-ai-pub/src/persistence/chat_message_sql.rs (+2 -1)
📝 frontend/rust-lib/flowy-ai/src/ai_manager.rs (+47 -12)
📝 frontend/rust-lib/flowy-ai/src/chat.rs (+9 -3)
📝 frontend/rust-lib/flowy-ai/src/embeddings/document_indexer.rs (+4 -2)
📝 frontend/rust-lib/flowy-ai/src/embeddings/scheduler.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai/src/embeddings/store.rs (+34 -8)

...and 34 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

Enhance local AI chat functionality with improved document indexing, embedding, and retrieval capabilities across multiple components

New Features:

  • Add support for retrieving and searching embedded documents
  • Implement more robust RAG (Retrieval Augmented Generation) document handling
  • Enhance local AI chat with dynamic RAG ID management

Enhancements:

  • Improve vector store search and embedding mechanisms
  • Refactor indexing and embedding data providers
  • Add more detailed tracing and logging for AI and embedding processes

Chores:

  • Restructure code to support more flexible document indexing
  • Update interfaces for better separation of concerns

🔄 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/7881 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 5/6/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `local_chat_with_file` --- ### 📝 Commits (9) - [`65b716b`](https://github.com/AppFlowy-IO/AppFlowy/commit/65b716b21501ed676c97179a54ddca94df960e56) chore: local ai chat with page - [`2cfaa62`](https://github.com/AppFlowy-IO/AppFlowy/commit/2cfaa6205f86d6f4712da0e7c5d6690612fdb913) chore: temp - [`ce765e8`](https://github.com/AppFlowy-IO/AppFlowy/commit/ce765e8a8aa344a1dc908a9c0ac591bd82533866) chore: clippy - [`91a595e`](https://github.com/AppFlowy-IO/AppFlowy/commit/91a595e8c3ab8bcf206b80900effbf3f7813ee69) chore: fix ui bugs - [`ddb92c1`](https://github.com/AppFlowy-IO/AppFlowy/commit/ddb92c1cd52d2e2228089e18cc559ed41ce50960) chore: fix ui bugs - [`901aed0`](https://github.com/AppFlowy-IO/AppFlowy/commit/901aed0075d2cea3adf65532fa392bfd7d9ab96b) chore: fix view title - [`beb8c42`](https://github.com/AppFlowy-IO/AppFlowy/commit/beb8c428741e53881b900365eaeba3eb00c10051) chore: cloud id - [`23aba1c`](https://github.com/AppFlowy-IO/AppFlowy/commit/23aba1c573554e2896ca547d27623a67cd2ab501) chore: bump server - [`17eebfd`](https://github.com/AppFlowy-IO/AppFlowy/commit/17eebfd2e3bdc08ed582966aac7a9f19bf47e83e) chore: bump server ### 📊 Changes **54 files changed** (+1123 additions, -410 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/flutter_ci.yaml` (+1 -1) 📝 `.github/workflows/rust_ci.yaml` (+1 -1) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_input.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart` (+2 -1) 📝 `frontend/rust-lib/Cargo.lock` (+14 -13) 📝 `frontend/rust-lib/Cargo.toml` (+3 -3) 📝 `frontend/rust-lib/collab-integrate/src/collab_builder.rs` (+3 -3) 📝 `frontend/rust-lib/collab-integrate/src/instant_indexed_data_provider.rs` (+119 -10) 📝 `frontend/rust-lib/event-integration-test/src/chat_event.rs` (+7 -0) ➕ `frontend/rust-lib/event-integration-test/tests/chat/local_chat_test.rs` (+1 -0) 📝 `frontend/rust-lib/event-integration-test/tests/chat/mod.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-ai-pub/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-ai-pub/src/cloud.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai-pub/src/entities.rs` (+5 -4) 📝 `frontend/rust-lib/flowy-ai-pub/src/persistence/chat_message_sql.rs` (+2 -1) 📝 `frontend/rust-lib/flowy-ai/src/ai_manager.rs` (+47 -12) 📝 `frontend/rust-lib/flowy-ai/src/chat.rs` (+9 -3) 📝 `frontend/rust-lib/flowy-ai/src/embeddings/document_indexer.rs` (+4 -2) 📝 `frontend/rust-lib/flowy-ai/src/embeddings/scheduler.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai/src/embeddings/store.rs` (+34 -8) _...and 34 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 Enhance local AI chat functionality with improved document indexing, embedding, and retrieval capabilities across multiple components New Features: - Add support for retrieving and searching embedded documents - Implement more robust RAG (Retrieval Augmented Generation) document handling - Enhance local AI chat with dynamic RAG ID management Enhancements: - Improve vector store search and embedding mechanisms - Refactor indexing and embedding data providers - Add more detailed tracing and logging for AI and embedding processes Chores: - Restructure code to support more flexible document indexing - Update interfaces for better separation of concerns --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:59 +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#8181
No description provided.