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

Add ANN search using HNSWLib #544

Merged
merged 15 commits into from
Nov 15, 2023
Merged

Conversation

tqtg
Copy link
Member

@tqtg tqtg commented Nov 8, 2023

Description

Providing a way to do approximate nearest neighbor search using HNSWLib. Having backbone to support other frameworks (e.g., annoy) in the future. In order for a model to support ANN search, it should be an ANNMixin with the following functions implemented:

  • get_measure()
  • get_user_vectors()
  • get_item_vectors()

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

Copy link
Member

@lthoang lthoang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@saghiles
Copy link
Member

saghiles commented Nov 9, 2023

Hi @tqtg , thank you very much for this contribution. I am having a look at it. Please give me sometime to share my feedback by this Saturday. Thank you!

@tqtg
Copy link
Member Author

tqtg commented Nov 13, 2023

@saghiles any comments on this?

README.md Outdated Show resolved Hide resolved
@tqtg tqtg requested a review from saghiles November 14, 2023 00:21
@tqtg tqtg merged commit 1eadb83 into PreferredAI:master Nov 15, 2023
12 checks passed
@tqtg tqtg deleted the ann-search-hnswlib branch November 15, 2023 20:19
@tqtg tqtg mentioned this pull request Nov 25, 2023
5 tasks
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.

5 participants