179 questions
No questions match those filters.
What are the main chunking strategies, and which do you...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansChunking strategies trade off precision against context richness. Fixed-size splitting is trivial to implement but indifferent to sentence and table boundaries. Recursive splitting improves on that by trying paragraph, then sentence, then word boundaries in order. Semantic chunking goes further still — embedding individual sentences and cutting where similarity drops — at the cost of being the slowest option. Structure-aware chunking parses the document’s actual layout so a chunk never lands in the middle of a table or code block, which matters enormously for technical and legal PDFs.
The strategy that tends to win in production is parent-child indexing: index small chunks (precise retrieval targets) but return their larger parent chunk to the LLM once retrieved. That sidesteps the core chunk-size dilemma — too-small chunks retrieve precisely but starve the LLM of context, too-large chunks dilute relevance with noise.
For enterprise PDFs specifically, pair structure-aware parsing (so tables and sections stay intact) with parent-child indexing. That combination handles the two failure modes — broken tables and context-starved answers — at once.