pynndescent icon indicating copy to clipboard operation
pynndescent copied to clipboard

Sample identifiers for semantic search

Open j-adamczyk opened this issue 1 year ago • 2 comments

I need to perform semantic search with ANN for images, something similar to Google Lens. For this, I need nearest neighbors from my dataset, calculated on image embeddings. However, I also need an image identifier, to actually go from nearest neighbors to the images they represent. How can I do this?

A similar issue was closed by the author with no solution.

j-adamczyk avatar Feb 27 '23 09:02 j-adamczyk

I found it - query() method returns indices of nearest neighbors. It would be nice to have a semantic search example on the docs, though. I couls make a PR for this, if maintainers agree this would be valuable.

j-adamczyk avatar Feb 27 '23 09:02 j-adamczyk

I would love a sematic search example for the docs; I don't have time right now to get it done, so a PR would be greatly appreciated.

lmcinnes avatar Apr 18 '23 13:04 lmcinnes