install ParadeDB adds the ParadeDB extension so you can run high-performance hybrid search and vector functions directly inside PostgreSQL.
ParadeDB turns PostgreSQL into a fast vector and hybrid search engine, letting you store product embeddings next to traditional data. A single database simplifies architecture, cuts latency, and keeps ACID guarantees intact.
Ensure PostgreSQL ≥ 14, the pgvector
extension (bundled with ParadeDB), and superuser access. On macOS, use Homebrew; on Linux, fetch the pre-built .deb or .rpm. Docker users can pull the official image.
Execute:
brew tap paradedb/paradedb
Homebrew places the shared library in
brew install paradedb$HOMEBREW_PREFIX/lib/postgresql
. Restart PostgreSQL so it picks up the new extension.
Run:
wget https://packages.paradedb.com/paradedb_latest_amd64.deb
The package copies binaries to
sudo dpkg -i paradedb_latest_amd64.deb
sudo systemctl restart postgresql/usr/lib/postgresql/<version>/lib/
.
Pull the image:
docker run --name pg-parade -e POSTGRES_PASSWORD=secret -p 5432:5432 paradedb/paradedb:latest
The container boots PostgreSQL with ParadeDB pre-loaded.
Connect as a superuser and run:
CREATE EXTENSION IF NOT EXISTS paradedb;
This statement registers the SQL functions, types, and index access methods.
Store embeddings and index them:
ALTER TABLE products ADD COLUMN embedding vector(384);
The operator
CREATE INDEX products_embedding_idx ON products USING ivfflat (embedding vector_l2_ops);
SELECT id, name
FROM products
ORDER BY embedding <-> '[0.12,0.98,...]'::vector
LIMIT 5;<->
returns the 5 nearest products to the supplied vector.
Compile with the same compiler flags as PostgreSQL, keep shared_preload_libraries
blank (ParadeDB doesn’t need it), and version-lock packages to avoid unexpected upgrades.
See below.
Yes. ParadeDB bundles a patched version of pgvector and exposes identical operators (<->
, vector_l2_ops
, etc.). Indexes created with pgvector work unchanged.
You need superuser only to copy the shared library and run CREATE EXTENSION
. After installation, regular users can call the functions.
RDS doesn’t currently allow custom C extensions, so ParadeDB isn’t supported. Use self-hosted PostgreSQL or an EC2-based cluster.