Skip to content

Remove default dimensions when using HNSW index #55

@dqii

Description

@dqii

I have a table with column v REAL[]. When I tried to create an index I got this error

lantern=# CREATE INDEX sift_base10k_index ON sift_base10k USING
        hnsw (v) WITH (
            M=2,
            ef_construction=16,
            ef=10
        );
INFO:  done init usearch index
ERROR:  Wrong number of dimensions: 128 instead of 3 expected

It seems like dims=128 is a required parameter. It would be nice if this could be derived from the data itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions