@lancedb/lancedb 0.26.2 → 0.27.0-beta.2
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/NODEJS_THIRD_PARTY_LICENSES.md +668 -0
- package/RUST_THIRD_PARTY_LICENSES.html +14607 -0
- package/dist/index.js +1 -1
- package/dist/native.d.ts +492 -463
- package/dist/native.js +598 -265
- package/dist/query.js +6 -8
- package/package.json +22 -25
package/dist/query.js
CHANGED
|
@@ -577,14 +577,12 @@ class VectorQuery extends StandardQueryBase {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
rerank(reranker) {
|
|
580
|
-
super.doCall((inner) => inner.rerank({
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
return buffer;
|
|
587
|
-
},
|
|
580
|
+
super.doCall((inner) => inner.rerank(async (args) => {
|
|
581
|
+
const vecResults = await (0, arrow_1.fromBufferToRecordBatch)(args.vecResults);
|
|
582
|
+
const ftsResults = await (0, arrow_1.fromBufferToRecordBatch)(args.ftsResults);
|
|
583
|
+
const result = await reranker.rerankHybrid(args.query, vecResults, ftsResults);
|
|
584
|
+
const buffer = (0, arrow_1.fromRecordBatchToBuffer)(result);
|
|
585
|
+
return buffer;
|
|
588
586
|
}));
|
|
589
587
|
return this;
|
|
590
588
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.27.0-beta.2",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -21,19 +21,16 @@
|
|
|
21
21
|
},
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
23
|
"napi": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"aarch64-pc-windows-msvc"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
24
|
+
"binaryName": "lancedb",
|
|
25
|
+
"targets": [
|
|
26
|
+
"aarch64-apple-darwin",
|
|
27
|
+
"x86_64-unknown-linux-gnu",
|
|
28
|
+
"aarch64-unknown-linux-gnu",
|
|
29
|
+
"x86_64-unknown-linux-musl",
|
|
30
|
+
"aarch64-unknown-linux-musl",
|
|
31
|
+
"x86_64-pc-windows-msvc",
|
|
32
|
+
"aarch64-pc-windows-msvc"
|
|
33
|
+
]
|
|
37
34
|
},
|
|
38
35
|
"license": "Apache-2.0",
|
|
39
36
|
"repository": {
|
|
@@ -46,7 +43,7 @@
|
|
|
46
43
|
"@aws-sdk/client-s3": "^3.33.0",
|
|
47
44
|
"@biomejs/biome": "^1.7.3",
|
|
48
45
|
"@jest/globals": "^29.7.0",
|
|
49
|
-
"@napi-rs/cli": "^
|
|
46
|
+
"@napi-rs/cli": "^3.5.1",
|
|
50
47
|
"@types/axios": "^0.14.0",
|
|
51
48
|
"@types/jest": "^29.1.2",
|
|
52
49
|
"@types/node": "^22.7.4",
|
|
@@ -82,9 +79,9 @@
|
|
|
82
79
|
],
|
|
83
80
|
"scripts": {
|
|
84
81
|
"artifacts": "napi artifacts",
|
|
85
|
-
"build:debug": "napi build --platform --
|
|
82
|
+
"build:debug": "napi build --platform --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir lancedb",
|
|
86
83
|
"postbuild:debug": "shx mkdir -p dist && shx cp lancedb/*.node dist/",
|
|
87
|
-
"build:release": "napi build --platform --
|
|
84
|
+
"build:release": "napi build --platform --release --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir dist",
|
|
88
85
|
"postbuild:release": "shx mkdir -p dist && shx cp lancedb/*.node dist/",
|
|
89
86
|
"build": "npm run build:debug && npm run tsc",
|
|
90
87
|
"build-release": "npm run build:release && npm run tsc",
|
|
@@ -98,20 +95,20 @@
|
|
|
98
95
|
"prepublishOnly": "napi prepublish -t npm",
|
|
99
96
|
"test": "jest --verbose",
|
|
100
97
|
"integration": "S3_TEST=1 npm run test",
|
|
101
|
-
"universal": "napi
|
|
98
|
+
"universal": "napi universalize",
|
|
102
99
|
"version": "napi version"
|
|
103
100
|
},
|
|
104
101
|
"dependencies": {
|
|
105
102
|
"reflect-metadata": "^0.2.2"
|
|
106
103
|
},
|
|
107
104
|
"optionalDependencies": {
|
|
108
|
-
"@lancedb/lancedb-darwin-arm64": "0.
|
|
109
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.
|
|
110
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.
|
|
111
|
-
"@lancedb/lancedb-linux-x64-musl": "0.
|
|
112
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.
|
|
113
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.
|
|
114
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.
|
|
105
|
+
"@lancedb/lancedb-darwin-arm64": "0.27.0-beta.2",
|
|
106
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.27.0-beta.2",
|
|
107
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.27.0-beta.2",
|
|
108
|
+
"@lancedb/lancedb-linux-x64-musl": "0.27.0-beta.2",
|
|
109
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.27.0-beta.2",
|
|
110
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.27.0-beta.2",
|
|
111
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.27.0-beta.2"
|
|
115
112
|
},
|
|
116
113
|
"peerDependencies": {
|
|
117
114
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|