@infino-ai/infino 0.8.4 → 0.8.5

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 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
- export type Metric = "cosine" | "l2sq" | "negdot";
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
@@ -101,6 +102,13 @@ export interface Bm25SearchOptions {
101
102
  stats?: Bm25Stats;
102
103
  /** Columns to return, e.g. `["_id", "score"]`; omit for full rows. */
103
104
  projection?: string[];
105
+ /** BM25 `k1` for this search only, overriding the column's declared value.
106
+ * Pass `k1` and `b` together or neither. Results stay exact; only pruning
107
+ * power is traded. A pair you mean to keep belongs on the column
108
+ * (`IndexSpec.fts`). */
109
+ k1?: number;
110
+ /** BM25 `b` for this search only; see {@link Bm25SearchOptions.k1}. */
111
+ b?: number;
104
112
  arrow?: boolean;
105
113
  }
106
114
  /** 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infino-ai/infino",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
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.4",
86
- "infx-darwin-arm64": "0.8.4",
87
- "infx-linux-x64-gnu": "0.8.4",
88
- "infx-linux-arm64-gnu": "0.8.4",
89
- "infx-linux-x64-musl": "0.8.4",
90
- "infx-linux-arm64-musl": "0.8.4"
85
+ "infx-darwin-x64": "0.8.5",
86
+ "infx-darwin-arm64": "0.8.5",
87
+ "infx-linux-x64-gnu": "0.8.5",
88
+ "infx-linux-arm64-gnu": "0.8.5",
89
+ "infx-linux-x64-musl": "0.8.5",
90
+ "infx-linux-arm64-musl": "0.8.5"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@napi-rs/cli": "^2.18.0",