-
Notifications
You must be signed in to change notification settings - Fork 56
Support for inner product similarity measures (dot product) #114
Comments
By experimenting with
This issue is supposed to be fixed in nmslib 1.8 according to nmslib/nmslib#356 I propose an upgrade of the external library before tackling this. Thought? @vamshin @jmazanec15 |
@chenqi0805 sounds good to me. We need to probably upgrade the library version first. Also do we have data points on the backward compatibility. Does nmslib 1.8 version can load/query indices created on nmslib 1.7 version? |
@vamshin Need further investigation. Overall upgrade is worth a separate issue. |
Sounds good. Created issue #128 |
After further look at nmslib/nmslib#356, upgrade might not be a prerequisite. One just need to store ObjectVector into a separate '.dat' file for spaces other than l2 and cosine: But then there will be issue of mismatch between .dat file names in saveIndex and loadIndex due to current way of handling header/footer issue in Line 106 in 1c80b62
Looking further into design doc... |
@chenqi0805 If we can achieve this from plugin upgrade, my suggestion would be to better focus efforts on upgrade the library? |
@vamshin I found that upgrade alone does not resolve this issue(the bug posted above). If one follows the fix: https://github.com/nmslib/nmslib/blob/cd79cffafbcd60727510cd610ed4adb96301f5b4/python_bindings/nmslib.cc#L115 where object vector data is saved and loaded for spaces other than l2 and cosine, Save and load object vector data will probably lead to re-design of a few APIs in kNN since now we have to deal with the new .dat files. I am not familiar with how codec works but I guess the logic on header, footer and compound files will be affected. |
Now that we have optimized index support built into nmslib for dot prodcut, we should be able to add this feature to our future release. |
Hi. @vamshin do you have a rough time estimate when the future release (with dot product) is planned? I tried to find PR which covers this but I didn't. Thanks. |
@prog8, we would plan to have this feature available for next odfe release. Would update the timeline soon. Thanks |
@vamshin. Thank you for information |
https://github.com/nmslib/nmslib/blob/master/manual/spaces.md#inner-product-spaces.
Feel free to +1 if you land up here looking for this feature :)
The text was updated successfully, but these errors were encountered: