@infino-ai/infino 0.8.4 → 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/infino/index.d.ts +15 -2
- package/infino/index.js +1 -1
- package/infino/native.d.ts +7 -0
- package/package.json +7 -7
package/infino/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { IndexSpec } from "./native.js";
|
|
|
3
3
|
export { IndexSpec };
|
|
4
4
|
/** Infino's build identifier (version + build hash). */
|
|
5
5
|
export declare const BUILDER_ID: string;
|
|
6
|
-
/** Vector distance metric.
|
|
7
|
-
|
|
6
|
+
/** Vector distance metric. `l2` and `dot` are accepted spellings of `l2sq`
|
|
7
|
+
* and `negdot`, matching the Python binding and the hosted API. */
|
|
8
|
+
export type Metric = "cosine" | "l2sq" | "l2" | "negdot" | "dot";
|
|
8
9
|
/** Boolean mode for multi-term FTS queries. */
|
|
9
10
|
export type BoolMode = "or" | "and";
|
|
10
11
|
/** BM25 statistics scope: corpus-wide `"global"` IDF across superfiles
|
|
@@ -94,6 +95,11 @@ export interface OptimizeOptions {
|
|
|
94
95
|
/** How old a sealed tombstone sidecar has to be, in milliseconds,
|
|
95
96
|
* before compaction treats its owner as dead and takes over. */
|
|
96
97
|
staleSealTimeoutMs?: number;
|
|
98
|
+
/** When to recalibrate the vector probe laws (the O(N) query-serving
|
|
99
|
+
* calibration): `"auto"` (default — only when membership changed or the
|
|
100
|
+
* rerank pool lags), `"force"` (always), or `"skip"` (never; storage
|
|
101
|
+
* compaction still runs). Omit for `"auto"`. */
|
|
102
|
+
recalibrate?: "auto" | "force" | "skip";
|
|
97
103
|
}
|
|
98
104
|
export interface Bm25SearchOptions {
|
|
99
105
|
mode?: BoolMode;
|
|
@@ -101,6 +107,13 @@ export interface Bm25SearchOptions {
|
|
|
101
107
|
stats?: Bm25Stats;
|
|
102
108
|
/** Columns to return, e.g. `["_id", "score"]`; omit for full rows. */
|
|
103
109
|
projection?: string[];
|
|
110
|
+
/** BM25 `k1` for this search only, overriding the column's declared value.
|
|
111
|
+
* Pass `k1` and `b` together or neither. Results stay exact; only pruning
|
|
112
|
+
* power is traded. A pair you mean to keep belongs on the column
|
|
113
|
+
* (`IndexSpec.fts`). */
|
|
114
|
+
k1?: number;
|
|
115
|
+
/** BM25 `b` for this search only; see {@link Bm25SearchOptions.k1}. */
|
|
116
|
+
b?: number;
|
|
104
117
|
arrow?: boolean;
|
|
105
118
|
}
|
|
106
119
|
/** Text-predicate filter for `vectorSearch` (a pushdown pre-filter, not a
|
package/infino/index.js
CHANGED
|
@@ -263,7 +263,7 @@ class Table {
|
|
|
263
263
|
guard(this.remote, () => this.inner.appendNamed(ipc, sourceName));
|
|
264
264
|
}
|
|
265
265
|
bm25Search(column, query, k, opts = {}) {
|
|
266
|
-
const buf = guard(this.remote, () => this.inner.bm25Search(column, query, k, opts.mode, opts.stats, opts.projection));
|
|
266
|
+
const buf = guard(this.remote, () => this.inner.bm25Search(column, query, k, opts.mode, opts.stats, opts.projection, opts.k1, opts.b));
|
|
267
267
|
return decode(buf, opts.arrow);
|
|
268
268
|
}
|
|
269
269
|
vectorSearch(column, query, k, opts = {}) {
|
package/infino/native.d.ts
CHANGED
|
@@ -54,6 +54,13 @@ export interface OptimizeOptions {
|
|
|
54
54
|
* before compaction treats its owner as dead and takes over.
|
|
55
55
|
*/
|
|
56
56
|
staleSealTimeoutMs?: number
|
|
57
|
+
/**
|
|
58
|
+
* When to recalibrate the vector probe laws (the O(N) query-serving
|
|
59
|
+
* calibration): `"auto"` (default — only when membership changed or the
|
|
60
|
+
* rerank pool lags), `"force"` (always), or `"skip"` (never; storage
|
|
61
|
+
* compaction still runs). Omit for `"auto"`.
|
|
62
|
+
*/
|
|
63
|
+
recalibrate?: string
|
|
57
64
|
}
|
|
58
65
|
/** Row counts from an `update` / `delete`. */
|
|
59
66
|
export interface MutationStats {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infino-ai/infino",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Fast search on object storage — SQL, full-text, and vector search.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"apache-arrow": "^17"
|
|
83
83
|
},
|
|
84
84
|
"optionalDependencies": {
|
|
85
|
-
"infx-darwin-x64": "0.8.
|
|
86
|
-
"infx-darwin-arm64": "0.8.
|
|
87
|
-
"infx-linux-x64-gnu": "0.8.
|
|
88
|
-
"infx-linux-arm64-gnu": "0.8.
|
|
89
|
-
"infx-linux-x64-musl": "0.8.
|
|
90
|
-
"infx-linux-arm64-musl": "0.8.
|
|
85
|
+
"infx-darwin-x64": "0.8.6",
|
|
86
|
+
"infx-darwin-arm64": "0.8.6",
|
|
87
|
+
"infx-linux-x64-gnu": "0.8.6",
|
|
88
|
+
"infx-linux-arm64-gnu": "0.8.6",
|
|
89
|
+
"infx-linux-x64-musl": "0.8.6",
|
|
90
|
+
"infx-linux-arm64-musl": "0.8.6"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@napi-rs/cli": "^2.18.0",
|