PageIndex builds a hierarchical tree index from PDFs and answers questions by having a language model reason over that structure instead of embedding chunks in a vector database.
Overview
PageIndex targets long, complex professional documents where similarity search can miss relevant but dissimilar passages. It first derives a tree-shaped index from document layout, then uses model reasoning to walk the tree and retrieve the sections needed to answer a question, with citations tied to explicit pages.
The open SDK runs indexing locally on text-based PDFs using your own model API keys, storing indexes on disk and exposing chat, streaming, multi-document queries, and agent tool bindings. Optional cloud indexing adds visual page reading without a separate OCR step, cloud storage, richer citations with evidence boxes, and APIs for page search and structured field extraction.
Compared to typical vector RAG, PageIndex emphasizes traceable retrieval paths and conversation-aware context rather than opaque nearest-neighbor matches. It integrates with common agent SDKs through plain Python tools and supports multiple model providers via a unified client configuration.
Typical document types mentioned include financial filings, legal and regulatory texts, technical manuals, and academic material. Local indexing cost scales with page count, while each later query reuses the built tree instead of resending entire files to the model.
Key features
- Tree index built from PDF layout
- LLM reasoning over the index for retrieval
- Local SDK with pluggable chat models
- Page-level and boxed cloud citations
- Multi-document and threaded conversations
- Agent framework tool helpers
- Page Search and Extract APIs on cloud
- No vector database or chunk store required
Use cases
- Q&A on long financial reports
- Legal and regulatory document research
- Technical manual lookup with citations
- Agent tools over private document sets
- Structured data extraction from PDFs