@ruvector/rvf-node 0.4.0 → 0.4.1
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
CHANGED
|
@@ -163,6 +163,8 @@ const results = db.query(
|
|
|
163
163
|
| `efSearch` | `number` | `100` | HNSW search quality (higher = better recall, slower) |
|
|
164
164
|
| `filter` | `string` | — | Filter expression as JSON string |
|
|
165
165
|
| `timeoutMs` | `number` | `0` | Query timeout in ms (0 = no timeout) |
|
|
166
|
+
| `rabitq` | `boolean` | `false` | Opt in to the RaBitQ two-stage path (1-bit scan + exact rescore) |
|
|
167
|
+
| `forceExact` | `boolean` | `false` | Exact brute-force scan, no HNSW. Filtered queries are already exact when the filter is selective (<15%) or the graph measures below 0.95 recall@10 |
|
|
166
168
|
|
|
167
169
|
### Filter Expressions
|
|
168
170
|
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export interface RvfQueryOptions {
|
|
|
15
15
|
timeoutMs?: number;
|
|
16
16
|
/** Opt in to the RaBitQ two-stage path (L2, cosine, inner product). */
|
|
17
17
|
rabitq?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Force the exact brute-force scan. Filtered queries whose filter keeps a
|
|
20
|
+
* large share of the store otherwise use the approximate filtered HNSW walk.
|
|
21
|
+
*/
|
|
22
|
+
forceExact?: boolean;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export interface RvfSearchResult {
|
package/package.json
CHANGED
|
Binary file
|
package/rvf-node.darwin-x64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|