diff --git a/logo.png b/logo.png deleted file mode 100644 index 9a0a1a84..00000000 Binary files a/logo.png and /dev/null differ diff --git a/package.json b/package.json index d9f8058a..aed42f48 100644 --- a/package.json +++ b/package.json @@ -209,7 +209,7 @@ "typescript": "5.4.5", "url-join": "5.0.0", "vhost": "3.0.2", - "vm2": "3.9.11", + "vm2": "3.9.19", "vm2-process": "2.1.5", "walk-promise": "0.2.0", "washyourmouthoutwithsoap": "1.0.2", diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index 0c264cf5..ae63b6fd 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -337,14 +337,14 @@ export class GBDeployer implements IGBDeployer { azureOpenAIApiVersion: azureOpenAIVersion, azureOpenAIApiInstanceName: azureOpenAIApiInstanceName }); - + try { vectorStore = await HNSWLib.load(min['vectorStorePath'], embedding); } catch { vectorStore = new HNSWLib(embedding, { - space: 'cosine', - numDimensions: 1536 + space: 'cosine' }); + } return vectorStore; } diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index 6fbcfb8b..5af5b345 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -917,7 +917,6 @@ export class KBService implements IGBKBService { ({ currentDomain, websiteIgnoreUrls }) => { const anchors = Array.from(document.querySelectorAll('a')).filter(p => { try { - return currentDomain == new URL(p.href).hostname.toLocaleLowerCase(); } catch (err) { return false; @@ -1024,12 +1023,10 @@ export class KBService implements IGBKBService { const websiteIgnoreUrls = min.core.getParam(min.instance, 'Website Ignore URLs', null); if (website) { - // Removes last slash if any. - website =website.replace(/\/(?=[^\/]*$)/, ""); + website = website.replace(/\/(?=[^\/]*$)/, ''); - Fs.rmSync(min['vectorStorePath'], { recursive: true, force: true }); let path = DialogKeywords.getGBAIPath(min.botId, `gbot`); const directoryPath = Path.join(process.env.PWD, 'work', path, 'Website'); Fs.rmSync(directoryPath, { recursive: true, force: true });