Rethinking Document Indexing for LLM-based Analysis
Donna Pham, Zhongwei Xu, Siyuan Dong, Haotian Gong, Lin Ma
Key points
From the paper's conclusion- These early results are encouraging, and they offer only a glimpse of what index design can bring to LLM-based analysis.
Abstract
Documents such as clinical records, legal contracts, and scientific papers are increasingly analyzed with large language models (LLMs). The na\"ive approach of prompting the model with the full text for every question is slow, expensive, prone to hallucination on long inputs, and reuses no work across questions. Retrieval-augmented generation (RAG) systems build reusable state to address this, but they store it as embedded chunks: slicing text into fragments can lose the meaning that spans them, and the resulting index is tied to one embedding model, so it must be rebuilt whenever that model changes. Answering many questions over a large body of data without a full rescan, however, is not a new problem: it is the problem database indexes have been solving for decades, and we argue that this accumulated index design knowledge is waiting to be revisited for LLM access. As a concrete starting point, we propose Periplus, a hierarchical plain-text index inspired by the classic B+ tree. It arranges a document into pages running from general summaries at the root to specific ones at the leaves, so that each level guides the search into the next. But it departs from the B+ tree in three ways suited to LLM access: content lives at every level, the pages are plain text rather than attribute values, and navigation follows the relevance of a page summary to the question rather than a key comparison. The structure itself is discovered per document by the LLM rather than hand-designed in advance. In a preliminary evaluation on narrative and contract corpora, Periplus comes within 0.1--0.9 percentage points of the strongest baseline's accuracy while consuming 70--72\% fewer total tokens. These early results are encouraging, and they offer only a glimpse of what index design can bring to LLM-based analysis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Tree Navigation Without LLM Summaries: A Matched-Cost Study of Hierarchical Retrieval for Long-Document QAarXiv · 2026
- The DocLap integrated system for understanding multi-page scholarly documentsExpert Systems with Applications · 2026
- PRIME: Pre-Retrieval Index Modeling Enhancement for Structured Document Retrieval-RealarXiv · 2026
- Structure-Exploiting Hierarchical Retrieval for Long Narrative Documents: A Precision-Oriented Alternative to Learned Abstraction TreesarXiv · 2026
- Retrieval-augmented generation for natural language processing: a surveyArtificial Intelligence Review · 2026
- Data.Readme: Documenting Table Relationships for Diverse Data TasksarXiv · 2026