-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bytes Vectors from r.hget
vs Bytes string returned from r.ft().search(query="*")
#2772
Comments
Yes, had the same bug on my end when I tried retrieving the list of floats vector from |
I'm having a similar issue. I need to read these vectors back and do some processing on them, but I'm unable to decode them when I read them from a hash using hget. |
Make it possible to configure at field level how search results are decoded. Fixes: redis#2772, redis#2275
Make it possible to configure at field level how search results are decoded. Fixes: redis#2772, redis#2275
Make it possible to configure at field level how search results are decoded. Fixes: redis#2772, redis#2275
Is this fixed? Im having the same problem. I just want my vector back :/ |
Redis Python Lib Version: version 4.5.5
Redis Stack Version: version 7.0.0
Platform: Python 3.10.6 and Ubuntu 22.04
Description: Description of your issue, stack traces from errors and code that reproduces the issue
After storing a bunch of numpy vectors in bytes in HSETs and creating an index (FT), I am trying to retrieve all of the embeddings using FT.SEARCH with "*" query, however, the vector is returned in a string that differs from the bytes format I get when using HGET. I'll add a few line of code as an example:
However, when I do:
I have tried different combinations of
.encode("utf-xx")
anddtype=np.floatxx
to no avail! Please help. Thanks.The text was updated successfully, but these errors were encountered: