Post-filtering searches first and filters afterwards: simple, but can return too few results when the filter is selective.
Pre-filtering restricts candidates before or during the search; with HNSW a very selective filter can break graph connectivity and slow queries, so good systems use filter-aware traversal, payload indexes, or switch to exact search over the small filtered set.
Design for it: index the fields you filter on, keep filter cardinality in mind, test tail latency with the real filters (tenant, date, permissions), and consider partitioning by the most common filter.
Loading…