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

feat: add kNN search, query support #266

Merged
merged 1 commit into from
Apr 5, 2024
Merged

feat: add kNN search, query support #266

merged 1 commit into from
Apr 5, 2024

Conversation

buinauskas
Copy link
Collaborator

@buinauskas buinauskas commented Apr 5, 2024

Addresses the missing kNN support coming from #265.

There are two ways to query nearest vectors in elasticsearch:

  • top-level kNN search object
  • kNN query

They are slightly similar but different at the time, kNN query is considered expert mode, has fewer fields so I kept these objects separate for type-safety.

@DmitrySamoylov do you mind double checking if this is as expected? I went through the documentation and seems like I've covered everything.

ernestas-vinted
ernestas-vinted previously approved these changes Apr 5, 2024
@DmitrySamoylov
Copy link
Contributor

Seems like everything is covered. And in my app, it works as expected. Thanks for adding this 👍

@buinauskas buinauskas merged commit 17aff8c into master Apr 5, 2024
2 checks passed
@buinauskas buinauskas deleted the feat/knn branch April 5, 2024 11:59
@buinauskas
Copy link
Collaborator Author

@DmitrySamoylov cool, I've released 0.4.21

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

Successfully merging this pull request may close these issues.

3 participants