From aba46ee5b3f076b5cbd7eba0a3980cb1f4979880 Mon Sep 17 00:00:00 2001 From: Daniel Rashevsky Date: Sun, 24 Mar 2024 16:26:11 -0700 Subject: [PATCH] Fixed a tiny bug with dbscan call and removed a dated comment --- src/lib/NavTree.ts | 2 +- src/routes/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/NavTree.ts b/src/lib/NavTree.ts index faefe54..4fb06a6 100644 --- a/src/lib/NavTree.ts +++ b/src/lib/NavTree.ts @@ -281,7 +281,7 @@ async function dbscan_cluster(clusterLib: any, embeddings: number[][]): Promise< let embeddings_dims = embeddings[0].length; if ('__TAURI__' in window) { - return await clusterLib.invoke('kmeans_cluster', { + return await clusterLib.invoke('dbscan_cluster', { embeddings: embeddings.flat(), embeddings_cnt, embeddings_dims, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e2cba3b..54aba2e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -12,7 +12,7 @@ const STORE_JSON_FILE = "store-" + MODEL.replace("/", "-") + ".json"; const STORE_WEBSTORE_KEY = "blockstore-" + MODEL.replace("/", "-"); - let loaded = false; // does not track embedding adapter init callback + let loaded = false; let store : BlockStore; let tree : NavTree; let adapter : Worker;