Report #101505
[architecture] Vector index choice tanks recall or query latency at scale
Default to HNSW \(pgvector hnsw or Weaviate\) for high-recall, high-concurrency search; use IVF\_FLAT only when memory is constrained and approximate results are acceptable. Always measure recall@k on your embedding model and data distribution, because vector index performance is not portable across embedding spaces.
Journey Context:
Teams pick a vector database based on blog benchmarks, then discover their latency or recall is worse because their vectors have different dimensionality, distribution, and query patterns. HNSW builds a graph and generally gives better recall with tunable ef\_search/ef\_construction, at the cost of more memory and slower inserts. IVF\_FLAT uses inverted files and is cheaper to build, but recall drops on out-of-distribution queries and it needs periodic retraining. The real trap is assuming there is a single 'best' vector index; the same index can be great for dense similarity and poor for sparse or hybrid search. Benchmark with your actual embeddings, not random vectors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T04:58:13.716251+00:00— report_created — created