hermes-wasm 1.8.127 → 1.8.128
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/README.md +33 -0
- package/hermes_wasm.js +4 -4
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -326,3 +326,36 @@ Browser JS
|
|
|
326
326
|
└── IndexRegistry (multi-index management)
|
|
327
327
|
└── Map<name, RemoteIndex>
|
|
328
328
|
```
|
|
329
|
+
|
|
330
|
+
## Structured search diagnostics
|
|
331
|
+
|
|
332
|
+
`searchStructured` accepts `includeRrfScores` for fusion queries and `tracing`
|
|
333
|
+
for any supported structured query. Both default to false:
|
|
334
|
+
|
|
335
|
+
```js
|
|
336
|
+
const response = await index.searchStructured({
|
|
337
|
+
query: {
|
|
338
|
+
fusion: {
|
|
339
|
+
queries: [
|
|
340
|
+
{ name: "title", query: { match: { field: "title", text: "rust" } } },
|
|
341
|
+
{ name: "body", query: { match: { field: "body", text: "rust" } } },
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
limit: 10,
|
|
346
|
+
includeRrfScores: true,
|
|
347
|
+
tracing: true,
|
|
348
|
+
});
|
|
349
|
+
console.log(response.hits[0].rrf_score, response.hits[0].rrf_contributions);
|
|
350
|
+
console.log(response.trace.shards[0].queries);
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Responses use snake_case, matching other WASM search results. RRF attribution
|
|
354
|
+
uses complete bounded branch lists before pagination and leaves `score`
|
|
355
|
+
unchanged. The local trace includes each branch's query tree, raw candidate
|
|
356
|
+
scores/ordinals and selected addresses, without hydrating discarded documents.
|
|
357
|
+
It contains one local shard with empty broker/backend IDs. The trace observes
|
|
358
|
+
the configured retrieval depth and does not run Boolean clauses independently.
|
|
359
|
+
The diagnostic window is capped at 10,000; candidate/ordinal bounds and a 64 MiB
|
|
360
|
+
JSON response limit reject oversized exports. WASM supports its existing RRF and
|
|
361
|
+
weighted-sum fusion modes; server L1/reranker features remain server APIs.
|
package/hermes_wasm.js
CHANGED
|
@@ -1344,22 +1344,22 @@ function __wbg_get_imports() {
|
|
|
1344
1344
|
console.warn(arg0);
|
|
1345
1345
|
},
|
|
1346
1346
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1347
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1347
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1957, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1348
1348
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___wasm_bindgen_7dc0dc7663c6ddce___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_7dc0dc7663c6ddce___JsError___true_);
|
|
1349
1349
|
return ret;
|
|
1350
1350
|
},
|
|
1351
1351
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1352
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1352
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 501, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1353
1353
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_456b715baf4530bf___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
1354
1354
|
return ret;
|
|
1355
1355
|
},
|
|
1356
1356
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1357
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1357
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 501, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1358
1358
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_456b715baf4530bf___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__66);
|
|
1359
1359
|
return ret;
|
|
1360
1360
|
},
|
|
1361
1361
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1362
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1362
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1089, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1363
1363
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_);
|
|
1364
1364
|
return ret;
|
|
1365
1365
|
},
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|