You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error when I created an index on collection:
client.create_collection('my_sparse_collection', schema=schema,
index_params=index_params, timeout=5, consistency_level="Strong")
error:
RPC error: [create_index], <MilvusException: (code=1100, message=create index on json field is not supported: expected=supported field, actual=create index on 104 field: invalid parameter)>, <Time:{'RPC start': '2024-12-04 11:47:50.713235', 'RPC error': '2024-12-04 11:47:50.793430'}>
Failed to create an index on collection: my_sparse_collection
RPC error: [create_index], <MilvusException: (code=1100, message=create index on json field is not supported: expected=supported field, actual=create index on 104 field: invalid parameter)>, <Time:{'RPC start': '2024-12-04 11:47:50.713235', 'RPC error': '2024-12-04 11:47:50.793430'}>
Failed to create an index on collection: my_sparse_collection11111
@Joyce920hope as the error msg said, JSON was supported since v2.2.9 and Sparse vector was supported since 2.4.x. So please use the latest milvus release v2.4.17 or v2.5.0-beta
@Joyce920hope as the error msg said, JSON was supported since v2.2.9 and Sparse vector was supported since 2.4.x. So please use the latest milvus release v2.4.17 or v2.5.0-beta
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.
Is there an existing issue for this?
Environment
Current Behavior
I'm following this example https://github.com/milvus-io/pymilvus/blob/master/examples/sparse.py to store sparse embedding in Milvus server.
I got this error when I created an index on collection:
client.create_collection('my_sparse_collection', schema=schema,
index_params=index_params, timeout=5, consistency_level="Strong")
error:
RPC error: [create_index], <MilvusException: (code=1100, message=create index on json field is not supported: expected=supported field, actual=create index on 104 field: invalid parameter)>, <Time:{'RPC start': '2024-12-04 11:47:50.713235', 'RPC error': '2024-12-04 11:47:50.793430'}>
Failed to create an index on collection: my_sparse_collection
Expected Behavior
The index can be created on sparse vector field.
Steps To Reproduce
Milvus Log
RPC error: [create_index], <MilvusException: (code=1100, message=create index on json field is not supported: expected=supported field, actual=create index on 104 field: invalid parameter)>, <Time:{'RPC start': '2024-12-04 11:47:50.713235', 'RPC error': '2024-12-04 11:47:50.793430'}>
Failed to create an index on collection: my_sparse_collection11111
MilvusException Traceback (most recent call last)
[... skipping hidden 1 frame]
Cell In[19], line 4
2 index_params.add_index(field_name="sparse_vector", index_name="sparse_inverted_index",
3 index_type="SPARSE_INVERTED_INDEX", metric_type="IP", params={"drop_ratio_build": 0.2})
----> 4 client.create_collection('my_sparse_collection11111', schema=schema,
5 index_params=index_params, timeout=5, consistency_level="Strong")
Anything else?
No response
The text was updated successfully, but these errors were encountered: