Elffuss BraidHub

kikocis/lancedb public

docs(node): update `indexStats` signature and regenerate docs (#1742)

`indexStats` still referenced UUID even though in
https://github.com/lancedb/lancedb/pull/1702 we changed it to take name
instead.
Changesetcdecffe2ec106fa7f8f0b1f8aef907c3389e37b7a7957e6f282f804127564a5f
AuthorWill Jones <willjones127@gmail.com> · 2024-10-18 10:53 -07:00
CommitterGitHub <noreply@github.com> · 2024-10-18 10:53 -07:00
Parents6543dca82c06

Browse the files at this changeset

30 files changed

modified docs/src/javascript/README.md +0 −13
@@ -41,7 +41,6 @@
4141
4242 ```bash
4343 npm install
44-npm run tsc
4544 npm run build
4645 ```
4746
@@ -51,18 +50,6 @@
5150 npm test
5251 ```
5352
54-### Rebuilding Rust library
55-
56-```bash
57-npm run build
58-```
59-
60-### Rebuilding Typescript
61-
62-```bash
63-npm run tsc
64-```
65-
6653 ### Fix lints
6754
6855 To run the linter and have it automatically fix all errors
modified docs/src/javascript/classes/DefaultWriteOptions.md +1 −1
@@ -38,4 +38,4 @@
3838
3939 #### Defined in
4040
41-[index.ts:1019](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1019)
41+[index.ts:1359](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1359)
modified docs/src/javascript/classes/LocalConnection.md +45 −12
@@ -30,6 +30,7 @@
3030 - [dropTable](LocalConnection.md#droptable)
3131 - [openTable](LocalConnection.md#opentable)
3232 - [tableNames](LocalConnection.md#tablenames)
33+- [withMiddleware](LocalConnection.md#withmiddleware)
3334
3435 ## Constructors
3536
@@ -46,7 +47,7 @@
4647
4748 #### Defined in
4849
49-[index.ts:489](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L489)
50+[index.ts:739](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L739)
5051
5152 ## Properties
5253
@@ -56,7 +57,7 @@
5657
5758 #### Defined in
5859
59-[index.ts:487](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L487)
60+[index.ts:737](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L737)
6061
6162 ___
6263
@@ -74,7 +75,7 @@
7475
7576 #### Defined in
7677
77-[index.ts:486](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L486)
78+[index.ts:736](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L736)
7879
7980 ## Accessors
8081
@@ -92,7 +93,7 @@
9293
9394 #### Defined in
9495
95-[index.ts:494](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L494)
96+[index.ts:744](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L744)
9697
9798 ## Methods
9899
@@ -113,7 +114,7 @@
113114 | Name | Type |
114115 | :------ | :------ |
115116 | `name` | `string` \| [`CreateTableOptions`](../interfaces/CreateTableOptions.md)\<`T`\> |
116-| `data?` | `Record`\<`string`, `unknown`\>[] |
117+| `data?` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] |
117118 | `optsOrEmbedding?` | [`WriteOptions`](../interfaces/WriteOptions.md) \| [`EmbeddingFunction`](../interfaces/EmbeddingFunction.md)\<`T`\> |
118119 | `opt?` | [`WriteOptions`](../interfaces/WriteOptions.md) |
119120
@@ -127,7 +128,7 @@
127128
128129 #### Defined in
129130
130-[index.ts:542](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L542)
131+[index.ts:788](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L788)
131132
132133 ___
133134
@@ -158,7 +159,7 @@
158159
159160 #### Defined in
160161
161-[index.ts:576](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L576)
162+[index.ts:822](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L822)
162163
163164 ___
164165
@@ -184,7 +185,7 @@
184185
185186 #### Defined in
186187
187-[index.ts:630](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L630)
188+[index.ts:876](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L876)
188189
189190 ___
190191
@@ -210,7 +211,7 @@
210211
211212 #### Defined in
212213
213-[index.ts:510](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L510)
214+[index.ts:760](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L760)
214215
215216 ▸ **openTable**\<`T`\>(`name`, `embeddings`): `Promise`\<[`Table`](../interfaces/Table.md)\<`T`\>\>
216217
@@ -239,7 +240,7 @@
239240
240241 #### Defined in
241242
242-[index.ts:518](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L518)
243+[index.ts:768](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L768)
243244
244245 ▸ **openTable**\<`T`\>(`name`, `embeddings?`): `Promise`\<[`Table`](../interfaces/Table.md)\<`T`\>\>
245246
@@ -266,7 +267,7 @@
266267
267268 #### Defined in
268269
269-[index.ts:522](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L522)
270+[index.ts:772](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L772)
270271
271272 ___
272273
@@ -286,4 +287,36 @@
286287
287288 #### Defined in
288289
289-[index.ts:501](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L501)
290+[index.ts:751](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L751)
291+
292+___
293+
294+### withMiddleware
295+
296+▸ **withMiddleware**(`middleware`): [`Connection`](../interfaces/Connection.md)
297+
298+Instrument the behavior of this Connection with middleware.
299+
300+The middleware will be called in the order they are added.
301+
302+Currently this functionality is only supported for remote Connections.
303+
304+#### Parameters
305+
306+| Name | Type |
307+| :------ | :------ |
308+| `middleware` | `HttpMiddleware` |
309+
310+#### Returns
311+
312+[`Connection`](../interfaces/Connection.md)
313+
314+- this Connection instrumented by the passed middleware
315+
316+#### Implementation of
317+
318+[Connection](../interfaces/Connection.md).[withMiddleware](../interfaces/Connection.md#withmiddleware)
319+
320+#### Defined in
321+
322+[index.ts:880](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L880)
modified docs/src/javascript/classes/LocalTable.md +212 −32
@@ -37,6 +37,8 @@
3737 ### Methods
3838
3939 - [add](LocalTable.md#add)
40+- [addColumns](LocalTable.md#addcolumns)
41+- [alterColumns](LocalTable.md#altercolumns)
4042 - [checkElectron](LocalTable.md#checkelectron)
4143 - [cleanupOldVersions](LocalTable.md#cleanupoldversions)
4244 - [compactFiles](LocalTable.md#compactfiles)
@@ -44,13 +46,16 @@
4446 - [createIndex](LocalTable.md#createindex)
4547 - [createScalarIndex](LocalTable.md#createscalarindex)
4648 - [delete](LocalTable.md#delete)
49+- [dropColumns](LocalTable.md#dropcolumns)
4750 - [filter](LocalTable.md#filter)
4851 - [getSchema](LocalTable.md#getschema)
4952 - [indexStats](LocalTable.md#indexstats)
5053 - [listIndices](LocalTable.md#listindices)
54+- [mergeInsert](LocalTable.md#mergeinsert)
5155 - [overwrite](LocalTable.md#overwrite)
5256 - [search](LocalTable.md#search)
5357 - [update](LocalTable.md#update)
58+- [withMiddleware](LocalTable.md#withmiddleware)
5459
5560 ## Constructors
5661
@@ -74,7 +79,7 @@
7479
7580 #### Defined in
7681
77-[index.ts:642](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L642)
82+[index.ts:892](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L892)
7883
7984 • **new LocalTable**\<`T`\>(`tbl`, `name`, `options`, `embeddings`)
8085
@@ -95,7 +100,7 @@
95100
96101 #### Defined in
97102
98-[index.ts:649](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L649)
103+[index.ts:899](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L899)
99104
100105 ## Properties
101106
@@ -105,7 +110,7 @@
105110
106111 #### Defined in
107112
108-[index.ts:639](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L639)
113+[index.ts:889](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L889)
109114
110115 ___
111116
@@ -115,7 +120,7 @@
115120
116121 #### Defined in
117122
118-[index.ts:638](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L638)
123+[index.ts:888](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L888)
119124
120125 ___
121126
@@ -125,7 +130,7 @@
125130
126131 #### Defined in
127132
128-[index.ts:637](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L637)
133+[index.ts:887](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L887)
129134
130135 ___
131136
@@ -143,7 +148,7 @@
143148
144149 #### Defined in
145150
146-[index.ts:640](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L640)
151+[index.ts:890](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L890)
147152
148153 ___
149154
@@ -153,7 +158,7 @@
153158
154159 #### Defined in
155160
156-[index.ts:636](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L636)
161+[index.ts:886](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L886)
157162
158163 ___
159164
@@ -179,7 +184,7 @@
179184
180185 #### Defined in
181186
182-[index.ts:688](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L688)
187+[index.ts:938](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L938)
183188
184189 ## Accessors
185190
@@ -197,7 +202,7 @@
197202
198203 #### Defined in
199204
200-[index.ts:668](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L668)
205+[index.ts:918](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L918)
201206
202207 ___
203208
@@ -215,7 +220,7 @@
215220
216221 #### Defined in
217222
218-[index.ts:849](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L849)
223+[index.ts:1171](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1171)
219224
220225 ## Methods
221226
@@ -229,7 +234,7 @@
229234
230235 | Name | Type | Description |
231236 | :------ | :------ | :------ |
232-| `data` | `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
237+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
233238
234239 #### Returns
235240
@@ -243,7 +248,59 @@
243248
244249 #### Defined in
245250
246-[index.ts:696](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L696)
251+[index.ts:946](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L946)
252+
253+___
254+
255+### addColumns
256+
257+▸ **addColumns**(`newColumnTransforms`): `Promise`\<`void`\>
258+
259+Add new columns with defined values.
260+
261+#### Parameters
262+
263+| Name | Type | Description |
264+| :------ | :------ | :------ |
265+| `newColumnTransforms` | \{ `name`: `string` ; `valueSql`: `string` }[] | pairs of column names and the SQL expression to use to calculate the value of the new column. These expressions will be evaluated for each row in the table, and can reference existing columns in the table. |
266+
267+#### Returns
268+
269+`Promise`\<`void`\>
270+
271+#### Implementation of
272+
273+[Table](../interfaces/Table.md).[addColumns](../interfaces/Table.md#addcolumns)
274+
275+#### Defined in
276+
277+[index.ts:1195](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1195)
278+
279+___
280+
281+### alterColumns
282+
283+▸ **alterColumns**(`columnAlterations`): `Promise`\<`void`\>
284+
285+Alter the name or nullability of columns.
286+
287+#### Parameters
288+
289+| Name | Type | Description |
290+| :------ | :------ | :------ |
291+| `columnAlterations` | [`ColumnAlteration`](../interfaces/ColumnAlteration.md)[] | One or more alterations to apply to columns. |
292+
293+#### Returns
294+
295+`Promise`\<`void`\>
296+
297+#### Implementation of
298+
299+[Table](../interfaces/Table.md).[alterColumns](../interfaces/Table.md#altercolumns)
300+
301+#### Defined in
302+
303+[index.ts:1201](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1201)
247304
248305 ___
249306
@@ -257,7 +314,7 @@
257314
258315 #### Defined in
259316
260-[index.ts:861](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L861)
317+[index.ts:1183](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1183)
261318
262319 ___
263320
@@ -280,7 +337,7 @@
280337
281338 #### Defined in
282339
283-[index.ts:808](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L808)
340+[index.ts:1130](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1130)
284341
285342 ___
286343
@@ -307,16 +364,22 @@
307364
308365 #### Defined in
309366
310-[index.ts:831](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L831)
367+[index.ts:1153](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1153)
311368
312369 ___
313370
314371 ### countRows
315372
316-▸ **countRows**(): `Promise`\<`number`\>
373+▸ **countRows**(`filter?`): `Promise`\<`number`\>
317374
318375 Returns the number of rows in this table.
319376
377+#### Parameters
378+
379+| Name | Type |
380+| :------ | :------ |
381+| `filter?` | `string` |
382+
320383 #### Returns
321384
322385 `Promise`\<`number`\>
@@ -327,7 +390,7 @@
327390
328391 #### Defined in
329392
330-[index.ts:749](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L749)
393+[index.ts:1021](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1021)
331394
332395 ___
333396
@@ -357,13 +420,13 @@
357420
358421 #### Defined in
359422
360-[index.ts:734](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L734)
423+[index.ts:1003](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1003)
361424
362425 ___
363426
364427 ### createScalarIndex
365428
366-▸ **createScalarIndex**(`column`, `replace`): `Promise`\<`void`\>
429+▸ **createScalarIndex**(`column`, `replace?`): `Promise`\<`void`\>
367430
368431 Create a scalar index on this Table for the given column
369432
@@ -372,7 +435,7 @@
372435 | Name | Type | Description |
373436 | :------ | :------ | :------ |
374437 | `column` | `string` | The column to index |
375-| `replace` | `boolean` | If false, fail if an index already exists on the column Scalar indices, like vector indices, can be used to speed up scans. A scalar index can speed up scans that contain filter expressions on the indexed column. For example, the following scan will be faster if the column `my_col` has a scalar index: ```ts const con = await lancedb.connect('./.lancedb'); const table = await con.openTable('images'); const results = await table.where('my_col = 7').execute(); ``` Scalar indices can also speed up scans containing a vector search and a prefilter: ```ts const con = await lancedb.connect('././lancedb'); const table = await con.openTable('images'); const results = await table.search([1.0, 2.0]).where('my_col != 7').prefilter(true); ``` Scalar indices can only speed up scans for basic filters using equality, comparison, range (e.g. `my_col BETWEEN 0 AND 100`), and set membership (e.g. `my_col IN (0, 1, 2)`) Scalar indices can be used if the filter contains multiple indexed columns and the filter criteria are AND'd or OR'd together (e.g. `my_col < 0 AND other_col> 100`) Scalar indices may be used if the filter contains non-indexed columns but, depending on the structure of the filter, they may not be usable. For example, if the column `not_indexed` does not have a scalar index then the filter `my_col = 0 OR not_indexed = 1` will not be able to use any scalar index on `my_col`. |
438+| `replace?` | `boolean` | If false, fail if an index already exists on the column it is always set to true for remote connections Scalar indices, like vector indices, can be used to speed up scans. A scalar index can speed up scans that contain filter expressions on the indexed column. For example, the following scan will be faster if the column `my_col` has a scalar index: ```ts const con = await lancedb.connect('./.lancedb'); const table = await con.openTable('images'); const results = await table.where('my_col = 7').execute(); ``` Scalar indices can also speed up scans containing a vector search and a prefilter: ```ts const con = await lancedb.connect('././lancedb'); const table = await con.openTable('images'); const results = await table.search([1.0, 2.0]).where('my_col != 7').prefilter(true); ``` Scalar indices can only speed up scans for basic filters using equality, comparison, range (e.g. `my_col BETWEEN 0 AND 100`), and set membership (e.g. `my_col IN (0, 1, 2)`) Scalar indices can be used if the filter contains multiple indexed columns and the filter criteria are AND'd or OR'd together (e.g. `my_col < 0 AND other_col> 100`) Scalar indices may be used if the filter contains non-indexed columns but, depending on the structure of the filter, they may not be usable. For example, if the column `not_indexed` does not have a scalar index then the filter `my_col = 0 OR not_indexed = 1` will not be able to use any scalar index on `my_col`. |
376439
377440 #### Returns
378441
@@ -392,7 +455,7 @@
392455
393456 #### Defined in
394457
395-[index.ts:742](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L742)
458+[index.ts:1011](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1011)
396459
397460 ___
398461
@@ -418,7 +481,38 @@
418481
419482 #### Defined in
420483
421-[index.ts:758](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L758)
484+[index.ts:1030](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1030)
485+
486+___
487+
488+### dropColumns
489+
490+▸ **dropColumns**(`columnNames`): `Promise`\<`void`\>
491+
492+Drop one or more columns from the dataset
493+
494+This is a metadata-only operation and does not remove the data from the
495+underlying storage. In order to remove the data, you must subsequently
496+call ``compact_files`` to rewrite the data without the removed columns and
497+then call ``cleanup_files`` to remove the old files.
498+
499+#### Parameters
500+
501+| Name | Type | Description |
502+| :------ | :------ | :------ |
503+| `columnNames` | `string`[] | The names of the columns to drop. These can be nested column references (e.g. "a.b.c") or top-level column names (e.g. "a"). |
504+
505+#### Returns
506+
507+`Promise`\<`void`\>
508+
509+#### Implementation of
510+
511+[Table](../interfaces/Table.md).[dropColumns](../interfaces/Table.md#dropcolumns)
512+
513+#### Defined in
514+
515+[index.ts:1205](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1205)
422516
423517 ___
424518
@@ -438,9 +532,13 @@
438532
439533 [`Query`](Query.md)\<`T`\>
440534
535+#### Implementation of
536+
537+[Table](../interfaces/Table.md).[filter](../interfaces/Table.md#filter)
538+
441539 #### Defined in
442540
443-[index.ts:684](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L684)
541+[index.ts:934](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L934)
444542
445543 ___
446544
@@ -454,13 +552,13 @@
454552
455553 #### Defined in
456554
457-[index.ts:854](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L854)
555+[index.ts:1176](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1176)
458556
459557 ___
460558
461559 ### indexStats
462560
463-▸ **indexStats**(`indexUuid`): `Promise`\<[`IndexStats`](../interfaces/IndexStats.md)\>
561+▸ **indexStats**(`indexName`): `Promise`\<[`IndexStats`](../interfaces/IndexStats.md)\>
464562
465563 Get statistics about an index.
466564
@@ -468,7 +566,7 @@
468566
469567 | Name | Type |
470568 | :------ | :------ |
471-| `indexUuid` | `string` |
569+| `indexName` | `string` |
472570
473571 #### Returns
474572
@@ -480,7 +578,7 @@
480578
481579 #### Defined in
482580
483-[index.ts:845](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L845)
581+[index.ts:1167](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1167)
484582
485583 ___
486584
@@ -500,7 +598,57 @@
500598
501599 #### Defined in
502600
503-[index.ts:841](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L841)
601+[index.ts:1163](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1163)
602+
603+___
604+
605+### mergeInsert
606+
607+▸ **mergeInsert**(`on`, `data`, `args`): `Promise`\<`void`\>
608+
609+Runs a "merge insert" operation on the table
610+
611+This operation can add rows, update rows, and remove rows all in a single
612+transaction. It is a very generic tool that can be used to create
613+behaviors like "insert if not exists", "update or insert (i.e. upsert)",
614+or even replace a portion of existing data with new data (e.g. replace
615+all data where month="january")
616+
617+The merge insert operation works by combining new data from a
618+**source table** with existing data in a **target table** by using a
619+join. There are three categories of records.
620+
621+"Matched" records are records that exist in both the source table and
622+the target table. "Not matched" records exist only in the source table
623+(e.g. these are new data) "Not matched by source" records exist only
624+in the target table (this is old data)
625+
626+The MergeInsertArgs can be used to customize what should happen for
627+each category of data.
628+
629+Please note that the data may appear to be reordered as part of this
630+operation. This is because updated rows will be deleted from the
631+dataset and then reinserted at the end with the new values.
632+
633+#### Parameters
634+
635+| Name | Type | Description |
636+| :------ | :------ | :------ |
637+| `on` | `string` | a column to join on. This is how records from the source table and target table are matched. |
638+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | the new data to insert |
639+| `args` | [`MergeInsertArgs`](../interfaces/MergeInsertArgs.md) | parameters controlling how the operation should behave |
640+
641+#### Returns
642+
643+`Promise`\<`void`\>
644+
645+#### Implementation of
646+
647+[Table](../interfaces/Table.md).[mergeInsert](../interfaces/Table.md#mergeinsert)
648+
649+#### Defined in
650+
651+[index.ts:1065](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1065)
504652
505653 ___
506654
@@ -514,7 +662,7 @@
514662
515663 | Name | Type | Description |
516664 | :------ | :------ | :------ |
517-| `data` | `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
665+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
518666
519667 #### Returns
520668
@@ -528,7 +676,7 @@
528676
529677 #### Defined in
530678
531-[index.ts:716](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L716)
679+[index.ts:977](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L977)
532680
533681 ___
534682
@@ -554,7 +702,7 @@
554702
555703 #### Defined in
556704
557-[index.ts:676](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L676)
705+[index.ts:926](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L926)
558706
559707 ___
560708
@@ -580,4 +728,36 @@
580728
581729 #### Defined in
582730
583-[index.ts:771](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L771)
731+[index.ts:1043](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1043)
732+
733+___
734+
735+### withMiddleware
736+
737+▸ **withMiddleware**(`middleware`): [`Table`](../interfaces/Table.md)\<`T`\>
738+
739+Instrument the behavior of this Table with middleware.
740+
741+The middleware will be called in the order they are added.
742+
743+Currently this functionality is only supported for remote tables.
744+
745+#### Parameters
746+
747+| Name | Type |
748+| :------ | :------ |
749+| `middleware` | `HttpMiddleware` |
750+
751+#### Returns
752+
753+[`Table`](../interfaces/Table.md)\<`T`\>
754+
755+- this Table instrumented by the passed middleware
756+
757+#### Implementation of
758+
759+[Table](../interfaces/Table.md).[withMiddleware](../interfaces/Table.md#withmiddleware)
760+
761+#### Defined in
762+
763+[index.ts:1209](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1209)
added docs/src/javascript/classes/MakeArrowTableOptions.md +82 −0
@@ -0,0 +1,82 @@
1+[vectordb](../README.md) / [Exports](../modules.md) / MakeArrowTableOptions
2+
3+# Class: MakeArrowTableOptions
4+
5+Options to control the makeArrowTable call.
6+
7+## Table of contents
8+
9+### Constructors
10+
11+- [constructor](MakeArrowTableOptions.md#constructor)
12+
13+### Properties
14+
15+- [dictionaryEncodeStrings](MakeArrowTableOptions.md#dictionaryencodestrings)
16+- [embeddings](MakeArrowTableOptions.md#embeddings)
17+- [schema](MakeArrowTableOptions.md#schema)
18+- [vectorColumns](MakeArrowTableOptions.md#vectorcolumns)
19+
20+## Constructors
21+
22+### constructor
23+
24+• **new MakeArrowTableOptions**(`values?`)
25+
26+#### Parameters
27+
28+| Name | Type |
29+| :------ | :------ |
30+| `values?` | `Partial`\<[`MakeArrowTableOptions`](MakeArrowTableOptions.md)\> |
31+
32+#### Defined in
33+
34+[arrow.ts:98](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L98)
35+
36+## Properties
37+
38+### dictionaryEncodeStrings
39+
40+• **dictionaryEncodeStrings**: `boolean` = `false`
41+
42+If true then string columns will be encoded with dictionary encoding
43+
44+Set this to true if your string columns tend to repeat the same values
45+often. For more precise control use the `schema` property to specify the
46+data type for individual columns.
47+
48+If `schema` is provided then this property is ignored.
49+
50+#### Defined in
51+
52+[arrow.ts:96](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L96)
53+
54+___
55+
56+### embeddings
57+
58+• `Optional` **embeddings**: [`EmbeddingFunction`](../interfaces/EmbeddingFunction.md)\<`any`\>
59+
60+#### Defined in
61+
62+[arrow.ts:85](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L85)
63+
64+___
65+
66+### schema
67+
68+• `Optional` **schema**: `Schema`\<`any`\>
69+
70+#### Defined in
71+
72+[arrow.ts:63](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L63)
73+
74+___
75+
76+### vectorColumns
77+
78+• **vectorColumns**: `Record`\<`string`, `VectorColumnOptions`\>
79+
80+#### Defined in
81+
82+[arrow.ts:81](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L81)
modified docs/src/javascript/classes/OpenAIEmbeddingFunction.md +6 −6
@@ -40,7 +40,7 @@
4040
4141 #### Defined in
4242
43-[embedding/openai.ts:21](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/openai.ts#L21)
43+[embedding/openai.ts:22](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/openai.ts#L22)
4444
4545 ## Properties
4646
@@ -50,17 +50,17 @@
5050
5151 #### Defined in
5252
53-[embedding/openai.ts:19](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/openai.ts#L19)
53+[embedding/openai.ts:20](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/openai.ts#L20)
5454
5555 ___
5656
5757 ### \_openai
5858
59-• `Private` `Readonly` **\_openai**: `any`
59+• `Private` `Readonly` **\_openai**: `OpenAI`
6060
6161 #### Defined in
6262
63-[embedding/openai.ts:18](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/openai.ts#L18)
63+[embedding/openai.ts:19](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/openai.ts#L19)
6464
6565 ___
6666
@@ -76,7 +76,7 @@
7676
7777 #### Defined in
7878
79-[embedding/openai.ts:50](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/openai.ts#L50)
79+[embedding/openai.ts:56](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/openai.ts#L56)
8080
8181 ## Methods
8282
@@ -102,4 +102,4 @@
102102
103103 #### Defined in
104104
105-[embedding/openai.ts:38](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/openai.ts#L38)
105+[embedding/openai.ts:43](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/openai.ts#L43)
modified docs/src/javascript/classes/Query.md +58 −22
@@ -19,6 +19,7 @@
1919 ### Properties
2020
2121 - [\_embeddings](Query.md#_embeddings)
22+- [\_fastSearch](Query.md#_fastsearch)
2223 - [\_filter](Query.md#_filter)
2324 - [\_limit](Query.md#_limit)
2425 - [\_metricType](Query.md#_metrictype)
@@ -34,6 +35,7 @@
3435 ### Methods
3536
3637 - [execute](Query.md#execute)
38+- [fastSearch](Query.md#fastsearch)
3739 - [filter](Query.md#filter)
3840 - [isElectron](Query.md#iselectron)
3941 - [limit](Query.md#limit)
@@ -65,7 +67,7 @@
6567
6668 #### Defined in
6769
68-[query.ts:38](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L38)
70+[query.ts:39](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L39)
6971
7072 ## Properties
7173
@@ -75,7 +77,17 @@
7577
7678 #### Defined in
7779
78-[query.ts:36](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L36)
80+[query.ts:37](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L37)
81+
82+___
83+
84+### \_fastSearch
85+
86+• `Private` **\_fastSearch**: `boolean`
87+
88+#### Defined in
89+
90+[query.ts:36](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L36)
7991
8092 ___
8193
@@ -85,7 +97,7 @@
8597
8698 #### Defined in
8799
88-[query.ts:33](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L33)
100+[query.ts:33](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L33)
89101
90102 ___
91103
@@ -95,7 +107,7 @@
95107
96108 #### Defined in
97109
98-[query.ts:29](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L29)
110+[query.ts:29](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L29)
99111
100112 ___
101113
@@ -105,7 +117,7 @@
105117
106118 #### Defined in
107119
108-[query.ts:34](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L34)
120+[query.ts:34](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L34)
109121
110122 ___
111123
@@ -115,7 +127,7 @@
115127
116128 #### Defined in
117129
118-[query.ts:31](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L31)
130+[query.ts:31](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L31)
119131
120132 ___
121133
@@ -125,7 +137,7 @@
125137
126138 #### Defined in
127139
128-[query.ts:35](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L35)
140+[query.ts:35](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L35)
129141
130142 ___
131143
@@ -135,7 +147,7 @@
135147
136148 #### Defined in
137149
138-[query.ts:26](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L26)
150+[query.ts:26](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L26)
139151
140152 ___
141153
@@ -145,7 +157,7 @@
145157
146158 #### Defined in
147159
148-[query.ts:28](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L28)
160+[query.ts:28](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L28)
149161
150162 ___
151163
@@ -155,7 +167,7 @@
155167
156168 #### Defined in
157169
158-[query.ts:30](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L30)
170+[query.ts:30](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L30)
159171
160172 ___
161173
@@ -165,7 +177,7 @@
165177
166178 #### Defined in
167179
168-[query.ts:32](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L32)
180+[query.ts:32](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L32)
169181
170182 ___
171183
@@ -175,7 +187,7 @@
175187
176188 #### Defined in
177189
178-[query.ts:27](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L27)
190+[query.ts:27](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L27)
179191
180192 ___
181193
@@ -201,7 +213,7 @@
201213
202214 #### Defined in
203215
204-[query.ts:87](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L87)
216+[query.ts:90](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L90)
205217
206218 ## Methods
207219
@@ -223,7 +235,30 @@
223235
224236 #### Defined in
225237
226-[query.ts:115](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L115)
238+[query.ts:127](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L127)
239+
240+___
241+
242+### fastSearch
243+
244+▸ **fastSearch**(`value`): [`Query`](Query.md)\<`T`\>
245+
246+Skip searching un-indexed data. This can make search faster, but will miss
247+any data that is not yet indexed.
248+
249+#### Parameters
250+
251+| Name | Type |
252+| :------ | :------ |
253+| `value` | `boolean` |
254+
255+#### Returns
256+
257+[`Query`](Query.md)\<`T`\>
258+
259+#### Defined in
260+
261+[query.ts:119](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L119)
227262
228263 ___
229264
@@ -245,7 +280,7 @@
245280
246281 #### Defined in
247282
248-[query.ts:82](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L82)
283+[query.ts:85](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L85)
249284
250285 ___
251286
@@ -259,7 +294,7 @@
259294
260295 #### Defined in
261296
262-[query.ts:142](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L142)
297+[query.ts:155](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L155)
263298
264299 ___
265300
@@ -268,6 +303,7 @@
268303 ▸ **limit**(`value`): [`Query`](Query.md)\<`T`\>
269304
270305 Sets the number of results that will be returned
306+default value is 10
271307
272308 #### Parameters
273309
@@ -281,7 +317,7 @@
281317
282318 #### Defined in
283319
284-[query.ts:55](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L55)
320+[query.ts:58](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L58)
285321
286322 ___
287323
@@ -307,7 +343,7 @@
307343
308344 #### Defined in
309345
310-[query.ts:102](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L102)
346+[query.ts:105](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L105)
311347
312348 ___
313349
@@ -329,7 +365,7 @@
329365
330366 #### Defined in
331367
332-[query.ts:73](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L73)
368+[query.ts:76](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L76)
333369
334370 ___
335371
@@ -349,7 +385,7 @@
349385
350386 #### Defined in
351387
352-[query.ts:107](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L107)
388+[query.ts:110](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L110)
353389
354390 ___
355391
@@ -371,7 +407,7 @@
371407
372408 #### Defined in
373409
374-[query.ts:64](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L64)
410+[query.ts:67](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L67)
375411
376412 ___
377413
@@ -393,4 +429,4 @@
393429
394430 #### Defined in
395431
396-[query.ts:93](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/query.ts#L93)
432+[query.ts:96](https://github.com/lancedb/lancedb/blob/92179835/node/src/query.ts#L96)
added docs/src/javascript/enums/IndexStatus.md +52 −0
@@ -0,0 +1,52 @@
1+[vectordb](../README.md) / [Exports](../modules.md) / IndexStatus
2+
3+# Enumeration: IndexStatus
4+
5+## Table of contents
6+
7+### Enumeration Members
8+
9+- [Done](IndexStatus.md#done)
10+- [Failed](IndexStatus.md#failed)
11+- [Indexing](IndexStatus.md#indexing)
12+- [Pending](IndexStatus.md#pending)
13+
14+## Enumeration Members
15+
16+### Done
17+
18+• **Done** = ``"done"``
19+
20+#### Defined in
21+
22+[index.ts:713](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L713)
23+
24+___
25+
26+### Failed
27+
28+• **Failed** = ``"failed"``
29+
30+#### Defined in
31+
32+[index.ts:714](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L714)
33+
34+___
35+
36+### Indexing
37+
38+• **Indexing** = ``"indexing"``
39+
40+#### Defined in
41+
42+[index.ts:712](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L712)
43+
44+___
45+
46+### Pending
47+
48+• **Pending** = ``"pending"``
49+
50+#### Defined in
51+
52+[index.ts:711](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L711)
modified docs/src/javascript/enums/MetricType.md +3 −3
@@ -22,7 +22,7 @@
2222
2323 #### Defined in
2424
25-[index.ts:1041](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1041)
25+[index.ts:1381](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1381)
2626
2727 ___
2828
@@ -34,7 +34,7 @@
3434
3535 #### Defined in
3636
37-[index.ts:1046](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1046)
37+[index.ts:1386](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1386)
3838
3939 ___
4040
@@ -46,4 +46,4 @@
4646
4747 #### Defined in
4848
49-[index.ts:1036](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1036)
49+[index.ts:1376](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1376)
modified docs/src/javascript/enums/WriteMode.md +3 −3
@@ -22,7 +22,7 @@
2222
2323 #### Defined in
2424
25-[index.ts:1007](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1007)
25+[index.ts:1347](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1347)
2626
2727 ___
2828
@@ -34,7 +34,7 @@
3434
3535 #### Defined in
3636
37-[index.ts:1003](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1003)
37+[index.ts:1343](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1343)
3838
3939 ___
4040
@@ -46,4 +46,4 @@
4646
4747 #### Defined in
4848
49-[index.ts:1005](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1005)
49+[index.ts:1345](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1345)
modified docs/src/javascript/interfaces/AwsCredentials.md +3 −3
@@ -18,7 +18,7 @@
1818
1919 #### Defined in
2020
21-[index.ts:54](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L54)
21+[index.ts:68](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L68)
2222
2323 ___
2424
@@ -28,7 +28,7 @@
2828
2929 #### Defined in
3030
31-[index.ts:56](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L56)
31+[index.ts:70](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L70)
3232
3333 ___
3434
@@ -38,4 +38,4 @@
3838
3939 #### Defined in
4040
41-[index.ts:58](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L58)
41+[index.ts:72](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L72)
modified docs/src/javascript/interfaces/CleanupStats.md +2 −2
@@ -19,7 +19,7 @@
1919
2020 #### Defined in
2121
22-[index.ts:878](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L878)
22+[index.ts:1218](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1218)
2323
2424 ___
2525
@@ -31,4 +31,4 @@
3131
3232 #### Defined in
3333
34-[index.ts:882](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L882)
34+[index.ts:1222](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1222)
added docs/src/javascript/interfaces/ColumnAlteration.md +53 −0
@@ -0,0 +1,53 @@
1+[vectordb](../README.md) / [Exports](../modules.md) / ColumnAlteration
2+
3+# Interface: ColumnAlteration
4+
5+A definition of a column alteration. The alteration changes the column at
6+`path` to have the new name `name`, to be nullable if `nullable` is true,
7+and to have the data type `data_type`. At least one of `rename` or `nullable`
8+must be provided.
9+
10+## Table of contents
11+
12+### Properties
13+
14+- [nullable](ColumnAlteration.md#nullable)
15+- [path](ColumnAlteration.md#path)
16+- [rename](ColumnAlteration.md#rename)
17+
18+## Properties
19+
20+### nullable
21+
22+• `Optional` **nullable**: `boolean`
23+
24+Set the new nullability. Note that a nullable column cannot be made non-nullable.
25+
26+#### Defined in
27+
28+[index.ts:638](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L638)
29+
30+___
31+
32+### path
33+
34+• **path**: `string`
35+
36+The path to the column to alter. This is a dot-separated path to the column.
37+If it is a top-level column then it is just the name of the column. If it is
38+a nested column then it is the path to the column, e.g. "a.b.c" for a column
39+`c` nested inside a column `b` nested inside a column `a`.
40+
41+#### Defined in
42+
43+[index.ts:633](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L633)
44+
45+___
46+
47+### rename
48+
49+• `Optional` **rename**: `string`
50+
51+#### Defined in
52+
53+[index.ts:634](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L634)
modified docs/src/javascript/interfaces/CompactionMetrics.md +4 −4
@@ -22,7 +22,7 @@
2222
2323 #### Defined in
2424
25-[index.ts:933](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L933)
25+[index.ts:1273](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1273)
2626
2727 ___
2828
@@ -35,7 +35,7 @@
3535
3636 #### Defined in
3737
38-[index.ts:928](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L928)
38+[index.ts:1268](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1268)
3939
4040 ___
4141
@@ -47,7 +47,7 @@
4747
4848 #### Defined in
4949
50-[index.ts:923](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L923)
50+[index.ts:1263](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1263)
5151
5252 ___
5353
@@ -59,4 +59,4 @@
5959
6060 #### Defined in
6161
62-[index.ts:919](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L919)
62+[index.ts:1259](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1259)
modified docs/src/javascript/interfaces/CompactionOptions.md +6 −6
@@ -24,7 +24,7 @@
2424
2525 #### Defined in
2626
27-[index.ts:901](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L901)
27+[index.ts:1241](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1241)
2828
2929 ___
3030
@@ -38,7 +38,7 @@
3838
3939 #### Defined in
4040
41-[index.ts:907](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L907)
41+[index.ts:1247](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1247)
4242
4343 ___
4444
@@ -46,11 +46,11 @@
4646
4747 • `Optional` **maxRowsPerGroup**: `number`
4848
49-The maximum number of rows per group. Defaults to 1024.
49+The maximum number of T per group. Defaults to 1024.
5050
5151 #### Defined in
5252
53-[index.ts:895](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L895)
53+[index.ts:1235](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1235)
5454
5555 ___
5656
@@ -63,7 +63,7 @@
6363
6464 #### Defined in
6565
66-[index.ts:912](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L912)
66+[index.ts:1252](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1252)
6767
6868 ___
6969
@@ -77,4 +77,4 @@
7777
7878 #### Defined in
7979
80-[index.ts:891](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L891)
80+[index.ts:1231](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1231)
modified docs/src/javascript/interfaces/Connection.md +42 −13
@@ -22,6 +22,7 @@
2222 - [dropTable](Connection.md#droptable)
2323 - [openTable](Connection.md#opentable)
2424 - [tableNames](Connection.md#tablenames)
25+- [withMiddleware](Connection.md#withmiddleware)
2526
2627 ## Properties
2728
@@ -31,7 +32,7 @@
3132
3233 #### Defined in
3334
34-[index.ts:183](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L183)
35+[index.ts:261](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L261)
3536
3637 ## Methods
3738
@@ -59,7 +60,7 @@
5960
6061 #### Defined in
6162
62-[index.ts:207](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L207)
63+[index.ts:285](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L285)
6364
6465 ▸ **createTable**(`name`, `data`): `Promise`\<[`Table`](Table.md)\<`number`[]\>\>
6566
@@ -70,7 +71,7 @@
7071 | Name | Type | Description |
7172 | :------ | :------ | :------ |
7273 | `name` | `string` | The name of the table. |
73-| `data` | `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
74+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
7475
7576 #### Returns
7677
@@ -78,7 +79,7 @@
7879
7980 #### Defined in
8081
81-[index.ts:221](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L221)
82+[index.ts:299](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L299)
8283
8384 ▸ **createTable**(`name`, `data`, `options`): `Promise`\<[`Table`](Table.md)\<`number`[]\>\>
8485
@@ -89,7 +90,7 @@
8990 | Name | Type | Description |
9091 | :------ | :------ | :------ |
9192 | `name` | `string` | The name of the table. |
92-| `data` | `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
93+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
9394 | `options` | [`WriteOptions`](WriteOptions.md) | The write options to use when creating the table. |
9495
9596 #### Returns
@@ -98,7 +99,7 @@
9899
99100 #### Defined in
100101
101-[index.ts:233](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L233)
102+[index.ts:311](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L311)
102103
103104 ▸ **createTable**\<`T`\>(`name`, `data`, `embeddings`): `Promise`\<[`Table`](Table.md)\<`T`\>\>
104105
@@ -115,7 +116,7 @@
115116 | Name | Type | Description |
116117 | :------ | :------ | :------ |
117118 | `name` | `string` | The name of the table. |
118-| `data` | `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
119+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
119120 | `embeddings` | [`EmbeddingFunction`](EmbeddingFunction.md)\<`T`\> | An embedding function to use on this table |
120121
121122 #### Returns
@@ -124,7 +125,7 @@
124125
125126 #### Defined in
126127
127-[index.ts:246](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L246)
128+[index.ts:324](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L324)
128129
129130 ▸ **createTable**\<`T`\>(`name`, `data`, `embeddings`, `options`): `Promise`\<[`Table`](Table.md)\<`T`\>\>
130131
@@ -141,7 +142,7 @@
141142 | Name | Type | Description |
142143 | :------ | :------ | :------ |
143144 | `name` | `string` | The name of the table. |
144-| `data` | `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
145+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Non-empty Array of Records to be inserted into the table |
145146 | `embeddings` | [`EmbeddingFunction`](EmbeddingFunction.md)\<`T`\> | An embedding function to use on this table |
146147 | `options` | [`WriteOptions`](WriteOptions.md) | The write options to use when creating the table. |
147148
@@ -151,7 +152,7 @@
151152
152153 #### Defined in
153154
154-[index.ts:259](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L259)
155+[index.ts:337](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L337)
155156
156157 ___
157158
@@ -173,7 +174,7 @@
173174
174175 #### Defined in
175176
176-[index.ts:270](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L270)
177+[index.ts:348](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L348)
177178
178179 ___
179180
@@ -202,7 +203,7 @@
202203
203204 #### Defined in
204205
205-[index.ts:193](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L193)
206+[index.ts:271](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L271)
206207
207208 ___
208209
@@ -216,4 +217,32 @@
216217
217218 #### Defined in
218219
219-[index.ts:185](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L185)
220+[index.ts:263](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L263)
221+
222+___
223+
224+### withMiddleware
225+
226+▸ **withMiddleware**(`middleware`): [`Connection`](Connection.md)
227+
228+Instrument the behavior of this Connection with middleware.
229+
230+The middleware will be called in the order they are added.
231+
232+Currently this functionality is only supported for remote Connections.
233+
234+#### Parameters
235+
236+| Name | Type |
237+| :------ | :------ |
238+| `middleware` | `HttpMiddleware` |
239+
240+#### Returns
241+
242+[`Connection`](Connection.md)
243+
244+- this Connection instrumented by the passed middleware
245+
246+#### Defined in
247+
248+[index.ts:360](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L360)
modified docs/src/javascript/interfaces/ConnectionOptions.md +72 −10
@@ -10,7 +10,10 @@
1010 - [awsCredentials](ConnectionOptions.md#awscredentials)
1111 - [awsRegion](ConnectionOptions.md#awsregion)
1212 - [hostOverride](ConnectionOptions.md#hostoverride)
13+- [readConsistencyInterval](ConnectionOptions.md#readconsistencyinterval)
1314 - [region](ConnectionOptions.md#region)
15+- [storageOptions](ConnectionOptions.md#storageoptions)
16+- [timeout](ConnectionOptions.md#timeout)
1417 - [uri](ConnectionOptions.md#uri)
1518
1619 ## Properties
@@ -19,9 +22,13 @@
1922
2023 • `Optional` **apiKey**: `string`
2124
25+API key for the remote connections
26+
27+Can also be passed by setting environment variable `LANCEDB_API_KEY`
28+
2229 #### Defined in
2330
24-[index.ts:81](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L81)
31+[index.ts:112](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L112)
2532
2633 ___
2734
@@ -33,9 +40,14 @@
3340
3441 If not provided, LanceDB will use the default credentials provider chain.
3542
43+**`Deprecated`**
44+
45+Pass `aws_access_key_id`, `aws_secret_access_key`, and `aws_session_token`
46+through `storageOptions` instead.
47+
3648 #### Defined in
3749
38-[index.ts:75](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L75)
50+[index.ts:92](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L92)
3951
4052 ___
4153
@@ -43,11 +55,15 @@
4355
4456 • `Optional` **awsRegion**: `string`
4557
46-AWS region to connect to. Default is defaultAwsRegion.
58+AWS region to connect to. Default is defaultAwsRegion
59+
60+**`Deprecated`**
61+
62+Pass `region` through `storageOptions` instead.
4763
4864 #### Defined in
4965
50-[index.ts:78](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L78)
66+[index.ts:98](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L98)
5167
5268 ___
5369
@@ -55,13 +71,33 @@
5571
5672 • `Optional` **hostOverride**: `string`
5773
58-Override the host URL for the remote connections.
74+Override the host URL for the remote connection.
5975
6076 This is useful for local testing.
6177
6278 #### Defined in
6379
64-[index.ts:91](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L91)
80+[index.ts:122](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L122)
81+
82+___
83+
84+### readConsistencyInterval
85+
86+• `Optional` **readConsistencyInterval**: `number`
87+
88+(For LanceDB OSS only): The interval, in seconds, at which to check for
89+updates to the table from other processes. If None, then consistency is not
90+checked. For performance reasons, this is the default. For strong
91+consistency, set this to zero seconds. Then every read will check for
92+updates from other processes. As a compromise, you can set this to a
93+non-zero value for eventual consistency. If more than that interval
94+has passed since the last check, then the table will be checked for updates.
95+Note: this consistency only applies to read operations. Write operations are
96+always consistent.
97+
98+#### Defined in
99+
100+[index.ts:140](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L140)
65101
66102 ___
67103
@@ -69,11 +105,37 @@
69105
70106 • `Optional` **region**: `string`
71107
72-Region to connect
108+Region to connect. Default is 'us-east-1'
109+
110+#### Defined in
111+
112+[index.ts:115](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L115)
113+
114+___
115+
116+### storageOptions
117+
118+• `Optional` **storageOptions**: `Record`\<`string`, `string`\>
119+
120+User provided options for object storage. For example, S3 credentials or request timeouts.
121+
122+The various options are described at https://lancedb.github.io/lancedb/guides/storage/
123+
124+#### Defined in
125+
126+[index.ts:105](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L105)
127+
128+___
129+
130+### timeout
131+
132+• `Optional` **timeout**: `number`
133+
134+Duration in milliseconds for request timeout. Default = 10,000 (10 seconds)
73135
74136 #### Defined in
75137
76-[index.ts:84](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L84)
138+[index.ts:127](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L127)
77139
78140 ___
79141
@@ -85,8 +147,8 @@
85147
86148 - `/path/to/database` - local database
87149 - `s3://bucket/path/to/database` or `gs://bucket/path/to/database` - database on cloud storage
88-- `db://host:port` - remote database (SaaS)
150+- `db://host:port` - remote database (LanceDB cloud)
89151
90152 #### Defined in
91153
92-[index.ts:69](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L69)
154+[index.ts:83](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L83)
modified docs/src/javascript/interfaces/CreateTableOptions.md +5 −5
@@ -26,7 +26,7 @@
2626
2727 #### Defined in
2828
29-[index.ts:116](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L116)
29+[index.ts:163](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L163)
3030
3131 ___
3232
@@ -36,7 +36,7 @@
3636
3737 #### Defined in
3838
39-[index.ts:122](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L122)
39+[index.ts:169](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L169)
4040
4141 ___
4242
@@ -46,7 +46,7 @@
4646
4747 #### Defined in
4848
49-[index.ts:113](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L113)
49+[index.ts:160](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L160)
5050
5151 ___
5252
@@ -56,7 +56,7 @@
5656
5757 #### Defined in
5858
59-[index.ts:119](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L119)
59+[index.ts:166](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L166)
6060
6161 ___
6262
@@ -66,4 +66,4 @@
6666
6767 #### Defined in
6868
69-[index.ts:125](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L125)
69+[index.ts:172](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L172)
modified docs/src/javascript/interfaces/EmbeddingFunction.md +67 −2
@@ -18,11 +18,29 @@
1818
1919 ### Properties
2020
21+- [destColumn](EmbeddingFunction.md#destcolumn)
2122 - [embed](EmbeddingFunction.md#embed)
23+- [embeddingDataType](EmbeddingFunction.md#embeddingdatatype)
24+- [embeddingDimension](EmbeddingFunction.md#embeddingdimension)
25+- [excludeSource](EmbeddingFunction.md#excludesource)
2226 - [sourceColumn](EmbeddingFunction.md#sourcecolumn)
2327
2428 ## Properties
2529
30+### destColumn
31+
32+• `Optional` **destColumn**: `string`
33+
34+The name of the column that will contain the embedding
35+
36+By default this is "vector"
37+
38+#### Defined in
39+
40+[embedding/embedding_function.ts:49](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L49)
41+
42+___
43+
2644 ### embed
2745
2846 • **embed**: (`data`: `T`[]) => `Promise`\<`number`[][]\>
@@ -45,7 +63,54 @@
4563
4664 #### Defined in
4765
48-[embedding/embedding_function.ts:27](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/embedding_function.ts#L27)
66+[embedding/embedding_function.ts:62](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L62)
67+
68+___
69+
70+### embeddingDataType
71+
72+• `Optional` **embeddingDataType**: `Float`\<`Floats`\>
73+
74+The data type of the embedding
75+
76+The embedding function should return `number`. This will be converted into
77+an Arrow float array. By default this will be Float32 but this property can
78+be used to control the conversion.
79+
80+#### Defined in
81+
82+[embedding/embedding_function.ts:33](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L33)
83+
84+___
85+
86+### embeddingDimension
87+
88+• `Optional` **embeddingDimension**: `number`
89+
90+The dimension of the embedding
91+
92+This is optional, normally this can be determined by looking at the results of
93+`embed`. If this is not specified, and there is an attempt to apply the embedding
94+to an empty table, then that process will fail.
95+
96+#### Defined in
97+
98+[embedding/embedding_function.ts:42](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L42)
99+
100+___
101+
102+### excludeSource
103+
104+• `Optional` **excludeSource**: `boolean`
105+
106+Should the source column be excluded from the resulting table
107+
108+By default the source column is included. Set this to true and
109+only the embedding will be stored.
110+
111+#### Defined in
112+
113+[embedding/embedding_function.ts:57](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L57)
49114
50115 ___
51116
@@ -57,4 +122,4 @@
57122
58123 #### Defined in
59124
60-[embedding/embedding_function.ts:22](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/embedding/embedding_function.ts#L22)
125+[embedding/embedding_function.ts:24](https://github.com/lancedb/lancedb/blob/92179835/node/src/embedding/embedding_function.ts#L24)
modified docs/src/javascript/interfaces/IndexStats.md +35 −2
@@ -6,18 +6,51 @@
66
77 ### Properties
88
9+- [distanceType](IndexStats.md#distancetype)
10+- [indexType](IndexStats.md#indextype)
911 - [numIndexedRows](IndexStats.md#numindexedrows)
12+- [numIndices](IndexStats.md#numindices)
1013 - [numUnindexedRows](IndexStats.md#numunindexedrows)
1114
1215 ## Properties
1316
17+### distanceType
18+
19+• `Optional` **distanceType**: `string`
20+
21+#### Defined in
22+
23+[index.ts:728](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L728)
24+
25+___
26+
27+### indexType
28+
29+• **indexType**: `string`
30+
31+#### Defined in
32+
33+[index.ts:727](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L727)
34+
35+___
36+
1437 ### numIndexedRows
1538
1639 • **numIndexedRows**: ``null`` \| `number`
1740
1841 #### Defined in
1942
20-[index.ts:478](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L478)
43+[index.ts:725](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L725)
44+
45+___
46+
47+### numIndices
48+
49+• `Optional` **numIndices**: `number`
50+
51+#### Defined in
52+
53+[index.ts:729](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L729)
2154
2255 ___
2356
@@ -27,4 +60,4 @@
2760
2861 #### Defined in
2962
30-[index.ts:479](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L479)
63+[index.ts:726](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L726)
modified docs/src/javascript/interfaces/IvfPQIndexConfig.md +12 −12
@@ -29,7 +29,7 @@
2929
3030 #### Defined in
3131
32-[index.ts:942](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L942)
32+[index.ts:1282](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1282)
3333
3434 ___
3535
@@ -41,7 +41,7 @@
4141
4242 #### Defined in
4343
44-[index.ts:991](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L991)
44+[index.ts:1331](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1331)
4545
4646 ___
4747
@@ -53,7 +53,7 @@
5353
5454 #### Defined in
5555
56-[index.ts:947](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L947)
56+[index.ts:1287](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1287)
5757
5858 ___
5959
@@ -65,7 +65,7 @@
6565
6666 #### Defined in
6767
68-[index.ts:962](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L962)
68+[index.ts:1302](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1302)
6969
7070 ___
7171
@@ -77,7 +77,7 @@
7777
7878 #### Defined in
7979
80-[index.ts:981](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L981)
80+[index.ts:1321](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1321)
8181
8282 ___
8383
@@ -89,7 +89,7 @@
8989
9090 #### Defined in
9191
92-[index.ts:952](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L952)
92+[index.ts:1292](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1292)
9393
9494 ___
9595
@@ -101,7 +101,7 @@
101101
102102 #### Defined in
103103
104-[index.ts:976](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L976)
104+[index.ts:1316](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1316)
105105
106106 ___
107107
@@ -113,7 +113,7 @@
113113
114114 #### Defined in
115115
116-[index.ts:957](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L957)
116+[index.ts:1297](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1297)
117117
118118 ___
119119
@@ -125,7 +125,7 @@
125125
126126 #### Defined in
127127
128-[index.ts:972](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L972)
128+[index.ts:1312](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1312)
129129
130130 ___
131131
@@ -137,7 +137,7 @@
137137
138138 #### Defined in
139139
140-[index.ts:986](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L986)
140+[index.ts:1326](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1326)
141141
142142 ___
143143
@@ -147,7 +147,7 @@
147147
148148 #### Defined in
149149
150-[index.ts:993](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L993)
150+[index.ts:1333](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1333)
151151
152152 ___
153153
@@ -159,4 +159,4 @@
159159
160160 #### Defined in
161161
162-[index.ts:967](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L967)
162+[index.ts:1307](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1307)
added docs/src/javascript/interfaces/MergeInsertArgs.md +73 −0
@@ -0,0 +1,73 @@
1+[vectordb](../README.md) / [Exports](../modules.md) / MergeInsertArgs
2+
3+# Interface: MergeInsertArgs
4+
5+## Table of contents
6+
7+### Properties
8+
9+- [whenMatchedUpdateAll](MergeInsertArgs.md#whenmatchedupdateall)
10+- [whenNotMatchedBySourceDelete](MergeInsertArgs.md#whennotmatchedbysourcedelete)
11+- [whenNotMatchedInsertAll](MergeInsertArgs.md#whennotmatchedinsertall)
12+
13+## Properties
14+
15+### whenMatchedUpdateAll
16+
17+• `Optional` **whenMatchedUpdateAll**: `string` \| `boolean`
18+
19+If true then rows that exist in both the source table (new data) and
20+the target table (old data) will be updated, replacing the old row
21+with the corresponding matching row.
22+
23+If there are multiple matches then the behavior is undefined.
24+Currently this causes multiple copies of the row to be created
25+but that behavior is subject to change.
26+
27+Optionally, a filter can be specified. This should be an SQL
28+filter where fields with the prefix "target." refer to fields
29+in the target table (old data) and fields with the prefix
30+"source." refer to fields in the source table (new data). For
31+example, the filter "target.lastUpdated < source.lastUpdated" will
32+only update matched rows when the incoming `lastUpdated` value is
33+newer.
34+
35+Rows that do not match the filter will not be updated. Rows that
36+do not match the filter do become "not matched" rows.
37+
38+#### Defined in
39+
40+[index.ts:690](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L690)
41+
42+___
43+
44+### whenNotMatchedBySourceDelete
45+
46+• `Optional` **whenNotMatchedBySourceDelete**: `string` \| `boolean`
47+
48+If true then rows that exist only in the target table (old data)
49+will be deleted.
50+
51+If this is a string then it will be treated as an SQL filter and
52+only rows that both do not match any row in the source table and
53+match the given filter will be deleted.
54+
55+This can be used to replace a selection of existing data with
56+new data.
57+
58+#### Defined in
59+
60+[index.ts:707](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L707)
61+
62+___
63+
64+### whenNotMatchedInsertAll
65+
66+• `Optional` **whenNotMatchedInsertAll**: `boolean`
67+
68+If true then rows that exist only in the source table (new data)
69+will be inserted into the target table.
70+
71+#### Defined in
72+
73+[index.ts:695](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L695)
modified docs/src/javascript/interfaces/Table.md +208 −24
@@ -25,17 +25,26 @@
2525 - [delete](Table.md#delete)
2626 - [indexStats](Table.md#indexstats)
2727 - [listIndices](Table.md#listindices)
28+- [mergeInsert](Table.md#mergeinsert)
2829 - [name](Table.md#name)
2930 - [overwrite](Table.md#overwrite)
3031 - [schema](Table.md#schema)
3132 - [search](Table.md#search)
3233 - [update](Table.md#update)
3334
35+### Methods
36+
37+- [addColumns](Table.md#addcolumns)
38+- [alterColumns](Table.md#altercolumns)
39+- [dropColumns](Table.md#dropcolumns)
40+- [filter](Table.md#filter)
41+- [withMiddleware](Table.md#withmiddleware)
42+
3443 ## Properties
3544
3645 ### add
3746
38-• **add**: (`data`: `Record`\<`string`, `unknown`\>[]) => `Promise`\<`number`\>
47+• **add**: (`data`: `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[]) => `Promise`\<`number`\>
3948
4049 #### Type declaration
4150
@@ -47,7 +56,7 @@
4756
4857 | Name | Type | Description |
4958 | :------ | :------ | :------ |
50-| `data` | `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
59+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
5160
5261 ##### Returns
5362
@@ -57,27 +66,33 @@
5766
5867 #### Defined in
5968
60-[index.ts:291](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L291)
69+[index.ts:381](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L381)
6170
6271 ___
6372
6473 ### countRows
6574
66-• **countRows**: () => `Promise`\<`number`\>
75+• **countRows**: (`filter?`: `string`) => `Promise`\<`number`\>
6776
6877 #### Type declaration
6978
70-▸ (): `Promise`\<`number`\>
79+▸ (`filter?`): `Promise`\<`number`\>
7180
7281 Returns the number of rows in this table.
7382
83+##### Parameters
84+
85+| Name | Type |
86+| :------ | :------ |
87+| `filter?` | `string` |
88+
7489 ##### Returns
7590
7691 `Promise`\<`number`\>
7792
7893 #### Defined in
7994
80-[index.ts:361](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L361)
95+[index.ts:454](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L454)
8196
8297 ___
8398
@@ -107,17 +122,17 @@
107122
108123 #### Defined in
109124
110-[index.ts:306](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L306)
125+[index.ts:398](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L398)
111126
112127 ___
113128
114129 ### createScalarIndex
115130
116-• **createScalarIndex**: (`column`: `string`, `replace`: `boolean`) => `Promise`\<`void`\>
131+• **createScalarIndex**: (`column`: `string`, `replace?`: `boolean`) => `Promise`\<`void`\>
117132
118133 #### Type declaration
119134
120-▸ (`column`, `replace`): `Promise`\<`void`\>
135+▸ (`column`, `replace?`): `Promise`\<`void`\>
121136
122137 Create a scalar index on this Table for the given column
123138
@@ -126,7 +141,7 @@
126141 | Name | Type | Description |
127142 | :------ | :------ | :------ |
128143 | `column` | `string` | The column to index |
129-| `replace` | `boolean` | If false, fail if an index already exists on the column Scalar indices, like vector indices, can be used to speed up scans. A scalar index can speed up scans that contain filter expressions on the indexed column. For example, the following scan will be faster if the column `my_col` has a scalar index: ```ts const con = await lancedb.connect('./.lancedb'); const table = await con.openTable('images'); const results = await table.where('my_col = 7').execute(); ``` Scalar indices can also speed up scans containing a vector search and a prefilter: ```ts const con = await lancedb.connect('././lancedb'); const table = await con.openTable('images'); const results = await table.search([1.0, 2.0]).where('my_col != 7').prefilter(true); ``` Scalar indices can only speed up scans for basic filters using equality, comparison, range (e.g. `my_col BETWEEN 0 AND 100`), and set membership (e.g. `my_col IN (0, 1, 2)`) Scalar indices can be used if the filter contains multiple indexed columns and the filter criteria are AND'd or OR'd together (e.g. `my_col < 0 AND other_col> 100`) Scalar indices may be used if the filter contains non-indexed columns but, depending on the structure of the filter, they may not be usable. For example, if the column `not_indexed` does not have a scalar index then the filter `my_col = 0 OR not_indexed = 1` will not be able to use any scalar index on `my_col`. |
144+| `replace?` | `boolean` | If false, fail if an index already exists on the column it is always set to true for remote connections Scalar indices, like vector indices, can be used to speed up scans. A scalar index can speed up scans that contain filter expressions on the indexed column. For example, the following scan will be faster if the column `my_col` has a scalar index: ```ts const con = await lancedb.connect('./.lancedb'); const table = await con.openTable('images'); const results = await table.where('my_col = 7').execute(); ``` Scalar indices can also speed up scans containing a vector search and a prefilter: ```ts const con = await lancedb.connect('././lancedb'); const table = await con.openTable('images'); const results = await table.search([1.0, 2.0]).where('my_col != 7').prefilter(true); ``` Scalar indices can only speed up scans for basic filters using equality, comparison, range (e.g. `my_col BETWEEN 0 AND 100`), and set membership (e.g. `my_col IN (0, 1, 2)`) Scalar indices can be used if the filter contains multiple indexed columns and the filter criteria are AND'd or OR'd together (e.g. `my_col < 0 AND other_col> 100`) Scalar indices may be used if the filter contains non-indexed columns but, depending on the structure of the filter, they may not be usable. For example, if the column `not_indexed` does not have a scalar index then the filter `my_col = 0 OR not_indexed = 1` will not be able to use any scalar index on `my_col`. |
130145
131146 ##### Returns
132147
@@ -142,7 +157,7 @@
142157
143158 #### Defined in
144159
145-[index.ts:356](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L356)
160+[index.ts:449](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L449)
146161
147162 ___
148163
@@ -194,17 +209,17 @@
194209
195210 #### Defined in
196211
197-[index.ts:395](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L395)
212+[index.ts:488](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L488)
198213
199214 ___
200215
201216 ### indexStats
202217
203-• **indexStats**: (`indexUuid`: `string`) => `Promise`\<[`IndexStats`](IndexStats.md)\>
218+• **indexStats**: (`indexName`: `string`) => `Promise`\<[`IndexStats`](IndexStats.md)\>
204219
205220 #### Type declaration
206221
207-▸ (`indexUuid`): `Promise`\<[`IndexStats`](IndexStats.md)\>
222+▸ (`indexName`): `Promise`\<[`IndexStats`](IndexStats.md)\>
208223
209224 Get statistics about an index.
210225
@@ -212,7 +227,7 @@
212227
213228 | Name | Type |
214229 | :------ | :------ |
215-| `indexUuid` | `string` |
230+| `indexName` | `string` |
216231
217232 ##### Returns
218233
@@ -220,7 +235,7 @@
220235
221236 #### Defined in
222237
223-[index.ts:438](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L438)
238+[index.ts:567](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L567)
224239
225240 ___
226241
@@ -240,7 +255,57 @@
240255
241256 #### Defined in
242257
243-[index.ts:433](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L433)
258+[index.ts:562](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L562)
259+
260+___
261+
262+### mergeInsert
263+
264+• **mergeInsert**: (`on`: `string`, `data`: `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[], `args`: [`MergeInsertArgs`](MergeInsertArgs.md)) => `Promise`\<`void`\>
265+
266+#### Type declaration
267+
268+▸ (`on`, `data`, `args`): `Promise`\<`void`\>
269+
270+Runs a "merge insert" operation on the table
271+
272+This operation can add rows, update rows, and remove rows all in a single
273+transaction. It is a very generic tool that can be used to create
274+behaviors like "insert if not exists", "update or insert (i.e. upsert)",
275+or even replace a portion of existing data with new data (e.g. replace
276+all data where month="january")
277+
278+The merge insert operation works by combining new data from a
279+**source table** with existing data in a **target table** by using a
280+join. There are three categories of records.
281+
282+"Matched" records are records that exist in both the source table and
283+the target table. "Not matched" records exist only in the source table
284+(e.g. these are new data) "Not matched by source" records exist only
285+in the target table (this is old data)
286+
287+The MergeInsertArgs can be used to customize what should happen for
288+each category of data.
289+
290+Please note that the data may appear to be reordered as part of this
291+operation. This is because updated rows will be deleted from the
292+dataset and then reinserted at the end with the new values.
293+
294+##### Parameters
295+
296+| Name | Type | Description |
297+| :------ | :------ | :------ |
298+| `on` | `string` | a column to join on. This is how records from the source table and target table are matched. |
299+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | the new data to insert |
300+| `args` | [`MergeInsertArgs`](MergeInsertArgs.md) | parameters controlling how the operation should behave |
301+
302+##### Returns
303+
304+`Promise`\<`void`\>
305+
306+#### Defined in
307+
308+[index.ts:553](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L553)
244309
245310 ___
246311
@@ -250,13 +315,13 @@
250315
251316 #### Defined in
252317
253-[index.ts:277](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L277)
318+[index.ts:367](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L367)
254319
255320 ___
256321
257322 ### overwrite
258323
259-• **overwrite**: (`data`: `Record`\<`string`, `unknown`\>[]) => `Promise`\<`number`\>
324+• **overwrite**: (`data`: `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[]) => `Promise`\<`number`\>
260325
261326 #### Type declaration
262327
@@ -268,7 +333,7 @@
268333
269334 | Name | Type | Description |
270335 | :------ | :------ | :------ |
271-| `data` | `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
336+| `data` | `Table`\<`any`\> \| `Record`\<`string`, `unknown`\>[] | Records to be inserted into the Table |
272337
273338 ##### Returns
274339
@@ -278,7 +343,7 @@
278343
279344 #### Defined in
280345
281-[index.ts:299](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L299)
346+[index.ts:389](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L389)
282347
283348 ___
284349
@@ -288,7 +353,7 @@
288353
289354 #### Defined in
290355
291-[index.ts:440](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L440)
356+[index.ts:571](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L571)
292357
293358 ___
294359
@@ -314,7 +379,7 @@
314379
315380 #### Defined in
316381
317-[index.ts:283](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L283)
382+[index.ts:373](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L373)
318383
319384 ___
320385
@@ -365,4 +430,123 @@
365430
366431 #### Defined in
367432
368-[index.ts:428](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L428)
433+[index.ts:521](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L521)
434+
435+## Methods
436+
437+### addColumns
438+
439+▸ **addColumns**(`newColumnTransforms`): `Promise`\<`void`\>
440+
441+Add new columns with defined values.
442+
443+#### Parameters
444+
445+| Name | Type | Description |
446+| :------ | :------ | :------ |
447+| `newColumnTransforms` | \{ `name`: `string` ; `valueSql`: `string` }[] | pairs of column names and the SQL expression to use to calculate the value of the new column. These expressions will be evaluated for each row in the table, and can reference existing columns in the table. |
448+
449+#### Returns
450+
451+`Promise`\<`void`\>
452+
453+#### Defined in
454+
455+[index.ts:582](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L582)
456+
457+___
458+
459+### alterColumns
460+
461+▸ **alterColumns**(`columnAlterations`): `Promise`\<`void`\>
462+
463+Alter the name or nullability of columns.
464+
465+#### Parameters
466+
467+| Name | Type | Description |
468+| :------ | :------ | :------ |
469+| `columnAlterations` | [`ColumnAlteration`](ColumnAlteration.md)[] | One or more alterations to apply to columns. |
470+
471+#### Returns
472+
473+`Promise`\<`void`\>
474+
475+#### Defined in
476+
477+[index.ts:591](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L591)
478+
479+___
480+
481+### dropColumns
482+
483+▸ **dropColumns**(`columnNames`): `Promise`\<`void`\>
484+
485+Drop one or more columns from the dataset
486+
487+This is a metadata-only operation and does not remove the data from the
488+underlying storage. In order to remove the data, you must subsequently
489+call ``compact_files`` to rewrite the data without the removed columns and
490+then call ``cleanup_files`` to remove the old files.
491+
492+#### Parameters
493+
494+| Name | Type | Description |
495+| :------ | :------ | :------ |
496+| `columnNames` | `string`[] | The names of the columns to drop. These can be nested column references (e.g. "a.b.c") or top-level column names (e.g. "a"). |
497+
498+#### Returns
499+
500+`Promise`\<`void`\>
501+
502+#### Defined in
503+
504+[index.ts:605](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L605)
505+
506+___
507+
508+### filter
509+
510+▸ **filter**(`value`): [`Query`](../classes/Query.md)\<`T`\>
511+
512+#### Parameters
513+
514+| Name | Type |
515+| :------ | :------ |
516+| `value` | `string` |
517+
518+#### Returns
519+
520+[`Query`](../classes/Query.md)\<`T`\>
521+
522+#### Defined in
523+
524+[index.ts:569](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L569)
525+
526+___
527+
528+### withMiddleware
529+
530+▸ **withMiddleware**(`middleware`): [`Table`](Table.md)\<`T`\>
531+
532+Instrument the behavior of this Table with middleware.
533+
534+The middleware will be called in the order they are added.
535+
536+Currently this functionality is only supported for remote tables.
537+
538+#### Parameters
539+
540+| Name | Type |
541+| :------ | :------ |
542+| `middleware` | `HttpMiddleware` |
543+
544+#### Returns
545+
546+[`Table`](Table.md)\<`T`\>
547+
548+- this Table instrumented by the passed middleware
549+
550+#### Defined in
551+
552+[index.ts:617](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L617)
modified docs/src/javascript/interfaces/UpdateArgs.md +2 −2
@@ -20,7 +20,7 @@
2020
2121 #### Defined in
2222
23-[index.ts:454](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L454)
23+[index.ts:652](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L652)
2424
2525 ___
2626
@@ -33,4 +33,4 @@
3333
3434 #### Defined in
3535
36-[index.ts:448](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L448)
36+[index.ts:646](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L646)
modified docs/src/javascript/interfaces/UpdateSqlArgs.md +2 −2
@@ -20,7 +20,7 @@
2020
2121 #### Defined in
2222
23-[index.ts:468](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L468)
23+[index.ts:666](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L666)
2424
2525 ___
2626
@@ -33,4 +33,4 @@
3333
3434 #### Defined in
3535
36-[index.ts:462](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L462)
36+[index.ts:660](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L660)
modified docs/src/javascript/interfaces/VectorIndex.md +14 −3
@@ -8,6 +8,7 @@
88
99 - [columns](VectorIndex.md#columns)
1010 - [name](VectorIndex.md#name)
11+- [status](VectorIndex.md#status)
1112 - [uuid](VectorIndex.md#uuid)
1213
1314 ## Properties
@@ -18,7 +19,7 @@
1819
1920 #### Defined in
2021
21-[index.ts:472](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L472)
22+[index.ts:718](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L718)
2223
2324 ___
2425
@@ -28,7 +29,17 @@
2829
2930 #### Defined in
3031
31-[index.ts:473](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L473)
32+[index.ts:719](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L719)
33+
34+___
35+
36+### status
37+
38+• **status**: [`IndexStatus`](../enums/IndexStatus.md)
39+
40+#### Defined in
41+
42+[index.ts:721](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L721)
3243
3344 ___
3445
@@ -38,4 +49,4 @@
3849
3950 #### Defined in
4051
41-[index.ts:474](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L474)
52+[index.ts:720](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L720)
modified docs/src/javascript/interfaces/WriteOptions.md +1 −1
@@ -24,4 +24,4 @@
2424
2525 #### Defined in
2626
27-[index.ts:1015](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1015)
27+[index.ts:1355](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1355)
modified docs/src/javascript/modules.md +152 −6
@@ -6,6 +6,7 @@
66
77 ### Enumerations
88
9+- [IndexStatus](enums/IndexStatus.md)
910 - [MetricType](enums/MetricType.md)
1011 - [WriteMode](enums/WriteMode.md)
1112
@@ -14,6 +15,7 @@
1415 - [DefaultWriteOptions](classes/DefaultWriteOptions.md)
1516 - [LocalConnection](classes/LocalConnection.md)
1617 - [LocalTable](classes/LocalTable.md)
18+- [MakeArrowTableOptions](classes/MakeArrowTableOptions.md)
1719 - [OpenAIEmbeddingFunction](classes/OpenAIEmbeddingFunction.md)
1820 - [Query](classes/Query.md)
1921
@@ -21,6 +23,7 @@
2123
2224 - [AwsCredentials](interfaces/AwsCredentials.md)
2325 - [CleanupStats](interfaces/CleanupStats.md)
26+- [ColumnAlteration](interfaces/ColumnAlteration.md)
2427 - [CompactionMetrics](interfaces/CompactionMetrics.md)
2528 - [CompactionOptions](interfaces/CompactionOptions.md)
2629 - [Connection](interfaces/Connection.md)
@@ -29,6 +32,7 @@
2932 - [EmbeddingFunction](interfaces/EmbeddingFunction.md)
3033 - [IndexStats](interfaces/IndexStats.md)
3134 - [IvfPQIndexConfig](interfaces/IvfPQIndexConfig.md)
35+- [MergeInsertArgs](interfaces/MergeInsertArgs.md)
3236 - [Table](interfaces/Table.md)
3337 - [UpdateArgs](interfaces/UpdateArgs.md)
3438 - [UpdateSqlArgs](interfaces/UpdateSqlArgs.md)
@@ -42,7 +46,9 @@
4246 ### Functions
4347
4448 - [connect](modules.md#connect)
49+- [convertToTable](modules.md#converttotable)
4550 - [isWriteOptions](modules.md#iswriteoptions)
51+- [makeArrowTable](modules.md#makearrowtable)
4652
4753 ## Type Aliases
4854
@@ -52,7 +58,7 @@
5258
5359 #### Defined in
5460
55-[index.ts:996](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L996)
61+[index.ts:1336](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1336)
5662
5763 ## Functions
5864
@@ -62,11 +68,11 @@
6268
6369 Connect to a LanceDB instance at the given URI.
6470
65-Accpeted formats:
71+Accepted formats:
6672
6773 - `/path/to/database` - local database
6874 - `s3://bucket/path/to/database` or `gs://bucket/path/to/database` - database on cloud storage
69-- `db://host:port` - remote database (SaaS)
75+- `db://host:port` - remote database (LanceDB cloud)
7076
7177 #### Parameters
7278
@@ -84,7 +90,7 @@
8490
8591 #### Defined in
8692
87-[index.ts:141](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L141)
93+[index.ts:188](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L188)
8894
8995 ▸ **connect**(`opts`): `Promise`\<[`Connection`](interfaces/Connection.md)\>
9096
@@ -102,7 +108,35 @@
102108
103109 #### Defined in
104110
105-[index.ts:147](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L147)
111+[index.ts:194](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L194)
112+
113+___
114+
115+### convertToTable
116+
117+▸ **convertToTable**\<`T`\>(`data`, `embeddings?`, `makeTableOptions?`): `Promise`\<`ArrowTable`\>
118+
119+#### Type parameters
120+
121+| Name |
122+| :------ |
123+| `T` |
124+
125+#### Parameters
126+
127+| Name | Type |
128+| :------ | :------ |
129+| `data` | `Record`\<`string`, `unknown`\>[] |
130+| `embeddings?` | [`EmbeddingFunction`](interfaces/EmbeddingFunction.md)\<`T`\> |
131+| `makeTableOptions?` | `Partial`\<[`MakeArrowTableOptions`](classes/MakeArrowTableOptions.md)\> |
132+
133+#### Returns
134+
135+`Promise`\<`ArrowTable`\>
136+
137+#### Defined in
138+
139+[arrow.ts:465](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L465)
106140
107141 ___
108142
@@ -122,4 +156,116 @@
122156
123157 #### Defined in
124158
125-[index.ts:1022](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1022)
159+[index.ts:1362](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1362)
160+
161+___
162+
163+### makeArrowTable
164+
165+▸ **makeArrowTable**(`data`, `options?`): `ArrowTable`
166+
167+An enhanced version of the makeTable function from Apache Arrow
168+that supports nested fields and embeddings columns.
169+
170+This function converts an array of Record<String, any> (row-major JS objects)
171+to an Arrow Table (a columnar structure)
172+
173+Note that it currently does not support nulls.
174+
175+If a schema is provided then it will be used to determine the resulting array
176+types. Fields will also be reordered to fit the order defined by the schema.
177+
178+If a schema is not provided then the types will be inferred and the field order
179+will be controlled by the order of properties in the first record.
180+
181+If the input is empty then a schema must be provided to create an empty table.
182+
183+When a schema is not specified then data types will be inferred. The inference
184+rules are as follows:
185+
186+ - boolean => Bool
187+ - number => Float64
188+ - String => Utf8
189+ - Buffer => Binary
190+ - Record<String, any> => Struct
191+ - Array<any> => List
192+
193+#### Parameters
194+
195+| Name | Type | Description |
196+| :------ | :------ | :------ |
197+| `data` | `Record`\<`string`, `any`\>[] | input data |
198+| `options?` | `Partial`\<[`MakeArrowTableOptions`](classes/MakeArrowTableOptions.md)\> | options to control the makeArrowTable call. |
199+
200+#### Returns
201+
202+`ArrowTable`
203+
204+**`Example`**
205+
206+```ts
207+
208+import { fromTableToBuffer, makeArrowTable } from "../arrow";
209+import { Field, FixedSizeList, Float16, Float32, Int32, Schema } from "apache-arrow";
210+
211+const schema = new Schema([
212+ new Field("a", new Int32()),
213+ new Field("b", new Float32()),
214+ new Field("c", new FixedSizeList(3, new Field("item", new Float16()))),
215+ ]);
216+ const table = makeArrowTable([
217+ { a: 1, b: 2, c: [1, 2, 3] },
218+ { a: 4, b: 5, c: [4, 5, 6] },
219+ { a: 7, b: 8, c: [7, 8, 9] },
220+ ], { schema });
221+```
222+
223+By default it assumes that the column named `vector` is a vector column
224+and it will be converted into a fixed size list array of type float32.
225+The `vectorColumns` option can be used to support other vector column
226+names and data types.
227+
228+```ts
229+
230+const schema = new Schema([
231+ new Field("a", new Float64()),
232+ new Field("b", new Float64()),
233+ new Field(
234+ "vector",
235+ new FixedSizeList(3, new Field("item", new Float32()))
236+ ),
237+ ]);
238+ const table = makeArrowTable([
239+ { a: 1, b: 2, vector: [1, 2, 3] },
240+ { a: 4, b: 5, vector: [4, 5, 6] },
241+ { a: 7, b: 8, vector: [7, 8, 9] },
242+ ]);
243+ assert.deepEqual(table.schema, schema);
244+```
245+
246+You can specify the vector column types and names using the options as well
247+
248+```typescript
249+
250+const schema = new Schema([
251+ new Field('a', new Float64()),
252+ new Field('b', new Float64()),
253+ new Field('vec1', new FixedSizeList(3, new Field('item', new Float16()))),
254+ new Field('vec2', new FixedSizeList(3, new Field('item', new Float16())))
255+ ]);
256+const table = makeArrowTable([
257+ { a: 1, b: 2, vec1: [1, 2, 3], vec2: [2, 4, 6] },
258+ { a: 4, b: 5, vec1: [4, 5, 6], vec2: [8, 10, 12] },
259+ { a: 7, b: 8, vec1: [7, 8, 9], vec2: [14, 16, 18] }
260+ ], {
261+ vectorColumns: {
262+ vec1: { type: new Float16() },
263+ vec2: { type: new Float16() }
264+ }
265+ }
266+assert.deepEqual(table.schema, schema)
267+```
268+
269+#### Defined in
270+
271+[arrow.ts:198](https://github.com/lancedb/lancedb/blob/92179835/node/src/arrow.ts#L198)
modified node/src/index.ts +3 −3
@@ -564,7 +564,7 @@
564564 /**
565565 * Get statistics about an index.
566566 */
567- indexStats: (indexUuid: string) => Promise<IndexStats>
567+ indexStats: (indexName: string) => Promise<IndexStats>
568568
569569 filter(value: string): Query<T>
570570
@@ -1164,8 +1164,8 @@
11641164 return tableListIndices.call(this._tbl);
11651165 }
11661166
1167- async indexStats(indexUuid: string): Promise<IndexStats> {
1168- return tableIndexStats.call(this._tbl, indexUuid);
1167+ async indexStats(indexName: string): Promise<IndexStats> {
1168+ return tableIndexStats.call(this._tbl, indexName);
11691169 }
11701170
11711171 get schema(): Promise<Schema> {
modified node/src/remote/index.ts +2 −2
@@ -517,9 +517,9 @@
517517 }))
518518 }
519519
520- async indexStats (indexUuid: string): Promise<IndexStats> {
520+ async indexStats (indexName: string): Promise<IndexStats> {
521521 const results = await this._client.post(
522- `/v1/table/${encodeURIComponent(this._name)}/index/${indexUuid}/stats/`
522+ `/v1/table/${encodeURIComponent(this._name)}/index/${indexName}/stats/`
523523 )
524524 const body = await results.body()
525525 return {