Running the following code will raise the exception "Invalid index type".
table_obj = db_obj.create_table(
"test_index", {"c1": {"type": "vector,1024,float"}}, ConflictType.Error)
assert table_obj is not None
res = table_obj.create_index("my_index",
[index.IndexInfo("c1",
index.IndexType.HnswLVQ,
[
index.InitParameter(
"M", "16"),
index.InitParameter(
"ef_construction", "50"),
index.InitParameter(
"ef", "50"),
index.InitParameter(
"metric", "l2")
])], ConflictType.Error)
assert res.error_code == ErrorCode.OK
Is there an existing issue for the same bug?
Version or Commit ID
v0.3.0-dev1
Other environment information
No response
Actual behavior and How to reproduce it
Running the following code will raise the exception "Invalid index type".
Expected behavior
No response
Additional information
No response