vector
vector data type and ivfflat and hnsw access methods
Module:
Categories:
Overview
PGDG 1st Party Extension: pgvector : vector data type and ivfflat and hnsw access methods
Information
- Extension ID: 1800
- Extension Name:
vector - Package Name:
pgvector - Category:
RAG - License: PostgreSQL
- Website: https://github.com/pgvector/pgvector
- Language: C
- Extra Tags: N/A
- Comment: N/A
Metadata
- Latest Version: 0.8.0
- Postgres Support:
17,16,15,14,13 - Need Load: Shared library do not need explicit loading
- Need DDL: Need
CREATE EXTENSIONDDL - Relocatable: Can not install to arbitrary schema
- Trusted: Untrusted, Require Superuser to Create
- Schemas: N/A
- Requires: N/A
RPM / DEB
- RPM Repo: PGDG
- RPM Name:
pgvector_$v* - RPM Ver :
0.8.0 - RPM Deps: N/A
- DEB Repo: PGDG
- DEB Name:
postgresql-$v-pgvector - DEB Ver :
0.8.0 - DEB Deps: N/A
Availability
Installation
Install vector via the pig CLI tool:
pig ext install pgvector; # Extension Name
pig ext install vector; # normalized package name
Install pgvector via Pigsty playbook:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgvector"]}' # -l <cls>
Install pgvector RPM from YUM repo directly:
dnf install pgvector_17*;
dnf install pgvector_16*;
dnf install pgvector_15*;
dnf install pgvector_14*;
dnf install pgvector_13*;
Install pgvector DEB from APT repo directly:
apt install postgresql-17-pgvector;
apt install postgresql-16-pgvector;
apt install postgresql-15-pgvector;
apt install postgresql-14-pgvector;
apt install postgresql-13-pgvector;
Create vector extension on PostgreSQL cluster:
CREATE EXTENSION vector;
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.