[Bug]: hybrid_search pymilvus.exceptions.MilvusException: <MilvusException: (code=1, message=Unexpected error, message=<required argument is not a float>)> #38529
Labels
help wanted
Extra attention is needed
Is there an existing issue for this?
Environment
Current Behavior
self.index_client = MilvusClient(uri=self.url, token=self.token, user=self.user, password=self.password, db_name=self.db_name)
search_param_1 = {
"data": [query_embedding_dict["dense_vecs"]],
"anns_field": "title_vector", "param": {"metric_type": "COSINE"},
"limit": 3, "expr": "bot_name == {}".format(bot_name)
}
request_1 = AnnSearchRequest(**search_param_1)
query_sparse_vector = {10: 0.3}, {20: 0.2}
search_param_2 = {
"data": [query_embedding_dict["lexical_weights"]],
"anns_field": "title_sparse_vector", "param": {"metric_type": "COSINE", "params": {"drop_ratio_build": 0.2}},
"limit": 3, "expr": "bot_name == {}".format(bot_name)
}
request_2 = AnnSearchRequest(**search_param_2)
reqs = [request_1, request_2]
response_array = self.index_client.hybrid_search(
collection_name=collection_name, reqs=reqs,
output_fields=self.output_fields,
ranker=RRFRanker(k=60), limit=search_top_k)
File "/mnt/ceph01/peng.yu/DS/llmparty/.conda/lib/python3.11/site-packages/pymilvus/decorators.py", line 164, in handler
raise MilvusException(message=f"Unexpected error, message=<{e!s}>") from e
pymilvus.exceptions.MilvusException: <MilvusException: (code=1, message=Unexpected error, message=)>
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: