PageIndex: Vectorless, Reasoning-based RAG
Build hierarchical tree indexes and reason over them for context-aware retrieval - no vector DB, no chunking.
- Source repo
- VectifyAI/PageIndex
- Stars
- ★ 41k
- Last updated
- 2d ago v0.8.3
- FARS reviewed
- Nov 08, 2026 +11 new
- License
- MIT
- Primary language
- Python
- FA score
- 54/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Low · running in minutes
- You'll need
- 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
- Source review
- 54/100 · Major gaps
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.
- Financial analysts extracting specific data points from SEC filings or earnings reports for investment decisions.
- Legal teams searching through thousands of pages of regulations to find relevant clauses for compliance.
- Medical researchers retrieving specific study findings from academic literature for systematic reviews.
- Technical writers looking up API details in product manuals to update user guides.
- 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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 ↗ -
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?
Which LLM providers are supported?
How do I use the generated tree for RAG?
What about scanned PDFs or complex layouts?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.