pgvector

Website

https://github.com/pgvector/pgvector/

Description

pgvector is an open-source vector similarity search for Postgres.

Store your vectors with the rest of your data. Supports:

  • exact and approximate nearest neighbor search
  • single-precision, half-precision, binary, and sparse vectors
  • L2 distance, inner product, cosine distance, L1 distance, Hamming distance, and Jaccard distance
  • any language with a Postgres client

Package naming convention

The PostgreSQL RPM repository uses PostgreSQL version numbers in the RPM packages. For example pgvector for PostgreSQL 18 is named as pgvector_18. Similarly pgvector for PostgreSQL 17 is named as pgvector_17.

Subpackages

pgvector provides the following subpackages:

  • llvmjit: Provides just-in-time compilation support for pgvector

Package specifications and repository requirements

PostgreSQL PGDG RPM repository

Install PGDG repository from: https://zypp.postgresql.org/repopackages/

Installation

OS Command
SuSE Enterprise Linux 15 / 16, OpenSuSE Leap 16.0 zypper install pgvector_18 (or change the version as described above)

Post-installation

Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION pgvector;

Available packages

PostgreSQL version(s) OS version Arch Status
18,17,16,15,14 SuSE Enterprise Linux 16 x86_64 Available
18,17,16,15,14 OpenSuSE Leap 16.0 x86_64 Available
18,17,16,15,14 SuSE Enterprise Linux 15 x86_64 Available