01pgvector (PostgreSQL)
PostgreSQL License (GitHub: Other)An extension that adds a vector column type and nearest-neighbour search (HNSW and IVFFlat indexes) to PostgreSQL, so embeddings live in the same tables as the rest of your data and you query them with SQL.
Licence note: GitHub shows 'Other', but the LICENSE file is the PostgreSQL licence: short, permissive and OSI-approved.
- DEPLOYMENT
- Extension in your own Postgres (packages, or the pgvector/pgvector Docker image), and offered on many hosted Postgres services (the README links the provider list).
- HYBRID SEARCH
- Yes, by combining it with Postgres full-text search. The README links Reciprocal Rank Fusion and cross-encoder examples; you write that SQL yourself.
- FILTERING
- Ordinary WHERE clauses and joins. With approximate indexes the filter runs after the index scan, so switch on iterative index scans (0.8.0 and later) when a filter is selective.
- SWEET SPOT
- One well-sized Postgres server, which covers the document sets most small businesses actually have.
- OPS BURDEN
- Low if you already run Postgres: same backups, same access control, same monitoring.
- BEST FOR
- Anyone already on PostgreSQL, including n8n's own database in our local AI starter stack.
- CAVEATS
- Enable it per database with CREATE EXTENSION vector. Building HNSW indexes on big tables wants extra maintenance_work_mem. At very high query volumes or very large collections, dedicated engines pull ahead.

