mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-09 16:38:19 +00:00
update vector query time, remove delete file process
This commit is contained in:
@@ -53,6 +53,7 @@ export class RAGEngine {
|
||||
throw new Error('Embedding model is not set')
|
||||
}
|
||||
await this.initializeDimension()
|
||||
console.log("updateVaultIndex")
|
||||
|
||||
await this.vectorManager.updateVaultIndex(
|
||||
this.embeddingModel,
|
||||
@@ -69,6 +70,7 @@ export class RAGEngine {
|
||||
})
|
||||
},
|
||||
)
|
||||
console.log("updateVaultIndex done")
|
||||
this.initialized = true
|
||||
}
|
||||
|
||||
@@ -121,9 +123,10 @@ export class RAGEngine {
|
||||
|
||||
await this.initializeDimension()
|
||||
|
||||
if (!this.initialized) {
|
||||
await this.updateVaultIndex({ reindexAll: false }, onQueryProgressChange)
|
||||
}
|
||||
// if (!this.initialized) {
|
||||
// console.log("need to updateVaultIndex")
|
||||
// await this.updateVaultIndex({ reindexAll: false }, onQueryProgressChange)
|
||||
// }
|
||||
const queryEmbedding = await this.getEmbedding(query)
|
||||
onQueryProgressChange?.({
|
||||
type: 'querying',
|
||||
|
||||
Reference in New Issue
Block a user