← Back to LibraryLikeLinkedInCopyLibrary itemOctober 10, 2026pgvectorShort descriptionThe reference for vector similarity search in Postgres: types, operators, HNSW and IVFFlat indexes, filtering.My takeawayAn HNSW index only serves ORDER BY distance LIMIT on the table itself. Wrapping it in DISTINCT ON quietly turned it off for me.Who should read / take itAnyone running RAG on Postgres.