AppliedAIPrep logoAppliedAI/Prep
🤖 Retrieval & Agents
Core

Hierarchical Retrieval (RAPTOR and Small-to-Big)

Hierarchical retrieval breaks the chunk-granularity dilemma: small chunks retrieve precisely but lack context, large chunks carry context but retrieve poorly. RAPTOR builds a tree by recursively clustering and summarizing chunks, so retrieval can land on a precise leaf or a higher-level summary. Small-to-big (parent-child) embeds small chunks for matching but returns the larger parent for context. Applied-AI interviews probe it because it is the standard production fix once naive fixed-size chunking starts missing answers.

a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
COMPANIES THAT ASSUME THIS
NEXT IN RETRIEVAL & AGENTSQuery Transformation and Multi-Hop Retrieval