Structure-Aware Chunking for Tabular Data in RAG: Excel Is Not Text
> Paper: Structure-Aware Chunking for Tabular Data in Retrieval-Augmented Generation > Authors: Pooja Guttal, Varun Magotra, Vasudeva Mahavishnu, Natasha Chanto, Sidharth Sivaprasad, Manas Gaur > arXiv: 2605.00318
The Problem: Treating Excel Like TXT
Imagine querying enterprise data through a RAG system:
User question:
- "What were the East China region's sales in Q3 2024?"
- Splits the Excel file by a fixed token count
- Cuts off headers
- Breaks row relationships and column correspondences
- A retrieved chunk might read: "East China region, 5 million, ..." — with no idea which column or header it belongs to
- The answer is wrong
- Traditional chunking = randomly cutting up a jigsaw puzzle; no piece knows where it belongs
- STC = cutting along the puzzle's printed boundaries; every piece carries its own context and fits back together
- Fixed-token splits destroy headers, rows, and column relationships
- Numbers lose context and become meaningless
- Retrieved chunks are incomplete, hurting retrieval quality and answer accuracy
- Row-level operations preserve headers and relationships
- Key-value representations make each chunk self-contained and easy to interpret
- Structural information aids matching, improving recall and answer quality
Traditional RAG pipeline:
The core issue: tables have structure — rows, columns, headers, explicit relationships — but text-oriented chunking destroys that structure.
STC: Structure-Aware Tabular Chunking
The paper proposes Structure-aware Tabular Chunking (STC) with a simple premise:
> Tables are not text. Operate at row-level units, build a hierarchical Row Tree, and preserve structural integrity.
Technical approach:
1. Hierarchical Row Tree representation — each row is encoded as a key-value block; headers become keys, data becomes values, preserving intra-row structure. 2. Token-constrained splitting — splits occur at structural boundaries, never cutting through a row or its column relationships, keeping chunks semantically complete. 3. Non-overlapping greedy merging — related rows are merged into dense, non-overlapping chunks with high information density. 4. Structure-aware retrieval — retrieved chunks retain structural context, so the model can understand row-column relationships and answer more accurately.
An analogy:
Why Structure-Aware Beats Text Chunking
Text chunking fails because:
STC wins because:
The Feynman-Style Takeaway
> Knowing the name of something and truly understanding it are different things.
Applied to data engineering:
> Treating Excel as text is like reading sheet music as prose — you see the characters but miss the music. STC's insight is that a table's value lies in its structure, not its words. Preserve the structure, and you preserve the meaning.
This reflects a broader principle in data processing: respect the data type; process different data differently, because structure is the carrier of information.
Questions to Ask About Your Own RAG System
1. Does my chunking strategy account for data type? 2. Is tabular data being processed as plain text? 3. Is structural information preserved through ingestion and retrieval? 4. Would row-level operations work better than fixed-token splitting?
The lesson: RAG should not be one-size-fits-all — chunk according to the material. When a RAG system learns to respect table structure, it evolves from a "text processor" into a "data understander." In enterprise AI, the best RAG is not the most generic one, but the one that best understands data types.
In the universe of data, structure is the skeleton of information.