VectorChord PostgreSQL extension for optimized vector similarity search. Use when working with VectorChord, vector indices, or smart search performance.
| Property | Value |
|---|---|
| Dependencies | postgresql |
| Ports | none |
| Volumes | none |
| Service | none |
| Install files | tasks: |
| Variable | Value |
|---|---|
VECTORCHORD_VERSION | 1.1.1 |
POSTGRES_SHARED_PRELOAD_LIBRARIES | vchord.so |
unzip (RPM) -- for extracting VectorChord release archivesDownloads VectorChord from GitHub releases (tensorchord/VectorChord) and installs the extension:
postgres --versionplpgsql.so anchor and standard Fedora pathspostgresql-<PG_MAJOR>-vchord_<VERSION>_<ARCH>-linux-gnu.zipvchord.so to pkglibdir and .control/.sql files to sharedir/extension/Supports both x86_64 and aarch64 architectures. PostgreSQL version is detected dynamically.
VectorChord provides the vchordrq index type for PostgreSQL, replacing pgvector's ivfflat with an optimized approximate nearest-neighbor search algorithm. Key differences:
shared_preload_libraries -- VectorChord's .so must be loaded at PostgreSQL startup via the POSTGRES_SHARED_PRELOAD_LIBRARIES env var (consumed by the postgresql layer's entrypoint)CREATE EXTENSION vchord CASCADE; (handled by the immich layer's migration script)# image.yml -- used alongside postgresql for Immich smart search
my-image:
layers:
- postgresql
- vectorchord
- immich
/ov-images:immich/ov-images:immich-ml/ov-layers:postgresql -- required dependency (provides PostgreSQL server and pgvector)/ov-layers:immich -- primary consumer (migration script creates the extension)Use when the user asks about:
vchordrq index type