@lancedb/lancedb 0.11.1-beta.1 → 0.13.0-beta.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/dist/native.d.ts CHANGED
@@ -267,6 +267,8 @@ export class Query {
267
267
  limit(limit: number): void
268
268
  offset(offset: number): void
269
269
  nearestTo(vector: Float32Array): VectorQuery
270
+ fastSearch(): void
271
+ withRowId(): void
270
272
  execute(maxBatchLength?: number | undefined | null): Promise<RecordBatchIterator>
271
273
  explainPlan(verbose: boolean): Promise<string>
272
274
  }
@@ -283,6 +285,8 @@ export class VectorQuery {
283
285
  selectColumns(columns: Array<string>): void
284
286
  limit(limit: number): void
285
287
  offset(offset: number): void
288
+ fastSearch(): void
289
+ withRowId(): void
286
290
  execute(maxBatchLength?: number | undefined | null): Promise<RecordBatchIterator>
287
291
  explainPlan(verbose: boolean): Promise<string>
288
292
  }
package/dist/query.d.ts CHANGED
@@ -95,6 +95,21 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
95
95
  */
96
96
  limit(limit: number): this;
97
97
  offset(offset: number): this;
98
+ /**
99
+ * Skip searching un-indexed data. This can make search faster, but will miss
100
+ * any data that is not yet indexed.
101
+ *
102
+ * Use {@link lancedb.Table#optimize} to index all un-indexed data.
103
+ */
104
+ fastSearch(): this;
105
+ /**
106
+ * Whether to return the row id in the results.
107
+ *
108
+ * This column can be used to match results between different queries. For
109
+ * example, to match results from a full text search and a vector search in
110
+ * order to perform hybrid search.
111
+ */
112
+ withRowId(): this;
98
113
  protected nativeExecute(options?: Partial<QueryExecutionOptions>): Promise<NativeBatchIterator>;
99
114
  /**
100
115
  * Execute the query and return the results as an @see {@link AsyncIterator}
package/dist/query.js CHANGED
@@ -180,6 +180,27 @@ class QueryBase {
180
180
  this.doCall((inner) => inner.offset(offset));
181
181
  return this;
182
182
  }
183
+ /**
184
+ * Skip searching un-indexed data. This can make search faster, but will miss
185
+ * any data that is not yet indexed.
186
+ *
187
+ * Use {@link lancedb.Table#optimize} to index all un-indexed data.
188
+ */
189
+ fastSearch() {
190
+ this.doCall((inner) => inner.fastSearch());
191
+ return this;
192
+ }
193
+ /**
194
+ * Whether to return the row id in the results.
195
+ *
196
+ * This column can be used to match results between different queries. For
197
+ * example, to match results from a full text search and a vector search in
198
+ * order to perform hybrid search.
199
+ */
200
+ withRowId() {
201
+ this.doCall((inner) => inner.withRowId());
202
+ return this;
203
+ }
183
204
  nativeExecute(options) {
184
205
  if (this.inner instanceof Promise) {
185
206
  return this.inner.then((inner) => inner.execute(options?.maxBatchLength));
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "vector database",
11
11
  "ann"
12
12
  ],
13
- "version": "0.11.1-beta.1",
13
+ "version": "0.13.0-beta.0",
14
14
  "main": "dist/index.js",
15
15
  "exports": {
16
16
  ".": "./dist/index.js",
@@ -92,11 +92,11 @@
92
92
  "reflect-metadata": "^0.2.2"
93
93
  },
94
94
  "optionalDependencies": {
95
- "@lancedb/lancedb-darwin-arm64": "0.11.1-beta.1",
96
- "@lancedb/lancedb-linux-arm64-gnu": "0.11.1-beta.1",
97
- "@lancedb/lancedb-darwin-x64": "0.11.1-beta.1",
98
- "@lancedb/lancedb-linux-x64-gnu": "0.11.1-beta.1",
99
- "@lancedb/lancedb-win32-x64-msvc": "0.11.1-beta.1"
95
+ "@lancedb/lancedb-darwin-arm64": "0.13.0-beta.0",
96
+ "@lancedb/lancedb-linux-arm64-gnu": "0.13.0-beta.0",
97
+ "@lancedb/lancedb-darwin-x64": "0.13.0-beta.0",
98
+ "@lancedb/lancedb-linux-x64-gnu": "0.13.0-beta.0",
99
+ "@lancedb/lancedb-win32-x64-msvc": "0.13.0-beta.0"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "apache-arrow": ">=13.0.0 <=17.0.0"