@infino-ai/infino 0.2.1 → 0.3.0
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 +1 -1
- package/infino/native.d.ts +4 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ const embed = (topic) => { const v = Array(16).fill(0.0); v[topic] = 1.0; return
|
|
|
54
54
|
const docs = db.createTable(
|
|
55
55
|
"docs",
|
|
56
56
|
{ source: "large_utf8", body: "large_utf8", embedding: { vector: 16 } },
|
|
57
|
-
new IndexSpec().fts("body").vector("embedding", 16,
|
|
57
|
+
new IndexSpec().fts("body").vector("embedding", 16, "cosine"),
|
|
58
58
|
);
|
|
59
59
|
|
|
60
60
|
// Append rows. One append is one atomic commit.
|
package/infino/native.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare function builderId(): string
|
|
|
106
106
|
/**
|
|
107
107
|
* Declares which columns are full-text (BM25) and which are vector (IVF
|
|
108
108
|
* kNN) indexed. Built fluently:
|
|
109
|
-
* `new IndexSpec().fts("body").vector("emb", 384,
|
|
109
|
+
* `new IndexSpec().fts("body").vector("emb", 384, "cosine")`.
|
|
110
110
|
*/
|
|
111
111
|
export declare class IndexSpec {
|
|
112
112
|
constructor()
|
|
@@ -114,10 +114,10 @@ export declare class IndexSpec {
|
|
|
114
114
|
fts(column: string): IndexSpec
|
|
115
115
|
/**
|
|
116
116
|
* Mark `column` (a `fixed_size_list<float32, dim>`) as vector
|
|
117
|
-
* indexed. `
|
|
118
|
-
*
|
|
117
|
+
* indexed. `metric` is `"cosine"` / `"l2sq"` / `"negdot"`. The IVF
|
|
118
|
+
* centroid count is derived from the data at build time.
|
|
119
119
|
*/
|
|
120
|
-
vector(column: string, dim: number,
|
|
120
|
+
vector(column: string, dim: number, metric: string): IndexSpec
|
|
121
121
|
}
|
|
122
122
|
/** A catalog connection. `const db = connect(uri)`. */
|
|
123
123
|
export declare class Connection {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infino-ai/infino",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
86
|
-
"infx-darwin-arm64": "0.
|
|
87
|
-
"infx-linux-x64-gnu": "0.
|
|
88
|
-
"infx-linux-arm64-gnu": "0.
|
|
89
|
-
"infx-linux-x64-musl": "0.
|
|
90
|
-
"infx-linux-arm64-musl": "0.
|
|
85
|
+
"infx-darwin-x64": "0.3.0",
|
|
86
|
+
"infx-darwin-arm64": "0.3.0",
|
|
87
|
+
"infx-linux-x64-gnu": "0.3.0",
|
|
88
|
+
"infx-linux-arm64-gnu": "0.3.0",
|
|
89
|
+
"infx-linux-x64-musl": "0.3.0",
|
|
90
|
+
"infx-linux-arm64-musl": "0.3.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@napi-rs/cli": "^2.18.0",
|