@lancedb/lancedb 0.22.3-beta.0 → 0.22.3-beta.1
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/dist/native.d.ts +4 -1
- package/dist/permutation.d.ts +1 -2
- package/dist/permutation.js +2 -3
- package/dist/query.d.ts +9 -0
- package/dist/query.js +19 -0
- package/package.json +9 -9
package/dist/native.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ShuffleOptions {
|
|
|
24
24
|
clumpSize?: number
|
|
25
25
|
}
|
|
26
26
|
/** Create a permutation builder for the given table */
|
|
27
|
-
export declare function permutationBuilder(table: Table
|
|
27
|
+
export declare function permutationBuilder(table: Table): PermutationBuilder
|
|
28
28
|
/** Timeout configuration for remote HTTP client. */
|
|
29
29
|
export interface TimeoutConfig {
|
|
30
30
|
/**
|
|
@@ -427,6 +427,7 @@ export class Query {
|
|
|
427
427
|
nearestTo(vector: Float32Array): VectorQuery
|
|
428
428
|
fastSearch(): void
|
|
429
429
|
withRowId(): void
|
|
430
|
+
outputSchema(): Promise<Buffer>
|
|
430
431
|
execute(maxBatchLength?: number | undefined | null, timeoutMs?: number | undefined | null): Promise<RecordBatchIterator>
|
|
431
432
|
explainPlan(verbose: boolean): Promise<string>
|
|
432
433
|
analyzePlan(): Promise<string>
|
|
@@ -452,6 +453,7 @@ export class VectorQuery {
|
|
|
452
453
|
fastSearch(): void
|
|
453
454
|
withRowId(): void
|
|
454
455
|
rerank(callbacks: RerankerCallbacks): void
|
|
456
|
+
outputSchema(): Promise<Buffer>
|
|
455
457
|
execute(maxBatchLength?: number | undefined | null, timeoutMs?: number | undefined | null): Promise<RecordBatchIterator>
|
|
456
458
|
explainPlan(verbose: boolean): Promise<string>
|
|
457
459
|
analyzePlan(): Promise<string>
|
|
@@ -460,6 +462,7 @@ export class TakeQuery {
|
|
|
460
462
|
select(columns: Array<[string, string]>): void
|
|
461
463
|
selectColumns(columns: Array<string>): void
|
|
462
464
|
withRowId(): void
|
|
465
|
+
outputSchema(): Promise<Buffer>
|
|
463
466
|
execute(maxBatchLength?: number | undefined | null, timeoutMs?: number | undefined | null): Promise<RecordBatchIterator>
|
|
464
467
|
explainPlan(verbose: boolean): Promise<string>
|
|
465
468
|
analyzePlan(): Promise<string>
|
package/dist/permutation.d.ts
CHANGED
|
@@ -117,7 +117,6 @@ export declare class PermutationBuilder {
|
|
|
117
117
|
* Create a permutation builder for the given table.
|
|
118
118
|
*
|
|
119
119
|
* @param table - The source table to create a permutation from
|
|
120
|
-
* @param destTableName - The name for the destination permutation table
|
|
121
120
|
* @returns A PermutationBuilder instance
|
|
122
121
|
* @example
|
|
123
122
|
* ```ts
|
|
@@ -128,4 +127,4 @@ export declare class PermutationBuilder {
|
|
|
128
127
|
* const trainingTable = await builder.execute();
|
|
129
128
|
* ```
|
|
130
129
|
*/
|
|
131
|
-
export declare function permutationBuilder(table: Table
|
|
130
|
+
export declare function permutationBuilder(table: Table): PermutationBuilder;
|
package/dist/permutation.js
CHANGED
|
@@ -147,7 +147,6 @@ exports.PermutationBuilder = PermutationBuilder;
|
|
|
147
147
|
* Create a permutation builder for the given table.
|
|
148
148
|
*
|
|
149
149
|
* @param table - The source table to create a permutation from
|
|
150
|
-
* @param destTableName - The name for the destination permutation table
|
|
151
150
|
* @returns A PermutationBuilder instance
|
|
152
151
|
* @example
|
|
153
152
|
* ```ts
|
|
@@ -158,12 +157,12 @@ exports.PermutationBuilder = PermutationBuilder;
|
|
|
158
157
|
* const trainingTable = await builder.execute();
|
|
159
158
|
* ```
|
|
160
159
|
*/
|
|
161
|
-
function permutationBuilder(table
|
|
160
|
+
function permutationBuilder(table) {
|
|
162
161
|
// Extract the inner native table from the TypeScript wrapper
|
|
163
162
|
const localTable = table;
|
|
164
163
|
// Access inner through type assertion since it's private
|
|
165
164
|
const nativeBuilder = (0, native_js_1.permutationBuilder)(
|
|
166
165
|
// biome-ignore lint/suspicious/noExplicitAny: need access to private variable
|
|
167
|
-
localTable.inner
|
|
166
|
+
localTable.inner);
|
|
168
167
|
return new PermutationBuilder(nativeBuilder);
|
|
169
168
|
}
|
package/dist/query.d.ts
CHANGED
|
@@ -161,6 +161,15 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
161
161
|
* @returns A query execution plan with runtime metrics for each step.
|
|
162
162
|
*/
|
|
163
163
|
analyzePlan(): Promise<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Returns the schema of the output that will be returned by this query.
|
|
166
|
+
*
|
|
167
|
+
* This can be used to inspect the types and names of the columns that will be
|
|
168
|
+
* returned by the query before executing it.
|
|
169
|
+
*
|
|
170
|
+
* @returns An Arrow Schema describing the output columns.
|
|
171
|
+
*/
|
|
172
|
+
outputSchema(): Promise<import("./arrow").Schema>;
|
|
164
173
|
}
|
|
165
174
|
export declare class StandardQueryBase<NativeQueryType extends NativeQuery | NativeVectorQuery> extends QueryBase<NativeQueryType> implements ExecutableQuery {
|
|
166
175
|
constructor(inner: NativeQueryType | Promise<NativeQueryType>);
|
package/dist/query.js
CHANGED
|
@@ -256,6 +256,25 @@ class QueryBase {
|
|
|
256
256
|
return this.inner.analyzePlan();
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* Returns the schema of the output that will be returned by this query.
|
|
261
|
+
*
|
|
262
|
+
* This can be used to inspect the types and names of the columns that will be
|
|
263
|
+
* returned by the query before executing it.
|
|
264
|
+
*
|
|
265
|
+
* @returns An Arrow Schema describing the output columns.
|
|
266
|
+
*/
|
|
267
|
+
async outputSchema() {
|
|
268
|
+
let schemaBuffer;
|
|
269
|
+
if (this.inner instanceof Promise) {
|
|
270
|
+
schemaBuffer = await this.inner.then((inner) => inner.outputSchema());
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
schemaBuffer = await this.inner.outputSchema();
|
|
274
|
+
}
|
|
275
|
+
const schema = (0, arrow_1.tableFromIPC)(schemaBuffer).schema;
|
|
276
|
+
return schema;
|
|
277
|
+
}
|
|
259
278
|
}
|
|
260
279
|
exports.QueryBase = QueryBase;
|
|
261
280
|
class StandardQueryBase extends QueryBase {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.22.3-beta.
|
|
14
|
+
"version": "0.22.3-beta.1",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
"reflect-metadata": "^0.2.2"
|
|
101
101
|
},
|
|
102
102
|
"optionalDependencies": {
|
|
103
|
-
"@lancedb/lancedb-darwin-x64": "0.22.3-beta.
|
|
104
|
-
"@lancedb/lancedb-darwin-arm64": "0.22.3-beta.
|
|
105
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.22.3-beta.
|
|
106
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.22.3-beta.
|
|
107
|
-
"@lancedb/lancedb-linux-x64-musl": "0.22.3-beta.
|
|
108
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.22.3-beta.
|
|
109
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.22.3-beta.
|
|
110
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.22.3-beta.
|
|
103
|
+
"@lancedb/lancedb-darwin-x64": "0.22.3-beta.1",
|
|
104
|
+
"@lancedb/lancedb-darwin-arm64": "0.22.3-beta.1",
|
|
105
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.22.3-beta.1",
|
|
106
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.22.3-beta.1",
|
|
107
|
+
"@lancedb/lancedb-linux-x64-musl": "0.22.3-beta.1",
|
|
108
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.22.3-beta.1",
|
|
109
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.22.3-beta.1",
|
|
110
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.22.3-beta.1"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|