timescale / pgvectorscale

A complement to pgvector for high performance, cost efficient vector search on large workloads.
PostgreSQL License
610 stars 23 forks source link

Is pgvector's `halfvec` dtype supported? #106

Open rsomani95 opened 1 week ago

rsomani95 commented 1 week ago

I have a table with fp16 embeddings:

\d+ table;

              Column              |           Type           |
----------------------------------+--------------------------+
embedding                         | halfvec(640)             |
...

But when I try to build the index on using CREATE INDEX ON table USING diskann (embedding);, I run into the following error:

ERROR:  data type halfvec has no default operator class for access method "diskann"
HINT:  You must specify an operator class for the index or define a default operator class for the data type.

Are fp16 vectors not yet supported?

cevian commented 4 days ago

Fp16 is not yet supported. We will consider this feature request during our planning, or you are welcome to submit a PR