-
Notifications
You must be signed in to change notification settings - Fork 122
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
Fix gRPC conversion for sparse search batch #484
Conversation
✅ Deploy Preview for poetic-froyo-8baba7 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -1955,23 +1955,26 @@ def convert_batch_vector_struct( | |||
@classmethod | |||
def convert_named_vector_struct( | |||
cls, model: rest.NamedVectorStruct | |||
) -> Tuple[List[float], Optional[str]]: | |||
) -> Tuple[List[float], Optional[grpc.SparseIndices], Optional[str]]: | |||
if isinstance(model, list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a little bit confused by our naming...
Why do we have List[StrictFloat]
in NamedVectorStruct
:(
Code is correct though 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anonymous named vector #legacy
* Fix gRPC convertion for sparse search batch * fix conversion & add test
Fixes the gRPC conversion for batch search requests containing sparse vectors.