pase
pase · PostgreSQL ultra-high dimensional approximate nearest neighbor search extension.
Overview
| Relationships | |
|---|---|
| Requires | plpgsql |
Usage
Sources:
pase is an early approximate-nearest-neighbor extension for ultra-high-dimensional vectors. Version 0.0.1 defines a variable-length pase query type, distance operators, and pase_hnsw and pase_ivfflat index access methods for float4[] and textual vectors.
Approximate indexes trade recall for latency; measure recall against exact search across realistic dimensions, data distributions, filters, inserts, deletes, vacuum, rebuild, and concurrency. Verify vector dimension and L2 versus inner-product mode consistently.
Do not expose the bundled ivfflat_search and hnsw_search helpers to untrusted users. The reviewed SQL interpolates query vectors, predicates, limits, and table names into dynamic SQL without safe identifier/value binding, creating SQL-injection risk. It also changes planner settings during installation and contains apparent unfinished overloads. Revoke helper execution, call parameterized operator queries directly, and treat this 0.0.1 code as research-only until fully audited and tested.