https://github.com/pgvector/pgvector/
pgvector is an open-source vector similarity search for Postgres.
Store your vectors with the rest of your data. Supports:
The PostgreSQL RPM repository uses PostgreSQL version numbers in the RPM packages. For example pgvector for PostgreSQL 17 is named as pgvector_17. Similarly pgvector for PostgreSQL 15 is named as pgvector_15.
pgvector provides the following subpackages:
Install PGDG repository from: https://yum.postgresql.org/repopackages/
OS | Command |
---|---|
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgvector_17 (or change the version as described above) |
Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION pgvector;
PostgreSQL version(s) | OS version | Arch | Status |
---|---|---|---|
17,16,15,14,13 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
17,16,15,14,13 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
17,16,15,14,13 | Fedora Linux | x86_64 | Available |