nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.11k stars 607 forks source link

ability to have a custom distance function #543

Open brightening-eyes opened 3 months ago

brightening-eyes commented 3 months ago

hello. for something like learning to rank models, having the ability to score the vectors with a custom function (namely a custom ml model) is crucial. with this ability, the model can be trained online from the feedback from users and then the vectors will be sorted based on the response from the models.