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]: Can not find pymilvus.model.hybrid #32755
Comments
Have you tried |
Yes, for more information, I did |
/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 @wxywb |
@vuminhquang: 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. |
@vuminhquang , can you run pip list |grep milvus-model to show your model library status? |
i am able to import
however, i had this error when running code block:
Is that error on
|
Hi @wxywb, |
@khanhj from scipy.sparse import csr_array
res = list(csr_array(docs_embeddings['sparse']))[0] this should work for now. |
@vuminhquang
from milvus_model.hybrid import BGEM3EmbeddingFunction
from pymilvus.model.hybrid import BGEM3EmbeddingFunction and show me full stacktrace showed in your terminal. |
@wxywb
|
@vuminhquang ,could you run your code , and show information (some error or exceptions) in your bash? |
Both can be import from console @wxywb, If I want to write the code directly from IDE, (not care on the beautiful of code), which class should I call directly? Is milvus_model.hybrid the way to use? Thanks. |
yes in this case, you should use milvus_model instead of pymilvus.model, we have a separate repo for it https://github.com/milvus-io/milvus-model |
Thank you @wxywb for your supporting, I'll close this bug now. |
Is there an existing issue for this?
Environment
Current Behavior
Can not import from pymilvus.model.hybrid
Expected Behavior
This should work
from pymilvus.model.hybrid import BGEM3EmbeddingFunction
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: