PageIndex: Vectorless, Reasoning-based RAG

Build hierarchical tree indexes and reason over them for context-aware retrieval - no vector DB, no chunking.

Stars
★ 41k
Last updated
2d ago v0.8.3
FARS reviewed
Nov 08, 2026 +11 new
License
MIT
Primary language
Python

At a glance

How it runs
Library / SDKHosted serviceMCP server
Works with
Universal · cross-platformOpenAI API
Cost
Free tier plus a paid hosted plan
Setup effort
Low · running in minutes
You'll need
Python 3LiteLLM API keyShell / CLINetwork accessLocal filesystem
Typical use
Financial analysts extracting specific data points from SEC filings or earnings reports for investment decisions.
Not a fit if
  • Teams that need fully offline, on-premises data handling
  • Users with scanned or image-heavy PDFs (local mode is text-only)
  • Teams needing stable production features (Flash mode is preview)
Website
pageindex.ai ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v0.8.3 (2026-11-30)+12.1 ★/day over 7 days

What does this agent do, and when should you use it?

PageIndex is an open-source vectorless, reasoning-based RAG engine that constructs a hierarchical tree index from long documents and uses LLMs to reason over that index for retrieval. Unlike traditional vector similarity search, PageIndex mirrors human reading patterns through tree search, prioritizing relevance and interpretability. The repository provides a self-hosted Python package that generates tree structures from PDF or Markdown documents, with standard PDF parsing and an optional 'Flash' mode for faster generation. The project claims state-of-the-art 98.7% accuracy on FinanceBench, outperforming vector RAG. Deployment options include self-hosted, cloud service via API/MCP, and enterprise private deployment.

PageIndex transforms PDF or Markdown documents into a hierarchical tree structure (like a table of contents), where each node includes a title, summary, and page ranges. Retrieval involves LLM-based reasoning over the tree to find the most relevant sections. Key operations: run run_pageindex.py to generate the tree with --pdf_path or --md_path; optionally use --flash for heuristic-based fast generation; the examples/agentic_vectorless_rag_demo.py demonstrates Agentic RAG. Output is a JSON tree with fields like node_id, start_index, end_index, and summary.

  1. Financial analysts extracting specific data points from SEC filings or earnings reports for investment decisions.
  2. Legal teams searching through thousands of pages of regulations to find relevant clauses for compliance.
  3. Medical researchers retrieving specific study findings from academic literature for systematic reviews.
  4. Technical writers looking up API details in product manuals to update user guides.
  5. Enterprises implementing traceable and explainable document Q&A for internal knowledge management.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip3 install --upgrade -r requirements.txt
Environment variables
OPENAI_API_KEY
Config files
.env

How do you install or deploy this agent?

Clone the repository from GitHub and install dependencies: pip3 install --upgrade -r requirements.txt. Set your LLM API key by creating a .env file in the root directory with OPENAI_API_KEY=your_key (LiteLLM supports multiple providers).

How do you use this agent?

Generate a tree from a PDF using python3 run_pageindex.py --pdf_path /path/to/document.pdf or from Markdown with --md_path. Optional arguments include --model (default gpt-4o-2024-11-20), --max-pages-per-node, etc. Use --flash for faster heuristic-based generation. For Agentic RAG, install openai-agents and run python3 examples/agentic_vectorless_rag_demo.py.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • No vector database or chunking, avoiding the similarity-relevance mismatch of traditional RAG.
  • Tree-based reasoning provides better traceability and explainability.
  • Achieved 98.7% accuracy on FinanceBench, outperforming vector RAG.
  • Flexible deployment: self-hosted, cloud, and enterprise options.
Limitations
  • Reliance on LLM reasoning leads to higher latency and cost, plus requires API keys.
  • Standard PDF parsing struggles with complex layouts; cloud service needed for better OCR.
  • Self-hosted version only supports PDF and Markdown; advanced features like OCR are paid.
  • Project is early-stage; Flash mode is preview and may be unstable.

How does this agent compare with similar options?

Compared to traditional vector-DB RAG systems (e.g., based on FAISS or Pinecone), PageIndex emphasizes reasoning over similarity, claiming higher accuracy on professional documents.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
PageIndex: Vectorless, Reasoning-based RAG This agent 54 · Major gaps Library / SDKFreemium ★ 41k 2d ago Python OpenAI API
AI Bank Statement Automation 48 · Major gaps CLIFree + model costs ★ 638 5d ago Jupyter Notebook OpenAI API
Controllable Complex RAG 46 · Major gaps Library / SDKFree + model costs ★ 1.6k 1mo ago Jupyter Notebook OpenAI API
Easy Data x AI 65 · Some gaps Web appFree + model costs ★ 227 27d ago Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 11 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 13/29
Reliability 6/14
Adaptability 12/18
Convention 12/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The README describes local and cloud data paths and says the cloud handles parsing, OCR, indexing, and storage, providing some data-flow visibility. It configures API keys through environment variables, but the packet does not show permission scopes, key protections, sensitive-document handling, or confirmation and recovery flows for side-effecting operations, so those scores remain limited. Dependency files set version bounds and explain some compatibility constraints and avoidance of a malicious release, but do not provide a complete vulnerability review. The README and license identify the project and copyright holder; publisher identity is marked unverified in the prompt, so it earns no extra credit.

Reliability6 / 14 · 2.1/5

The entry-point docstring describes extraction stages and key parameters, tests show coverage of tool contracts and local storage behavior, and the README provides a basic SDK example. These sources offer some corroboration. Most dependencies use open-ended version ranges, and the packet does not establish availability guarantees or complete error-recovery behavior. The supplied tests are static evidence and do not establish runtime results. The excerpts do not show actionable user-facing failure guidance, limiting that score.

Adaptability12 / 18 · 3.3/5

The README identifies long, complex professional documents as the target and names finance, legal, regulatory, technical, medical, and academic scenarios. It describes local and cloud modes, model selection, and integration with other Agent frameworks. The local/cloud capability distinction is documented, and tests check boundaries between local tools and the cloud contract. The packet gives limited detail about unsuitable use cases, precise triggers, or environmental constraints, so scores are not higher.

Convention12 / 18 · 3.3/5

The README has clear installation steps, an SDK example, documentation links, capability comparisons, and benchmark sections. Package metadata provides a version, Python range, dependencies, and repository and documentation locations. The LICENSE contains the full MIT terms, earning full marks. Updates and the package version provide some version information, but the packet does not show a complete changelog. Known limitations appear mainly as local/cloud capability differences, and maintenance responsibility is only partly identifiable from project and author metadata.

Effectiveness7 / 13 · 2.7/5

The SDK example shows a practical flow for submitting a PDF, querying it, and printing an answer; the intended output is document retrieval and question answering. Tree indexing, contextual retrieval, and traceable citations form a clear value proposition relative to vector retrieval. The README states cost and accuracy figures and links to benchmark material, but the supplied packet lacks the full data and methods needed to review those figures, so cost-benefit receives a conservative score.

Verifiability4 / 8 · 2.5/5

The README links benchmark projects, evaluation results, and reproduction instructions; code documentation and tests provide corroboration for some extraction behavior and tool contracts. However, the main performance, accuracy, and cost claims remain README assertions in this packet, and the included tests do not verify those figures. The materials do not consistently separate measured facts from inference, so this dimension receives limited scores.

Risks and how to mitigate them
  • The accuracy, cost, and speed figures in the README cannot be fully checked from this packet and should not be treated as verified by this static review.
  • In cloud mode, document indexing and storage are handled by the service; review its data handling and retention terms before using sensitive documents.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 2ac8694bf8fe New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pageindex.svg)](https://followagents.com/en/agents/pageindex)
<a href="https://followagents.com/en/agents/pageindex"><img src="https://followagents.com/badge/pageindex.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.8.3 PageIndex 0.8.3 — Lower Cost, Higher Accuracy than Vector RAG
    Release notes excerpt
    - Cheaper than vector RAG: for both index and query. - Faster: trees are created from layout stats. - Unified SDK: vectorless RAG. Local or cloud, for index and chat. - Runs on your Claude subscription. Index, to chat, to agent integration, one client. Local mode needs no server, no vector DB, no PageIndex API key. ```python client = PageIndexClient() client.submit_document("report.pdf") client.chat("What does the report conclude?") ``` Highlights …
    View on GitHub ↗
  2. v0.8.2 PageIndex 0.8.2 — Lower Cost, Higher Accuracy than Vector RAG
    Release notes excerpt
    - Cheaper than vector RAG: for both index and query. - Faster: trees are created from layout stats. - Unified SDK: vectorless RAG. Local or cloud, for index and chat. - Runs on your Claude subscription. Index, to chat, to agent integration, one client. Local mode needs no server, no vector DB, no PageIndex API key. ```python client = PageIndexClient() client.submit_document("report.pdf") client.chat("What does the report conclude?") ``` Highlights …
    View on GitHub ↗
  3. v0.8.1 PageIndex 0.8.1 — Lower Cost, Higher Accuracy than Vector RAG
    Release notes excerpt
    - Cheaper than vector RAG: for both index and query. - Faster: trees are created from layout stats. - Unified SDK: vectorless RAG. Local or cloud, for index and chat. - Runs on your Claude subscription. Index, to chat, to agent integration, one client. Local mode needs no server, no vector DB, no PageIndex API key. ```python client = PageIndexClient() client.submit_document("report.pdf") client.chat("What does the report conclude?") ``` Highlights …
    View on GitHub ↗

FAQ

Do I need a paid cloud service to use core features?
The self-hosted open-source version is free, but it only supports standard PDF parsing and requires your own LLM API. Cloud service offers enhanced OCR and higher-quality tree building, possibly paid.
Which LLM providers are supported?
LiteLLM enables support for multiple providers like OpenAI, Anthropic, etc., but you need to set their API keys.
How do I use the generated tree for RAG?
You can perform reasoning-based retrieval over the tree, or use the provided Agentic RAG example (with OpenAI Agents SDK) to build a full RAG pipeline.
What about scanned PDFs or complex layouts?
Use the cloud service or PageIndex OCR (separate) for such cases; the self-hosted version may not extract text accurately.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts