[Js] Create index with replace flag (#229)

This commit is contained in:
Lei Xu
2023-06-26 18:38:20 -07:00
committed by GitHub
parent 313e66c4c5
commit c68c236f17
6 changed files with 80 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ npm install vectordb
const lancedb = require('vectordb');
const db = lancedb.connect('<PATH_TO_LANCEDB_DATASET>');
const table = await db.openTable('my_table');
const query = await table.search([0.1, 0.3]).setLimit(20).execute();
const query = await table.search([0.1, 0.3]).limit(20).execute();
console.log(results);
```
@@ -24,12 +24,6 @@ The [examples](./examples) folder contains complete examples.
## Development
The LanceDB javascript is built with npm:
```bash
npm run tsc
```
Run the tests with
```bash