-
Notifications
You must be signed in to change notification settings - Fork 41
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
Decoding vector fails #219
Comments
Update: |
@marisancans it's not you, there is an issue in the underlying driver (redis-py) that breaks the encoding of the Vector field when retrieved with FT.SEARCH, see redis/redis-py#2275 A workaround requires extra Redis calls at the moment. One thing you can do is query for only the keys that you need and the retrieve the Hashes for those keys using HGETs in a pipeline A fix has been merged but redis-py hasn't been released yet |
Thanks @bsbodden, i did manage to get it working with hget, it is okay for now.
|
Hello, i cant figure out why decoding a vector doesnt get me the same results and shape
This is my schema
This is how I save the vector:
enc_out.astype(np.float32).flatten().tobytes()
However retrieving it fails:
What am i doing wrong?
I have triple checked the shapes and dtypes - they are always the same and correct inputs
Here is fully receratable code of this issue:
redis==5.0.8
redisvl==0.3.3
im using docker compose: redis/redis-stack:latest
The text was updated successfully, but these errors were encountered: