AI Interview Prep

AI Interview Prep

RAG Interview Questions #13 - The Flat Index Trap

Why relying on contiguous chunks makes your RAG pipeline silently collapse on global themes, and how treating abstraction as a retrievable object lets your queries pick their own altitude.

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

You’re in a Senior AI Engineer interview at Google and the interviewer asks:

“Your RAG pipeline scores 90% on factual lookups but collapses on ‘summarize this 300-page report.’ Why, and don’t tell me it’s chunk size?”

Don’t say: “I’d increase the chunk size” or “I’d use a bigger context window.” Wrong axis entirely. You just told them you think this is a resolution problem.


The reality: the theme isn’t in any chunk. So retrieval can’t retrieve it.

Fixed contiguous chunks give you a flat index. Retrieval can only return text that already exists. But a global theme is an emergent property distributed across the whole corpus, it lives nowhere. Top-k over a flat index hands the LLM 5 local facts and asks it to induce a global claim from a biased sample.

You’re asking for a satellite photo and getting handed 20 close-ups of pavement.

The fix isn’t retrieving abstraction. It’s building it.

Recursive clustering + summarization (RAPTOR-style):

AI Interview Prep is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

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