Open gopal-tathe opened 1 week ago
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 `
(
Hi! Thanks for reporting! How do you run these queries? Can you provide a small snippet of python code that reproduces the issue?
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 `