AI Interview Prep

AI Interview Prep

RAG Interview Questions #8 - The IVF-PQ Compression Trick

Why blindly scaling HNSW is a scaling nightmare, and how to gracefully trade imperceptible coverage loss for massive infrastructure savings.

Hao Hoang's avatar
Hao Hoang
Jul 12, 2026
∙ Paid

You’re in a Staff ML Engineer interview at Google and the interviewer asks:

“Your RAG system hits 99% recall on HNSW in the demo. Now it’s 200M vectors and your RAM bill just triggered a budget review. Do you keep HNSW? Why or why not?”

Don’t say: “HNSW is faster and more accurate, so we keep it and add more RAM.”

That answer just told them you’ve never ru…

User's avatar

Continue reading this post for free, courtesy of Hao Hoang.

Or purchase a paid subscription.
© 2026 Hao Hoang · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture