From a23ba240558b0b0230bb19ac6d2e4c4e0052a50b Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 14 Nov 2024 07:32:43 -0300 Subject: [PATCH] fix(kb.gbapp): Cleaning vector store before indexing. --- packages/kb.gbapp/services/KBService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index f1671b5d..e9b20a2c 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -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); }