PageIndex

PageIndex

★ 4.4 🔖 7000 saves 💰 Free GitHub

PageIndex is an open-source, vectorless RAG framework with 39,000+ stars on GitHub that retrieves information from long documents by reasoning over a hierarchical tree index instead of searching vector embeddings.

Overview

Vector-based RAG retrieves by semantic similarity, but similarity is not relevance: on long professional documents it returns passages that look similar while missing the ones that actually answer the question. Inspired by AlphaGo, PageIndex replaces the vector index with a tree-structure index built from each document’s own layout, then lets an LLM reason its way through the tree the way a human expert turns to the right section of a report. The result is traceable, explainable retrieval with explicit references instead of opaque “vibe retrieval.” PageIndex reached a state-of-the-art 98.7% accuracy on the FinanceBench financial document QA benchmark, and it is built for financial reports, legal documents, regulatory filings, technical manuals, medical literature and academic textbooks.

Key Features

  • Vectorless tree index – no vector database and no chunking; documents are indexed by their natural structure.
  • Reasoning-based retrieval – the model searches the tree with full context, including conversation history and domain knowledge.
  • Traceable results – answers point back to explicit sections and pages instead of anonymous chunks.
  • Local SDK – install with pip and run on your machine with your own LLM API key; local indexing costs roughly $0.001 per page.
  • PageIndex Cloud – managed parsing, OCR, image understanding, block-level citations and corpus-scale file indexing.
  • Agent integration – drop PageIndex tools into the OpenAI Agents SDK, the Claude Agent SDK or your own framework.
  • Flexible models – can even run through a Claude subscription via Claude Code, with separate index and chat models.

💳 Pricing

PageIndex is free and open source under the MIT license for self-hosting; in local mode you only pay for your own LLM API usage. PageIndex Cloud is an optional managed service that handles indexing and storage for you — check the official site for its current plans.

Who Is It For

Developers and teams building question-answering or analysis over long, complex documents — finance, legal, compliance and research workflows where retrieval accuracy and auditability matter more than raw similarity search.

🚀 Visit PageIndex Official Site

🚩 Report an issue