vs Vector RAG
More accurate, at lower cost
Answer accuracy
Cost per 1,000 queries
Vectorless RAG for long, complex documents — accurate, traceable, context-aware, and cost efficient.
<cite doc="report.pdf" page="43"/>pip install -U pageindexAny model works — OpenAI here as an example.
export OPENAI_API_KEY="key"Generate a tree index, then let your LLM or agent search it for answers.
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) With PageIndex, you can switch to a better model or raise the thinking effort for better accuracy instantly — no re-indexing, no re-embedding.
Average cost per question · log scale
Text lookup questions from MMLongBench-Doc-V2
See the benchmarkPageIndex gives LLMs a persistent structure to retrieve only the information they need.
vs Vector RAG
Answer accuracy
Cost per 1,000 queries
63 questions on NVIDIA's 10-Ks, six embedding models at top-k 10 to 100. Every system answers with the same model and is graded against reference answers.
vs LLM File Input
PageIndex
1×
Every query only reads the pages on the path it walks.
LLM File Input
16×
Every question reads the whole document.
Cost per question on a 420-page document.
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 DocumentationThe same SDK runs on your laptop, on our cloud, or inside your own private cloud.
Open source, on your machine, with your own model key.
Managed indexing, storage, and retrieval. Nothing to run.
All of Cloud, deployed in your own private cloud.
Local stays free and open source. Start with $10 in free Cloud credits. No minimum monthly cost.
$10in free credits