All Questions
Vector Search medium

A news search index uses HNSW and expires articles after 30 days by marking them as deleted. Months later, recall has dropped and latency has risen, even though the number of live vectors has stayed roughly constant. What is happening, and what fixes it?

  1. A Deleted articles are leaking into results and lowering precision; add a post-filter that drops expired IDs before returning.
  2. B HNSW graphs decay as the embedding model ages; re-embed all live articles with the same model every month to refresh them.
  3. C Cosine distances drift as more articles are added; switch the metric to L2 so distances in the graph stay stable over time.
  4. D Tombstoned nodes stay in the graph and are traversed then discarded; periodically rebuild or compact to remove them.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions