concept Updated 2026-07-09 Tags: Rag, Documents, Retrieval, Context

Document Chunking

Document chunking is the process of turning source material into retrieval units. In Episode 17: 向量模型工程师:AI 的隐藏瓶颈与新时代的信息迷宫, it is one of the main bottlenecks in Retrieval-Augmented Generation because naive splitting by token count, punctuation, or page boundaries can destroy the structure that makes a text meaningful.

The episode treats chunking as a semantic and product decision. A short chunk may answer a parameter question but fail to preserve a book’s argument; a long chunk may preserve context but hurt recall precision; a PDF page may contain columns, figures, captions, tables, and layout clues that ordinary text extraction mangles. Good chunking therefore sits between Context Engineering, Vector Model Engineering, and Semantic Search Relevance.

Key Claims

  • Chunk size trades off local precision against global structure.
  • Books, reports, tables, scanned PDFs, and multi-column layouts often require different chunking strategies.
  • The right chunk depends on the question: a parameter lookup and “what is this book about” need different retrieval units.
  • Multi-modal page embeddings can bypass some OCR problems but do not remove the need to define useful evidence.
  • Bad chunking can make a RAG system look like a weak language model even when the generation step is not the primary failure.

Connections