@wiscale/velesdb-wasm 0.6.0 → 0.8.6

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 CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@wiscale/velesdb-wasm",
3
3
  "type": "module",
4
+ "collaborators": [
5
+ "VelesDB Team <contact@wiscale.fr>"
6
+ ],
4
7
  "description": "VelesDB for WebAssembly - Vector search in the browser",
5
- "version": "0.6.0",
6
- "license": "Elastic-2.0",
8
+ "version": "0.8.6",
9
+ "license": "SEE LICENSE IN ../../LICENSE",
7
10
  "repository": {
8
11
  "type": "git",
9
- "url": "https://github.com/cyberlife-coder/VelesDB"
12
+ "url": "https://github.com/cyberlife-coder/velesdb"
10
13
  },
11
14
  "files": [
12
15
  "velesdb_wasm_bg.wasm",
@@ -14,8 +17,16 @@
14
17
  "velesdb_wasm.d.ts"
15
18
  ],
16
19
  "main": "velesdb_wasm.js",
20
+ "homepage": "https://velesdb.com",
17
21
  "types": "velesdb_wasm.d.ts",
18
22
  "sideEffects": [
19
23
  "./snippets/*"
24
+ ],
25
+ "keywords": [
26
+ "vector-database",
27
+ "wasm",
28
+ "webassembly",
29
+ "browser",
30
+ "search"
20
31
  ]
21
32
  }
package/velesdb_wasm.d.ts CHANGED
@@ -55,6 +55,10 @@ export class VectorStore {
55
55
  * - `full`: Best recall, 4 bytes/dimension
56
56
  * - `sq8`: 4x compression, ~1% recall loss
57
57
  * - `binary`: 32x compression, ~5-10% recall loss
58
+ *
59
+ * # Errors
60
+ *
61
+ * Returns an error if the metric or storage mode is unknown.
58
62
  */
59
63
  static new_with_mode(dimension: number, metric: string, mode: string): VectorStore;
60
64
  /**
@@ -269,11 +273,11 @@ export interface InitOutput {
269
273
  readonly vectorstore_search: (a: number, b: number, c: number, d: number, e: number) => void;
270
274
  readonly vectorstore_storage_mode: (a: number, b: number) => void;
271
275
  readonly vectorstore_with_capacity: (a: number, b: number, c: number, d: number, e: number) => void;
272
- readonly __wasm_bindgen_func_elem_97: (a: number, b: number, c: number) => void;
273
- readonly __wasm_bindgen_func_elem_96: (a: number, b: number) => void;
274
- readonly __wasm_bindgen_func_elem_390: (a: number, b: number, c: number) => void;
275
- readonly __wasm_bindgen_func_elem_389: (a: number, b: number) => void;
276
- readonly __wasm_bindgen_func_elem_437: (a: number, b: number, c: number, d: number) => void;
276
+ readonly __wasm_bindgen_func_elem_98: (a: number, b: number, c: number) => void;
277
+ readonly __wasm_bindgen_func_elem_97: (a: number, b: number) => void;
278
+ readonly __wasm_bindgen_func_elem_397: (a: number, b: number, c: number) => void;
279
+ readonly __wasm_bindgen_func_elem_396: (a: number, b: number) => void;
280
+ readonly __wasm_bindgen_func_elem_444: (a: number, b: number, c: number, d: number) => void;
277
281
  readonly __wbindgen_export: (a: number, b: number) => number;
278
282
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
279
283
  readonly __wbindgen_export3: (a: number) => void;
package/velesdb_wasm.js CHANGED
@@ -251,16 +251,16 @@ if (!('encodeInto' in cachedTextEncoder)) {
251
251
 
252
252
  let WASM_VECTOR_LEN = 0;
253
253
 
254
- function __wasm_bindgen_func_elem_97(arg0, arg1, arg2) {
255
- wasm.__wasm_bindgen_func_elem_97(arg0, arg1, addHeapObject(arg2));
254
+ function __wasm_bindgen_func_elem_98(arg0, arg1, arg2) {
255
+ wasm.__wasm_bindgen_func_elem_98(arg0, arg1, addHeapObject(arg2));
256
256
  }
257
257
 
258
- function __wasm_bindgen_func_elem_390(arg0, arg1, arg2) {
259
- wasm.__wasm_bindgen_func_elem_390(arg0, arg1, addHeapObject(arg2));
258
+ function __wasm_bindgen_func_elem_397(arg0, arg1, arg2) {
259
+ wasm.__wasm_bindgen_func_elem_397(arg0, arg1, addHeapObject(arg2));
260
260
  }
261
261
 
262
- function __wasm_bindgen_func_elem_437(arg0, arg1, arg2, arg3) {
263
- wasm.__wasm_bindgen_func_elem_437(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
262
+ function __wasm_bindgen_func_elem_444(arg0, arg1, arg2, arg3) {
263
+ wasm.__wasm_bindgen_func_elem_444(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
264
264
  }
265
265
 
266
266
  const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
@@ -391,6 +391,10 @@ export class VectorStore {
391
391
  * - `full`: Best recall, 4 bytes/dimension
392
392
  * - `sq8`: 4x compression, ~1% recall loss
393
393
  * - `binary`: 32x compression, ~5-10% recall loss
394
+ *
395
+ * # Errors
396
+ *
397
+ * Returns an error if the metric or storage mode is unknown.
394
398
  * @param {number} dimension
395
399
  * @param {string} metric
396
400
  * @param {string} mode
@@ -983,7 +987,7 @@ function __wbg_get_imports() {
983
987
  const a = state0.a;
984
988
  state0.a = 0;
985
989
  try {
986
- return __wasm_bindgen_func_elem_437(a, state0.b, arg0, arg1);
990
+ return __wasm_bindgen_func_elem_444(a, state0.b, arg0, arg1);
987
991
  } finally {
988
992
  state0.a = a;
989
993
  }
@@ -1104,12 +1108,12 @@ function __wbg_get_imports() {
1104
1108
  };
1105
1109
  imports.wbg.__wbindgen_cast_5672704bc77a612c = function(arg0, arg1) {
1106
1110
  // Cast intrinsic for `Closure(Closure { dtor_idx: 44, function: Function { arguments: [Externref], shim_idx: 45, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1107
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_389, __wasm_bindgen_func_elem_390);
1111
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_396, __wasm_bindgen_func_elem_397);
1108
1112
  return addHeapObject(ret);
1109
1113
  };
1110
1114
  imports.wbg.__wbindgen_cast_9cdd8d1a79740578 = function(arg0, arg1) {
1111
1115
  // Cast intrinsic for `Closure(Closure { dtor_idx: 6, function: Function { arguments: [NamedExternref("Event")], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1112
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_96, __wasm_bindgen_func_elem_97);
1116
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_97, __wasm_bindgen_func_elem_98);
1113
1117
  return addHeapObject(ret);
1114
1118
  };
1115
1119
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
Binary file