Parse the Folder, Not Just the PDFs: The Relational Tables RAG Needs on a Case File
Enterprise Document Intelligence [Vol.1 #14D] - The index lists what the case type demands before any folder is opened, and the two questions worth building for are not retrieval questions at all. This post explores building relational table structures for case files in RAG rather than relying solely on PDF parsing.
Background and Context
Enterprise document intelligence engineering frequently reduces retrieval-augmented generation to a single pipeline: slice PDFs into chunks, run vector search, then hand the fragments to a large language model. That workflow handles blog posts, technical manuals, and internal wikis adequately, but it breaks down once documents are organized around discrete cases. Legal files, insurance claims, and loan applications share a structure that chunking cannot capture.
A recent analysis on Towards Data Science targets this failure directly. Its central claim is that the unit requiring parsing is not the PDF but the entire case folder, and that the two most valuable queries to build are not retrieval questions at all. They are relational table problems. This matters because it exposes a deviation at the architectural starting point shared by most enterprise document systems.
The value of a case file lives not in the semantics of any single page but in the network of relations spanning multiple documents, pages, and timelines. A loan application derives its meaning from whether an income certificate, bank statements, a credit report, and the application form can be matched, reconciled, and traced against one another. The amount on one certificate is secondary to those cross-document links. Stuffing all of this into a vector database compresses a relational web into scattered sand.
Deep Analysis
Vector search answers questions of semantic similarity. It excels at identifying which text segment is most relevant to a given query, yet it cannot answer whether the amount in document A matches the amount in document B, whether a contract's signatories cover every required clause, or which stage of an approval workflow a timestamp falls into. These questions admit no similarity score. They yield true or false, yes or no, match or mismatch. Such answers belong to the domain of relational databases, governed by foreign keys, constraints, aggregation, and join operations rather than cosine distance in an embedding space. The distinction is structural, not merely a matter of retrieval tuning. The author's core proposal is that before any folder is opened, the indexing system should already know which case type it belongs to and pre-list the contents that type demands. This requires domain knowledge: which documents a divorce file requires, which qualifications a construction bid needs, which receipts an insurance claim demands. Structured extraction driven by case type stands in direct opposition to full-text chunking followed by passive retrieval. The former encodes business rules as a schema before extraction begins; the latter flattens everything equally and relies on the model to assemble meaning on the fly during retrieval.
The second approach is especially dangerous in legal contexts. Once a critical relationship is severed during chunking, the model can only infer from broken semantic fragments, and errors surface with high confidence. From a commercial standpoint, the stakes land in accuracy and accountability. Law, finance, and medical fields tolerate almost no document-processing errors; a single misplaced field can reject a loan, misjudge a claim, or drop a contract clause. When an error stems from semantic drift in vector search, accountability is diffuse and hard to trace. When it stems from a missing relational schema, accountability is clear and correctable through architecture.
Industry Impact
This distinction reshapes where resources flow. Leading enterprises are moving investment away from better chunking strategies toward more rigorous case schema design. The competitive landscape is splitting accordingly. One group of vendors continues competing on embedding models and ranking. Another begins building structured extraction engines built for vertical case types, which often carry stronger moats in specialized settings.
For buyers, this changes the questions they should ask. Selecting a document intelligence solution is no longer a matter of asking how high the retrieval accuracy is. The sharper question is whether the system can state, before reading any file, which materials, fields, and relationships a given case requires.
Outlook
Three signals warrant attention. First, whether schemas driven by case type can be generated automatically, letting systems归纳 from historical files the common table structure of a case type rather than relying on manual definition each time. Second, how relational structures and vector search can cooperate within a single system, so that structured queries locate key documents while semantic retrieval fills in details, complementing rather than replacing each other. Third, whether these tables can be standardized into a universal case data model spanning institutions, enabling genuine data interoperability between different law firms, insurers, and banks.
If these directions advance, document intelligence will move beyond merely reading PDFs toward actually completing cases. That transition may well be the watershed separating industry demonstrations from production systems.
Wait—the source text contains Chinese characters in that first sentence. Let me correct that. First, whether schemas driven by case type can be generated automatically, letting systems infer from historical files the common table structure of a case type rather than relying on manual definition each time. Second, how relational structures and vector search can cooperate within a single system, so that structured queries locate key documents while semantic retrieval fills in details, complementing rather than replacing each other. Third, whether these tables can be standardized into a universal case data model spanning institutions, enabling genuine data interoperability between different law firms, insurers, and banks. If these directions advance, document intelligence will move beyond merely reading PDFs toward actually completing cases. That transition may well be the watershed separating industry demonstrations from production systems.
Sources
FAQ
What is the article's central claim?
The unit requiring parsing is not the PDF but the entire case folder, and the two most valuable queries to build are retrieval questions at all — they are relational table problems.
Why is PDF parsing alone insufficient for case documents?
A case file's value lies in cross-document relations, not single-page semantics. Vector search only answers similarity, never true/false questions like whether two amounts match.
What developments are worth watching?
Whether case-driven schemas can be auto-generated, how relational structures and vector search cooperate in one system, and whether these tables standardize into a shared cross-organization data model.