The document retrieval layer for AI

Vectorless RAG for long, complex documents — accurate, traceable, context-aware, and cost efficient.

How PageIndex works
Sourcereport.pdf — a 120-page annual report
report.pdf120 pagesBusiness Overviewp. 1-24Financial Resultsp. 25-78Risk Factorsp. 79-120Revenue and Cost of Salesp. 26-40Operating Margin Analysisp. 41-52
A 120-page PDF arrives — headings, sections, page numbers, and nothing a machine can navigate.
Operating margin was 18.4% in 2023. <cite doc="report.pdf" page="43"/>

Get started in seconds

0

Install the SDK

$pip install -U pageindex
1

Get a PageIndex API key

Create one in the Developer Dashboard.

$export PAGEINDEX_API_KEY="key"
2

Prepare your LLM model

Any model works — OpenAI here as an example.

$export OPENAI_API_KEY="key"
3

Index a document and query it

Generate a tree index, then let your LLM or agent search it for answers.

View Documentation
from pageindex import PageIndexClient client = PageIndexClient(    index="cloud",       # index and store in PageIndex Cloud    chat="gpt-5.6-sol",  # your own LLM answers) doc_id = client.submit_document("report.pdf", wait=True)["doc_id"] messages = "What benchmarks are used?" for chunk in client.chat(messages, doc_id=doc_id, stream=True):    print(chunk, end="", flush=True) 

Retrieval accuracy scales with the model

With PageIndex, you can switch to a better model or raise the thinking effort for better accuracy instantly — no re-indexing, no re-embedding.

Retrieval accuracyThinking effort none
85%90%95%100%gpt-5.6-luna85.5%gpt-5.6-terra90.3%gpt-5.6-sol96.8%$0.003$0.03$0.10

Average cost per question · log scale

Text lookup questions from MMLongBench-Doc-V2

See the benchmark

Compare ways to query a document.

PageIndex gives LLMs a persistent structure to retrieve only the information they need.

vs Vector DB

Higher accuracy

Retrieval accuracy on FinanceBench

PageIndex

98.7%

Uses reasoning-based tree search to determine relevance.

Vector DB

50.0%

Approximate search via semantic similarity.

See benchmark

vs LLM File Input

Lower cost

Cost per question on a 420-page document

PageIndex

Every query only reads the pages on the path it walks.

LLM File Input

16×

Every question reads the whole document.

See details

Every claim points back to a block

Not just a page number. A citation names the layout block it came from, and that block resolves to a bounding box — so your own viewer can highlight the exact region.

Answer

Asia segment revenue was $4.21B in fiscal 2024, up 12.4% year over year.

Block-level references are a PageIndex Cloud feature; local citations stop at the page.

View Documentation
1report.pdf · page 12

Run it anywhere

The same SDK runs on your laptop, on our cloud, or inside your own private cloud.

PageIndex Local

Open source, on your machine, with your own model key.

  • Documents never leave your disk
  • Cost-efficient indexing with PageIndex Flash
  • Text-based PDFs, read directly — no OCR
  • Open source, 35k+ stars on GitHub
View on GitHub

PageIndex Cloud

Managed indexing, storage, and retrieval. Nothing to run.

  • Our best indexing model, fully managed
  • Scanned files and image understanding
  • Hosted storage and file management
  • Free to start — 30k+ developers already building
Start on Cloud

PageIndex Enterprise

All of Cloud, deployed in your own private cloud.

  • Runs in your VPC on AWS, Azure, or GCP
  • Documents and indexes stay in your cloud
  • customized integrated options
  • Audit logs, dedicated support, and SLA
Talk to our team

Simple usage billing for PageIndex Cloud#

Local stays free and open source. Start with $10 in free Cloud credits. No minimum monthly cost.

Free Starter

$10in free credits

  • No payment method required
  • Covers your first 1,000 pages indexed
  • 1,000 active pages free, every month
  • Unlimited retrieval on your active pages
  • Bring your own LLM
Start for free

Usage Billing Rates

IndexingCharged once, when the page is indexed.$0.01/ page
Active pagesKept indexed and ready to query, billed at month end. First 1,000 free.$0.001/ page / mo
RetrievalNo retrieval fees on active pages. You pay your LLM provider directly.Unlimited
Get started

Estimate your cost

I havepages
Indexingone-time$10.00
Active pagesfirst 1,000 pages free$0.00/ mo
Retrievalunlimited queries on active pagesUnlimited

Start building with PageIndex

Get started