diff --git a/README.md b/README.md index 4b91bcd4..ad2a63f5 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ LanceDB lancdb -[![Blog](https://img.shields.io/badge/Blog-12100E?style=for-the-badge&logoColor=white)](https://blog.lancedb.com/) -[![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/zMM32dvNtd) +[![Blog](https://img.shields.io/badge/Blog-12100E?style=for-the-badge&logoColor=white)](https://blog.lancedb.com/) +[![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/zMM32dvNtd) [![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://twitter.com/lancedb)

@@ -44,26 +44,24 @@ LanceDB's core is written in Rust 🦀 and is built using = 10").execute(); +const rowsByCriteria = await table.query().where("price >= 10").toArray(); ``` **Python** diff --git a/nodejs/lancedb/table.ts b/nodejs/lancedb/table.ts index 557c62c0..acf9bd98 100644 --- a/nodejs/lancedb/table.ts +++ b/nodejs/lancedb/table.ts @@ -275,12 +275,15 @@ export abstract class Table { * of the given query vector * @param {string} query - the query. This will be converted to a vector using the table's provided embedding function * @note If no embedding functions are defined in the table, this will error when collecting the results. + * + * This is just a convenience method for calling `.query().nearestTo(await myEmbeddingFunction(query))` */ abstract search(query: string): VectorQuery; /** * Create a search query to find the nearest neighbors * of the given query vector * @param {IntoVector} query - the query vector + * This is just a convenience method for calling `.query().nearestTo(query)` */ abstract search(query: IntoVector): VectorQuery; /**