Open takan55 opened 2 months ago
/assign @liliu-z /unassign
/assign @junjiejiangjjj
hi @takan55 , may I ask what environment you are running in? I have successfully run these two examples in colab
@junjiejiangjjj
I am also facing the same error.
steps:
compose up from here, pip install pymilvus
.
Env
milvus-lite 2.4.10 pypi_0 pypi pymilvus 2.4.6 pypi_0 pypi
code
index_params = {
'metric_type':'COSINE',
'index_type':"GPU_IVF_FLAT",
'params':{"nlist": 2048}
}
error
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=metric type not found or not supported, supported: [L2 IP]: invalid parameter[expected=valid index params][actual=invalid index params])>
@junjiejiangjjj
I am also facing the same error. steps: compose up from here,
pip install pymilvus
.Env
milvus-lite 2.4.10 pypi_0 pypi pymilvus 2.4.6 pypi_0 pypi
code
index_params = { 'metric_type':'COSINE', 'index_type':"GPU_IVF_FLAT", 'params':{"nlist": 2048} }
error
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=metric type not found or not supported, supported: [L2 IP]: invalid parameter[expected=valid index params][actual=invalid index params])>
From the error msg, you need to specify the metric type. BTW, Milvus-lite doesn't support indexes other than FLAT for now.
@liliu-z
I did specify metric type as 'COSINE' in the index_params
i posted.
how do i install full milvus as pymilvus installs it?
@liliu-z
I did specify metric type as 'COSINE' in the
index_params
i posted. how do i install full milvus as pymilvus installs it?
GPU_IVF_FLAT only supports L2 and IP, if you want to use COSINE, you need to use other CPU indexes.
@junjiejiangjjj Noted. is there plans to support cosine soon? i am currently normalising the embs and usng IP metric.
@HeChengHui hi, This needs to be tracked to see if NVIDIA RAFT has a corresponding support plan. I'll follow up on this soon.
@junjiejiangjjj Noted. is there plans to support cosine soon? i am currently normalising the embs and usng IP metric.
One way to use cosine index is to normalize data by yourself.
After normalization, IP is equal to cosine metrics
Im getting the same error mentioned MilvusException: <MilvusException: (code=1100, message=create index on 104 field is not supported: invalid parameter[expected=supported field][actual=create index on 104 field])>
my pymilvus version is 2.4.7
Im getting the same error mentioned MilvusException: <MilvusException: (code=1100, message=create index on 104 field is not supported: invalid parameter[expected=supported field][actual=create index on 104 field])>
my pymilvus version is 2.4.7
What kind of milvus are u using? If shows that you can not create index on this field. So it might be you are trying to create index on an invalid field
/assign @chandrakiran428 any updates for this issue?
Is there an existing issue for this?
Environment
Current Behavior
Following the demo https://github.com/milvus-io/bootcamp/blob/master/bootcamp/RAG/sparse_dense_embeddings_tutorial.ipynb or https://milvus.io/docs/hybrid_search_with_milvus.md, this error occurs.
at the code
Expected Behavior
It should work like in demo code.
Steps To Reproduce
Milvus Log
No response
Anything else?
No response