Skip to main content
InterviewHubPRO
Section Overview
Q24

Question 24 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

48%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is Query Decomposition and Multi-Query Expansion in RAG?

senior LevelMost Askedvector-databasesAdvanced Internals

In Simple Words: Complex user queries often require multiple separate retrieval steps:

  • Multi-Query Expansion: LLM rewrites the query into 3-5 alternative phrasing variations to overcome vocabulary mismatch, executing parallel vector searches and deduplicating results.
  • Query Decomposition (Sub-queries): Splits a multi-part query ("Compare pricing and rate limits between Anthropic and OpenAI") into two independent sub-queries, retrieving chunks for both and fusing the results.