Skip to content

Commit

Permalink
Fixed a tiny bug with dbscan call and removed a dated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
drashevsky committed Mar 24, 2024
1 parent 394eb21 commit aba46ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/NavTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aba46ee

Please sign in to comment.