Skip to content

[Bug]: Can not create a HnswLVQ index #1516

@Ami11111

Description

@Ami11111

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions