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

Valkey Hybrid Vector Search: ResponseError: Parse error at 0 Unexpected ( Expected whitespaces #122

Open
gopal-tathe opened this issue Nov 13, 2024 · 1 comment

Comments

@gopal-tathe
Copy link

gopal-tathe commented Nov 13, 2024

I have AWS Memorydb with Valkey 7.2 using valkey-py 6.0.2 for vector search use case. The following vector query works well with valkey-py

base_query = f"(*)=>[KNN {limit} @{q_vector_name} $vec AS SCORE]"

but when I want execute hybrid search,

base_query = f"(-@ASSET_ID:test)=>[KNN {limit} @{q_vector_name} $vec AS SCORE]"

`getting below error:

2024-11-13 09:20:46.137
File "/usr/local/lib/python3.10/site-packages/valkey/client.py", line 590, in parse_response
2024-11-13 09:20:46.137
File "/usr/local/lib/python3.10/site-packages/valkey/cluster.py", line 1159, in _execute_command
2024-11-13 09:20:46.137
File "/usr/local/lib/python3.10/site-packages/valkey/cluster.py", line 1105, in execute_command
2024-11-13 09:20:46.137
raise e
2024-11-13 09:20:46.137 | valkey.exceptions.ResponseError: Parse error at 0 Unexpected ( Expected whitespaces
`

@aiven-sal
Copy link
Member

Hi! Thanks for reporting!
How do you run these queries? Can you provide a small snippet of python code that reproduces the issue?

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