hnswlib-wasm
Advanced tools
Comparing version 0.2.1-2 to 0.3.0
@@ -122,2 +122,3 @@ /***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
export const defaultParams = { | ||
@@ -381,1 +382,3 @@ /** | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ |
@@ -7,2 +7,3 @@ /***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
@@ -21,1 +22,3 @@ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ |
{ | ||
"name": "hnswlib-wasm", | ||
"version": "0.2.1-2", | ||
"version": "0.3.0", | ||
"description": "typescript and wasm bindings for Hnswlib", | ||
@@ -5,0 +5,0 @@ "module": "./dist/hnswlib.js", |
@@ -69,4 +69,4 @@ # hnswlib-wasm | ||
// Now you can add items to the index | ||
index.addItems(vectors, labelIds); | ||
// Now you can add items to the index, labels are returned as an array for the vectors. It will reuse deleted labels if possible based on the second parameter. | ||
const labels = index.addItems(vectors, true); | ||
@@ -73,0 +73,0 @@ // Now you can search the index |
6996939
19557