mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 08:00:10 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user