vectorscale
vectorscale
pgvectorscale : Advanced indexing for vector data with DiskANN
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1820 | vectorscale | pgvectorscale | 0.8.0 | RAG | PostgreSQL | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--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
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.8.0 | 18 17 16 15 14 13 | pgvectorscale | - |
| RPM | PIGSTY | 0.8.0 | 18 17 16 15 14 13 | pgvectorscale_$v | pgvector_$v |
| DEB | PIGSTY | 0.8.0 | 18 17 16 15 14 13 | postgresql-$v-pgvectorscale | postgresql-$v-pgvector |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 | PG13 |
|---|---|---|---|---|---|---|
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 | 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.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 |
d13.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 |
d13.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 |
u22.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 |
u22.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 |
u24.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 |
u24.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 |
Source
pig build pkg pgvectorscale; # build rpm / deb with pigInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgdg pigsty -u # add both repo and update cacheInstall this extension with pig:
pig install pgvectorscale; # install via package name, for the active PG version
pig install vectorscale; # install by extension name, for the current active PG version
pig install vectorscale -v 18; # install for PG 18
pig install vectorscale -v 17; # install for PG 17
pig install vectorscale -v 16; # install for PG 16
pig install vectorscale -v 15; # install for PG 15
pig install vectorscale -v 14; # install for PG 14
pig install vectorscale -v 13; # install for PG 13Create this extension with:
CREATE EXTENSION vectorscale CASCADE; -- requires vectorUsage
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 10This fdw is read-only for now.
Last updated on