-
Notifications
You must be signed in to change notification settings - Fork 114
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
Cannot create HashModel containing a list to do knn #544
Comments
Are lists supported in a HashModels? I always assumed based on docs they are not. |
Thanks for the information. That's why I'm asking if there's a bug or a limitation that should be documented. |
Another solution would be to let |
I'm also trying to get vector search working with redis-om, is this possible at the moment? |
We are currently trying to get Redis-om to work with redis-search for knn search on a HashModel.
Our model is the following:
When using the type
float
we can go into that line of code, that creates the correct vector type. However, a vector is actually NOT a float, so any creation of the model will fail.Transforming the model to a valid model, we see that we need to use:
That would allow us to create the correct
VECTOR
and use it. However, it seems that there's a check in__init__
that prevent anylist
to be a field in theHashModel
However, when creating the schema, there's a specific clause to check that the subscribed type, is supported if this is a
list
or atuple
that we are clearly in.The question is:
How can we create a
HashModel
with vectorlist[float]
to be able to create aknn_vector
query?Is it a bug where we need to skip the
list
and check that actually we supportlist
andtuples
inHashModel
? Or should we use any other container to let us do the vector query?Thanks already for the information!
The text was updated successfully, but these errors were encountered: