import * as lancedb from "@lancedb/lancedb"; const db = await lancedb.connect("data/sample-lancedb"); const table = await db.createTable("vectors", [ { id: 1, vector: [0.1, 0.2], item: "foo", price: 10 }, { id: 2, vector: [1.1, 1.2], item: "bar", price: 50 }, ], {mode: 'overwrite'}); const query = table.vectorSearch([0.1, 0.3]).limit(2); const results = await query.toArray(); // You can also search for rows by specific criteria without involving a vector search. const rowsByCriteria = await table.query().where("price >= 10").toArray();