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

How does SPTAG handle sparse vectors? #52

Closed
shashi-netra opened this issue May 26, 2019 · 1 comment
Closed

How does SPTAG handle sparse vectors? #52

shashi-netra opened this issue May 26, 2019 · 1 comment

Comments

@shashi-netra
Copy link

Is your feature request related to a problem? Please describe.
I want to use SPTAG to do kNN queries on vectors from a TF-IDF vectorizer, usually sparse vectors. Can I use sparse vectors in SPTAG or rather do you have an idea of how it might perform with sparsity?

@MaggieQi
Copy link
Member

Currently, we do not support sparse vectors. One quick solution is to try to compress the sparse vectors to the low-dimensional compacted vectors using some deep learning algorithms. Another solution is that you can try to modify (or add new) Dataset and DistanceUtils to do read, write and distance computation for the sparse vectors.

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

No branches or pull requests

2 participants