feat: 为扩展本地查询引入 SQLite + OPFS 读模型#73
Open
aurora1112-j wants to merge 1 commit intoabraxas914:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概述
本 PR 在保持 Chrome 扩展形态不变的前提下,引入了基于 SQLite + OPFS 的本地读模型,用于承接查询密集路径;Dexie / IndexedDB 仍然保留为 authoritative write path。
主要改动包括:
StorageApi保持不变验证
已完成:
pnpm -C frontend build说明
sqlite-vec/ ANN@vesti/ui/ artifact 相关的 TypeScript 问题,不属于本 PR 的核心存储查询改动范围当前离线能力边界
本次改动主要提升的是扩展内部的本地存储与查询能力。
已经本地化的部分:
仍然依赖联网或外部模型服务的部分:
也就是说,本 PR 实现的是“查询和检索尽可能本地化”,而不是“整个 Explore / LLM 能力完全离线化”。
后续如果要进一步提升离线能力,优先方向会是:
sqlite-vec/ ANN 等更完整的数据库检索方案