fix(kb.gbapp): Cleaning vector store before indexing.

This commit is contained in:
Rodrigo Rodriguez 2024-11-14 07:32:43 -03:00
parent eca5b4e81f
commit a23ba24055

View file

@ -1106,7 +1106,7 @@ export class KBService implements IGBKBService {
GBLogEx.info(min, `Cleaning vector store: ${min['vectorStorePath']}...`)
const gbkbPath = GBUtil.getGBAIPath(min.botId, 'gbkb');
min['vectorStorePath'] = path.join('work', gbkbPath, 'docs-vectorized');
min['vectorStore'] = await min.deployService.loadOrCreateEmptyVectorStore(min);
min['vectorStore'] = await min.deployService['loadOrCreateEmptyVectorStore'](min);
}