[Bug]: On create index pymilvus throws - MilvusException: (code=1, message=invalid index type: IVF_FLAT #27479
Closed
1 task done
Labels
kind/bug
Issues or changes related a bug
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Is there an existing issue for this?
Environment
Current Behavior
Trying to create an index on a collection throws and exception:
pymilvus.exceptions.MilvusException: <MilvusException: (code=1, message=invalid index type: IVF_FLAT")>
Expected Behavior
No response
Steps To Reproduce
Milvus Log
RPC error: [create_index], <MilvusException: (code=1, message=invalid index type: IVF_FLAT")>, <Time:{'RPC start': '2023-10-05 16:33:58.394630', 'RPC error': '2023-10-05 16:33:58.395860'}>
Traceback (most recent call last):
File "/home/polarsparc/MyProjects/Python/Milvus/sample-1.py", line 168, in
main()
File "/home/polarsparc/MyProjects/Python/Milvus/sample-1.py", line 124, in main
create_index(field_name, collection)
File "/home/polarsparc/MyProjects/Python/Milvus/sample-1.py", line 71, in create_index
collection.create_index(field, index_params)
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/orm/collection.py", line 1208, in create_index
return conn.create_index(self._name, field_name, index_params, timeout=timeout, **kwargs)
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/decorators.py", line 127, in handler
raise e from e
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/decorators.py", line 123, in handler
return func(*args, **kwargs)
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/decorators.py", line 162, in handler
return func(self, *args, **kwargs)
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/decorators.py", line 102, in handler
raise e from e
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/decorators.py", line 68, in handler
return func(*args, **kwargs)
File "/home/polarsparc/MyProjects/Python/venv/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 876, in create_index
raise MilvusException(status.error_code, status.reason)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1, message=invalid index type: IVF_FLAT")>
Anything else?
No response
The text was updated successfully, but these errors were encountered: