-
Notifications
You must be signed in to change notification settings - Fork 381
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
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".
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
Expected behavior
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working