DiskANN index support for pgvector
pgvectorscale
extension adds diskANN index support for pgvector.
This extension is useful in cases where pgvector
’s hnsw
index does not fit into available memory and as a result the ANN search does not perform as expected.
VECTOR(3)
for VECTOR(768)
or VECTOR(1536)
in real apps.
smallint
s. Other types will revert to using the post-filtering.&&
(array intersection) operator in search queries.cosine
, l2
and inner_product
distance metrics, not the entire pgvector’s set of distance metrics.smallint
arrays and the &&
operator. Other types will revert to using the post-filtering.hnsw
index would be too large to fit into memory. For smaller datasets, hnsw
is still a good choice.