Skip to main content
We strongly recommend 0.27.0 or later for substantial vector search improvements.
ParadeDB provides pdb.vector(N) for single-precision float vectors.
To index vectors, simply add them to the ParadeDB index alongside other fields.
The desired distance function is encoded into the index definition, and cannot be changed without reindexing.
If you track index build progress with pg_stat_progress_create_index, the phase column identifies partition sampling, vector partition training, and vector clustering. It is normal for row counters to pause during training and clustering, which can be computationally expensive.

Compatibility with pgvector Types

Starting in 0.27.2, pgvector is optional. ParadeDB does not recommend using pgvector’s hnsw or ivf indexes because they do not scale.
If pgvector is installed, its standard vector(N) type and vector opclasses work directly with ParadeDB:
Other pgvector types like halfvec, sparsevec, bit are not yet supported but are on the roadmap.

Index Options

We recommend keeping the defaults, which work well for most workloads. The following options are available for development and debugging.
default:0.32
Fraction of indexed vectors sampled for training whenever a segment is clustered. 0 chooses the fraction automatically based on available memory.
default:400
The target number of indexed vectors in a cluster.
default:true
By default, cluster centroids are quantized. This makes them more compact and faster to search.
default:2
ParadeDB uses boundary replication, which means that vectors sitting close to two clusters are replicated across both. Replication improves recall. A higher value replicates to more clusters, at the cost of longer index build times and more storage.
default:"[1,1]"
ParadeDB uses two quantization layers by default, each receiving 1 bit per dimension. Each layer can use up to 4 bits. Set quantization = 0 to disable quantization entirely. In our testing, the default '[1,1]' delivers the best performance.