Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature(nodejs): Table.search function for lancedb sdk #1256

Closed
Tracked by #1251
universalmind303 opened this issue Apr 30, 2024 · 2 comments · Fixed by #1341
Closed
Tracked by #1251

Feature(nodejs): Table.search function for lancedb sdk #1256

universalmind303 opened this issue Apr 30, 2024 · 2 comments · Fixed by #1341
Labels
enhancement New feature or request

Comments

@universalmind303
Copy link
Contributor

SDK

Node

Description

both the python sdk, and the older js vectordb sdk have a search function on the table class.

tbl.search(query).

There does not appear to be an equivalent in the newer lancedb sdk

@wjones127
Copy link
Contributor

Table.query() is the equivalent of this. I just looked, and I think we already have feature parity here, so I'm closing this.

@universalmind303
Copy link
Contributor Author

@wjones127 There isn't full feature parity. In python you don't need to manually embed the query.

query = "greetings"
table.search(query).limit(1)
const query = await func.computeQueryEmbeddings("greetings");
    
await table.query().nearestTo(query).limit(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants