@wiscale/velesdb-wasm 1.7.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/velesdb_wasm.d.ts +11 -5
- package/velesdb_wasm.js +18 -12
- package/velesdb_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/velesdb_wasm.d.ts
CHANGED
|
@@ -536,6 +536,12 @@ export enum StorageMode {
|
|
|
536
536
|
* fallback. For true PQ, use the native `velesdb-core` crate.
|
|
537
537
|
*/
|
|
538
538
|
ProductQuantization = 3,
|
|
539
|
+
/**
|
|
540
|
+
* `RaBitQ`: 1-bit with rotation + scalar correction (32x compression).
|
|
541
|
+
* **WASM limitation**: training requires `ndarray`/`persistence`. Falls back
|
|
542
|
+
* to Full precision in WASM builds.
|
|
543
|
+
*/
|
|
544
|
+
RaBitQ = 4,
|
|
539
545
|
}
|
|
540
546
|
|
|
541
547
|
/**
|
|
@@ -976,11 +982,11 @@ export interface InitOutput {
|
|
|
976
982
|
readonly graphnode_id: (a: number) => bigint;
|
|
977
983
|
readonly __wbg_get_traversalprogress_is_complete: (a: number) => number;
|
|
978
984
|
readonly __wbg_traversalprogress_free: (a: number, b: number) => void;
|
|
979
|
-
readonly
|
|
980
|
-
readonly
|
|
981
|
-
readonly
|
|
982
|
-
readonly
|
|
983
|
-
readonly
|
|
985
|
+
readonly __wasm_bindgen_func_elem_1375: (a: number, b: number) => void;
|
|
986
|
+
readonly __wasm_bindgen_func_elem_292: (a: number, b: number) => void;
|
|
987
|
+
readonly __wasm_bindgen_func_elem_1376: (a: number, b: number, c: number, d: number) => void;
|
|
988
|
+
readonly __wasm_bindgen_func_elem_1416: (a: number, b: number, c: number, d: number) => void;
|
|
989
|
+
readonly __wasm_bindgen_func_elem_293: (a: number, b: number, c: number) => void;
|
|
984
990
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
985
991
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
986
992
|
readonly __wbindgen_export3: (a: number) => void;
|
package/velesdb_wasm.js
CHANGED
|
@@ -1350,7 +1350,7 @@ if (Symbol.dispose) SparseIndex.prototype[Symbol.dispose] = SparseIndex.prototyp
|
|
|
1350
1350
|
|
|
1351
1351
|
/**
|
|
1352
1352
|
* Storage mode for vector quantization.
|
|
1353
|
-
* @enum {0 | 1 | 2 | 3}
|
|
1353
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
1354
1354
|
*/
|
|
1355
1355
|
export const StorageMode = Object.freeze({
|
|
1356
1356
|
/**
|
|
@@ -1371,6 +1371,12 @@ export const StorageMode = Object.freeze({
|
|
|
1371
1371
|
* fallback. For true PQ, use the native `velesdb-core` crate.
|
|
1372
1372
|
*/
|
|
1373
1373
|
ProductQuantization: 3, "3": "ProductQuantization",
|
|
1374
|
+
/**
|
|
1375
|
+
* `RaBitQ`: 1-bit with rotation + scalar correction (32x compression).
|
|
1376
|
+
* **WASM limitation**: training requires `ndarray`/`persistence`. Falls back
|
|
1377
|
+
* to Full precision in WASM builds.
|
|
1378
|
+
*/
|
|
1379
|
+
RaBitQ: 4, "4": "RaBitQ",
|
|
1374
1380
|
});
|
|
1375
1381
|
|
|
1376
1382
|
/**
|
|
@@ -2537,7 +2543,7 @@ function __wbg_get_imports() {
|
|
|
2537
2543
|
const a = state0.a;
|
|
2538
2544
|
state0.a = 0;
|
|
2539
2545
|
try {
|
|
2540
|
-
return
|
|
2546
|
+
return __wasm_bindgen_func_elem_1416(a, state0.b, arg0, arg1);
|
|
2541
2547
|
} finally {
|
|
2542
2548
|
state0.a = a;
|
|
2543
2549
|
}
|
|
@@ -2559,7 +2565,7 @@ function __wbg_get_imports() {
|
|
|
2559
2565
|
const a = state0.a;
|
|
2560
2566
|
state0.a = 0;
|
|
2561
2567
|
try {
|
|
2562
|
-
return
|
|
2568
|
+
return __wasm_bindgen_func_elem_1416(a, state0.b, arg0, arg1);
|
|
2563
2569
|
} finally {
|
|
2564
2570
|
state0.a = a;
|
|
2565
2571
|
}
|
|
@@ -2692,13 +2698,13 @@ function __wbg_get_imports() {
|
|
|
2692
2698
|
return addHeapObject(ret);
|
|
2693
2699
|
},
|
|
2694
2700
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2695
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2696
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2701
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 176, function: Function { arguments: [Externref], shim_idx: 177, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2702
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1375, __wasm_bindgen_func_elem_1376);
|
|
2697
2703
|
return addHeapObject(ret);
|
|
2698
2704
|
},
|
|
2699
2705
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2700
2706
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [NamedExternref("Event")], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2701
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2707
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_292, __wasm_bindgen_func_elem_293);
|
|
2702
2708
|
return addHeapObject(ret);
|
|
2703
2709
|
},
|
|
2704
2710
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -2735,14 +2741,14 @@ function __wbg_get_imports() {
|
|
|
2735
2741
|
};
|
|
2736
2742
|
}
|
|
2737
2743
|
|
|
2738
|
-
function
|
|
2739
|
-
wasm.
|
|
2744
|
+
function __wasm_bindgen_func_elem_293(arg0, arg1, arg2) {
|
|
2745
|
+
wasm.__wasm_bindgen_func_elem_293(arg0, arg1, addHeapObject(arg2));
|
|
2740
2746
|
}
|
|
2741
2747
|
|
|
2742
|
-
function
|
|
2748
|
+
function __wasm_bindgen_func_elem_1376(arg0, arg1, arg2) {
|
|
2743
2749
|
try {
|
|
2744
2750
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2745
|
-
wasm.
|
|
2751
|
+
wasm.__wasm_bindgen_func_elem_1376(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2746
2752
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2747
2753
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2748
2754
|
if (r1) {
|
|
@@ -2753,8 +2759,8 @@ function __wasm_bindgen_func_elem_1319(arg0, arg1, arg2) {
|
|
|
2753
2759
|
}
|
|
2754
2760
|
}
|
|
2755
2761
|
|
|
2756
|
-
function
|
|
2757
|
-
wasm.
|
|
2762
|
+
function __wasm_bindgen_func_elem_1416(arg0, arg1, arg2, arg3) {
|
|
2763
|
+
wasm.__wasm_bindgen_func_elem_1416(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2758
2764
|
}
|
|
2759
2765
|
|
|
2760
2766
|
|
package/velesdb_wasm_bg.wasm
CHANGED
|
Binary file
|