Enhance RAG functionality, add file system options for storing vector embeddings, support IndexedDB and Origin Private File System, update relevant settings and internationalization support.

This commit is contained in:
duanfuxiang
2025-07-08 21:33:02 +08:00
parent 8ac5945f9b
commit 10a1c8a23c
9 changed files with 72 additions and 24 deletions

View File

@@ -21,9 +21,9 @@ export class DBManager {
this.app = app
}
static async create(app: App): Promise<DBManager> {
static async create(app: App, filesystem: string): Promise<DBManager> {
const dbManager = new DBManager(app)
dbManager.db = await createAndInitDb()
dbManager.db = await createAndInitDb(filesystem)
dbManager.vectorManager = new VectorManager(app, dbManager)
dbManager.CommandManager = new CommandManager(app, dbManager)