-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Bug]: pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=fail to search on QueryNode 7: worker(7) query failed: metric type not match: invalid parameter[expected=L2][actual=IP])> #31565
Comments
/assign @wxywb |
@yanliang567: GitHub didn't allow me to assign the following users: wxywb. Note that only milvus-io members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @wxyucs |
Has this bug been fixed?I had the same problem. |
@wuqi930907 pip install -U langchain-milvus from langchain_milvus import Milvus |
@zc277584121 `from langchain_milvus import Milvus embedding = HuggingFaceEmbeddings(model_name="./TencentBAC/Conan-embedding-v1") vecs = Milvus(embedding_function=embedding, search_parameters = { query = "llama3中做了哪些模型架构方面的修改" File "/home/gtgpu/.conda/envs/RAG_demo/lib/python3.10/site-packages/pymilvus/client/utils.py", line 63, in check_status Environment: |
Is there an existing issue for this?
Environment
Current Behavior
docs = self.milvus.similarity_search_with_score_by_vector(embeddings, top_k, param=kbs_config.get("milvus_kwargs")["search_params"])
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\langchain_community\vectorstores\milvus.py", line 747, in similarity_search_with_score_by_vector
res = self.col.search(
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\orm\collection.py", line 792, in search
resp = conn.search(
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\decorators.py", line 147, in handler
raise e from e
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\decorators.py", line 143, in handler
return func(*args, **kwargs)
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\decorators.py", line 182, in handler
return func(self, *args, **kwargs)
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\decorators.py", line 122, in handler
raise e from e
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\decorators.py", line 87, in handler
return func(*args, **kwargs)
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\client\grpc_handler.py", line 794, in search
return self._execute_search(request, timeout, round_decimal=round_decimal, **kwargs)
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\client\grpc_handler.py", line 735, in _execute_search
raise e from e
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\client\grpc_handler.py", line 728, in _execute_search
check_status(response.status)
File "F:\Program Files\anaconda3\envs\chat\lib\site-packages\pymilvus\client\utils.py", line 60, in check_status
raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=fail to search on QueryNode 7: worker(7) query failed: metric type not match: invalid parameter[expected=L2][actual=IP])>
Expected Behavior
No response
Steps To Reproduce
Milvus Log
No response
Anything else?
index_params and search_params The configuration file is IP (or COSINE),Only two metric L2 will work.
The text was updated successfully, but these errors were encountered: