# PageIndex

> Vectorless RAG engine that builds a tree index of a document and lets an LLM reason over it to retrieve answers.

- Type: agent or tool
- Field: ML & AI
- Repository: https://github.com/VectifyAI/PageIndex
- GitHub stars: 40766
- Licence: MIT
- Language: Python
- Last push: 2026-11-21
- Page: https://imutechz.in/agents/pageindex

## What it is
PageIndex replaces a vector index with a hierarchical tree index of each document and has an LLM search that tree with reasoning. The README says it needs no vector database and no chunking, and retrieval is traceable to explicit references. It is aimed at long professional documents such as financial reports, legal documents and technical manuals. A Python SDK runs locally with your own model key or against PageIndex Cloud.

## Features
- Tree-structure index per document
- LLM reasoning over the tree for retrieval
- No vector database or chunking
- Python SDK with local and cloud modes
- Separate models for indexing and chat
- Optional use of a Claude subscription through Claude Code

## Best for
- Question answering over long PDFs
- Financial, legal and regulatory documents
- Retrieval that needs traceable references

## Pros
- Results trace back to explicit references
- Open-source version works for text-heavy PDFs locally

## Cons
- Needs an LLM API key, or a Claude subscription through the claude extra
- Cloud features are separate products

## Install
```
pip install -U pageindex
pip install -U "pageindex[claude]"
```

Tags: rag, vectorless, document-retrieval, llm, python, pdf, tree-index, information-retrieval
