vectorscale

vectorscale

Advanced indexing for vector data with DiskANN

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
1820
vectorscale
pgvectorscale
0.8.0
RAG
PostgreSQL
Rust
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--
No
Yes
No
Yes
no
no
Relationships
Requires
vector
See Also
vchord
vectorize
pg_summarize
pg_tiktoken
pg4ml
pgml
vchord_bm25
pg_similarity

not an official release tag

Packages

TypeRepoVersionPG Major AvailabilityPackage PatternDependencies
EL
PIGSTY
0.8.0
18
17
16
15
14
13
pgvectorscale_$vpgvector_$v
Debian
PIGSTY
0.8.0
18
17
16
15
14
13
postgresql-$v-pgvectorscalepostgresql-$v-pgvector
Linux / PGPG18PG17PG16PG15PG14PG13
el8.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el8.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el9.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el9.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el10.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el10.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d12.x86_64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d12.aarch64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d13.x86_64
MISS
MISS
MISS
MISS
MISS
MISS
d13.aarch64
MISS
MISS
MISS
MISS
MISS
MISS
u22.x86_64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u22.aarch64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u24.x86_64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u24.aarch64
MISS
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PackageVersionOSORGSIZEFile URL
pgvectorscale_180.8.0el8.x86_64pigsty503.9 KiBpgvectorscale_18-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_180.8.0el8.aarch64pigsty371.4 KiBpgvectorscale_18-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_180.8.0el9.x86_64pigsty520.6 KiBpgvectorscale_18-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_180.8.0el9.aarch64pigsty395.9 KiBpgvectorscale_18-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_180.8.0el10.x86_64pigsty521.1 KiBpgvectorscale_18-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_180.8.0el10.aarch64pigsty395.7 KiBpgvectorscale_18-0.8.0-2PIGSTY.el10.aarch64.rpm
PackageVersionOSORGSIZEFile URL
pgvectorscale_170.8.0el8.x86_64pigsty504.1 KiBpgvectorscale_17-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_170.8.0el8.aarch64pigsty371.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_170.8.0el9.x86_64pigsty520.6 KiBpgvectorscale_17-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_170.8.0el9.aarch64pigsty395.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_170.8.0el10.x86_64pigsty520.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_170.8.0el10.aarch64pigsty395.7 KiBpgvectorscale_17-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-17-pgvectorscale0.8.0d12.x86_64pigsty327.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-17-pgvectorscale0.8.0d12.aarch64pigsty280.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-17-pgvectorscale0.8.0u22.x86_64pigsty360.1 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-17-pgvectorscale0.8.0u22.aarch64pigsty328.9 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-17-pgvectorscale0.8.0u24.x86_64pigsty356.9 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-17-pgvectorscale0.8.0u24.aarch64pigsty325.7 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_160.8.0el8.x86_64pigsty504.1 KiBpgvectorscale_16-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_160.8.0el8.aarch64pigsty371.2 KiBpgvectorscale_16-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_160.8.0el9.x86_64pigsty520.9 KiBpgvectorscale_16-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_160.8.0el9.aarch64pigsty395.6 KiBpgvectorscale_16-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_160.8.0el10.x86_64pigsty521.0 KiBpgvectorscale_16-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_160.8.0el10.aarch64pigsty395.4 KiBpgvectorscale_16-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-16-pgvectorscale0.8.0d12.x86_64pigsty327.2 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-16-pgvectorscale0.8.0d12.aarch64pigsty280.0 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-16-pgvectorscale0.8.0u22.x86_64pigsty359.7 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-16-pgvectorscale0.8.0u22.aarch64pigsty328.9 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-16-pgvectorscale0.8.0u24.x86_64pigsty356.9 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-16-pgvectorscale0.8.0u24.aarch64pigsty325.5 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_150.8.0el8.x86_64pigsty503.9 KiBpgvectorscale_15-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_150.8.0el8.aarch64pigsty371.2 KiBpgvectorscale_15-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_150.8.0el9.x86_64pigsty520.4 KiBpgvectorscale_15-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_150.8.0el9.aarch64pigsty395.6 KiBpgvectorscale_15-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_150.8.0el10.x86_64pigsty520.4 KiBpgvectorscale_15-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_150.8.0el10.aarch64pigsty395.6 KiBpgvectorscale_15-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-15-pgvectorscale0.8.0d12.x86_64pigsty327.1 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-15-pgvectorscale0.8.0d12.aarch64pigsty280.1 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-15-pgvectorscale0.8.0u22.x86_64pigsty360.5 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-15-pgvectorscale0.8.0u22.aarch64pigsty329.3 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-15-pgvectorscale0.8.0u24.x86_64pigsty356.8 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-15-pgvectorscale0.8.0u24.aarch64pigsty325.5 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_140.8.0el8.x86_64pigsty503.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_140.8.0el8.aarch64pigsty370.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_140.8.0el9.x86_64pigsty519.5 KiBpgvectorscale_14-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_140.8.0el9.aarch64pigsty395.1 KiBpgvectorscale_14-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_140.8.0el10.x86_64pigsty520.0 KiBpgvectorscale_14-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_140.8.0el10.aarch64pigsty394.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-14-pgvectorscale0.8.0d12.x86_64pigsty326.9 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-14-pgvectorscale0.8.0d12.aarch64pigsty279.9 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-14-pgvectorscale0.8.0u22.x86_64pigsty359.9 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-14-pgvectorscale0.8.0u22.aarch64pigsty328.8 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-14-pgvectorscale0.8.0u24.x86_64pigsty356.4 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-14-pgvectorscale0.8.0u24.aarch64pigsty325.0 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_130.8.0el8.x86_64pigsty504.4 KiBpgvectorscale_13-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_130.8.0el8.aarch64pigsty370.9 KiBpgvectorscale_13-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_130.8.0el9.x86_64pigsty520.3 KiBpgvectorscale_13-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_130.8.0el9.aarch64pigsty395.4 KiBpgvectorscale_13-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_130.8.0el10.x86_64pigsty520.3 KiBpgvectorscale_13-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_130.8.0el10.aarch64pigsty394.9 KiBpgvectorscale_13-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-13-pgvectorscale0.8.0d12.x86_64pigsty326.7 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-13-pgvectorscale0.8.0d12.aarch64pigsty279.7 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-13-pgvectorscale0.8.0u22.x86_64pigsty360.0 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-13-pgvectorscale0.8.0u22.aarch64pigsty329.0 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-13-pgvectorscale0.8.0u24.x86_64pigsty356.2 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-13-pgvectorscale0.8.0u24.aarch64pigsty324.9 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb

Source

pig build get vectorscale; # get vectorscale source code
pig build dep vectorscale; # install build dependencies
pig build pkg vectorscale; # build extension rpm or deb
pig build ext vectorscale; # build extension rpms

Install

To add the required PGDG / PIGSTY upstream repository, use:

pig repo add pgsql -u   # add PGDG + Pigsty repo and update cache (leave existing repos)

Install this extension with:

pig ext install vectorscale; # install by extension name, for the current active PG version
pig ext install pgvectorscale; # install via package alias, for the active PG version
pig ext install vectorscale -v 18;   # install for PG 18
pig ext install vectorscale -v 17;   # install for PG 17
pig ext install vectorscale -v 16;   # install for PG 16
pig ext install vectorscale -v 15;   # install for PG 15
pig ext install vectorscale -v 14;   # install for PG 14
pig ext install vectorscale -v 13;   # install for PG 13

Create this extension with:

CREATE EXTENSION vectorscale;

Usage

CREATE EXTENSION vectorscale CASCADE;

CREATE TABLE IF NOT EXISTS document_embedding  (
    id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
    metadata JSONB,
    contents TEXT,
    embedding VECTOR(1536)
);
  
CREATE INDEX document_embedding_idx ON document_embedding
USING diskann (embedding);

SELECT *
FROM document_embedding
ORDER BY embedding <=> $1
LIMIT 10

This fdw is read-only for now.

Last updated on