@infino-ai/infino 0.11.13 → 0.11.15
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 +11 -0
- package/infino/index.js +3 -0
- package/infino/native.d.ts +8 -0
- package/package.json +7 -7
package/infino/index.d.ts
CHANGED
|
@@ -325,6 +325,17 @@ export declare class Table {
|
|
|
325
325
|
/** Count rows matching a BM25 keyword `query` over `column`, without
|
|
326
326
|
* fetching them. `mode` is `"or"` (default) or `"and"`. */
|
|
327
327
|
count(column: string, query: string, opts?: CountOptions): number;
|
|
328
|
+
/** `column`'s rows counted per value, as `SELECT column, COUNT(*) ...
|
|
329
|
+
* GROUP BY column` gives them: one record per value with its `count(*)`, a
|
|
330
|
+
* null value for the rows that hold none (or an Arrow `Table`). Read from
|
|
331
|
+
* the table's statistics when they count every row exactly, without
|
|
332
|
+
* running a query; the grouped count runs otherwise. */
|
|
333
|
+
valueCounts(column: string, opts: {
|
|
334
|
+
arrow: true;
|
|
335
|
+
}): arrow.Table;
|
|
336
|
+
valueCounts(column: string, opts?: {
|
|
337
|
+
arrow?: boolean;
|
|
338
|
+
}): RowRecord[];
|
|
328
339
|
/** Replace rows matching a SQL predicate (e.g. `"status = 'spam'"`) with
|
|
329
340
|
* `data` (same shapes as `append`), 1:1 — the matched count must equal the
|
|
330
341
|
* replacement-row count. Requires durable storage (not `memory://`). */
|
package/infino/index.js
CHANGED
|
@@ -333,6 +333,9 @@ class Table {
|
|
|
333
333
|
count(column, query, opts = {}) {
|
|
334
334
|
return guard(this.remote, () => this.inner.count(column, query, opts.mode));
|
|
335
335
|
}
|
|
336
|
+
valueCounts(column, opts = {}) {
|
|
337
|
+
return decode(guard(this.remote, () => this.inner.valueCounts(column)), opts.arrow);
|
|
338
|
+
}
|
|
336
339
|
/** Replace rows matching a SQL predicate (e.g. `"status = 'spam'"`) with
|
|
337
340
|
* `data` (same shapes as `append`), 1:1 — the matched count must equal the
|
|
338
341
|
* replacement-row count. Requires durable storage (not `memory://`). */
|
package/infino/native.d.ts
CHANGED
|
@@ -396,6 +396,14 @@ export declare class Table {
|
|
|
396
396
|
* fetching them. `mode` is `"or"` (default) or `"and"`.
|
|
397
397
|
*/
|
|
398
398
|
count(column: string, query: string, mode?: string | undefined | null): number
|
|
399
|
+
/**
|
|
400
|
+
* `column`'s rows counted per value, as `SELECT column, COUNT(*) ...
|
|
401
|
+
* GROUP BY column` gives them: Arrow rows of each value and its
|
|
402
|
+
* `count(*)`, with a null value for the rows that hold none. Read from
|
|
403
|
+
* the table's statistics when they count every row exactly, without
|
|
404
|
+
* running a query; the grouped count runs otherwise.
|
|
405
|
+
*/
|
|
406
|
+
valueCounts(column: string): Buffer
|
|
399
407
|
/**
|
|
400
408
|
* Hybrid BM25 + vector search fused with reciprocal-rank fusion.
|
|
401
409
|
* `text_column`/`text_query` (under `mode`) drive BM25; `vector_column`/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infino-ai/infino",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.15",
|
|
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.11.
|
|
86
|
-
"infx-darwin-arm64": "0.11.
|
|
87
|
-
"infx-linux-x64-gnu": "0.11.
|
|
88
|
-
"infx-linux-arm64-gnu": "0.11.
|
|
89
|
-
"infx-linux-x64-musl": "0.11.
|
|
90
|
-
"infx-linux-arm64-musl": "0.11.
|
|
85
|
+
"infx-darwin-x64": "0.11.15",
|
|
86
|
+
"infx-darwin-arm64": "0.11.15",
|
|
87
|
+
"infx-linux-x64-gnu": "0.11.15",
|
|
88
|
+
"infx-linux-arm64-gnu": "0.11.15",
|
|
89
|
+
"infx-linux-x64-musl": "0.11.15",
|
|
90
|
+
"infx-linux-arm64-musl": "0.11.15"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@napi-rs/cli": "^2.18.0",
|