pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering 4+ messages / 2 participants [nested] [flat]
* [pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering @ 2026-04-29 10:02 "anuj-kukunarapu (@anuj-kukunarapu)" <noreply+anuj-kukunarapu@github.com> 0 siblings, 0 replies; 4+ messages in thread From: anuj-kukunarapu (@anuj-kukunarapu) @ 2026-04-29 10:02 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> ### Description Many modern vector databases support efficient vector search with metadata filters by making approximate nearest neighbor (ANN) search aware of filter predicates. Examples include approaches such as filtered HNSW, segment-level indexes, or per-partition/per-tenant vector indexes. These approaches allow queries with filters such as `asset_id`, `tenant_id`, `category_id`, or `collection_id` to search only the relevant subset or subgraph, instead of traversing a single global vector graph and filtering results afterward. ### Current Behavior in pgvector pgvector currently supports HNSW and IVFFlat approximate indexes. PostgreSQL users can work around filtered-search scenarios using approaches such as: - B-tree, GIN, or other exact indexes on filter columns - Partial HNSW indexes for a small number of filter values - Table partitioning for partition-based isolation - Tuning `hnsw.ef_search` - Iterative index scans introduced in pgvector 0.8.0 However, when using a normal global HNSW index, metadata predicates are applied after the ANN index scan. This means the HNSW traversal itself is not restricted to rows that match the filter condition. For example: ```sql SELECT * FROM items WHERE tenant_id = $1 ORDER BY embedding <-> $2 LIMIT 10; `` ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering @ 2026-04-29 17:08 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2026-04-29 17:08 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @anuj-kukunarapu, this is a duplicate of #761. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering @ 2026-04-29 17:08 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2026-04-29 17:08 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering @ 2026-07-24 14:47 ` "anuj-kukunarapu (@anuj-kukunarapu)" <noreply+anuj-kukunarapu@github.com> 2 siblings, 0 replies; 4+ messages in thread From: anuj-kukunarapu (@anuj-kukunarapu) @ 2026-07-24 14:47 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @ankane Are there plans to merge the experimental HQANN or ACORN/filter-aware HNSW work? What technical or design blockers are preventing these approaches from moving forward, and is there a target release or roadmap for them? ^ permalink raw [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-07-24 14:47 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-04-29 10:02 [pgvector/pgvector] issue #980: Feature Request: Filtered HNSW / Segment-Level Indexes for Efficient Metadata Filtering "anuj-kukunarapu (@anuj-kukunarapu)" <noreply+anuj-kukunarapu@github.com> 2026-04-29 17:08 ` "ankane (@ankane)" <noreply+ankane@github.com> 2026-04-29 17:08 ` "ankane (@ankane)" <noreply+ankane@github.com> 2026-07-24 14:47 ` "anuj-kukunarapu (@anuj-kukunarapu)" <noreply+anuj-kukunarapu@github.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox