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

Dataset#nearest_neighbors #2

Merged
merged 3 commits into from
Sep 23, 2023

Conversation

dcluna
Copy link
Contributor

@dcluna dcluna commented Sep 22, 2023

Motivation

To be able to chain other predicates w/ the nearest_neighbors call, e.g.

Model.where(...).nearest_neighbors(...)

Supporting documentation

https://sequel.jeremyevans.net/rdoc/files/doc/model_plugins_rdoc.html#label-Making+Dataset+Methods+Callable+as+Class+Methods

@ankane
Copy link
Member

ankane commented Sep 22, 2023

Hi @dcluna, thanks for the PR. Happy to include this, but please don't make any unnecessary changes to coding style.

@ankane ankane merged commit e588fb6 into pgvector:master Sep 23, 2023
1 check passed
@ankane
Copy link
Member

ankane commented Sep 23, 2023

Great, thanks @dcluna!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants