Introduction

PageIndex reads long documents like an expert: it follows how a document is organized to the pages that answer. No OCR, no embeddings, no vector database, and every result traces back to its page.

You want toUseCoding agent
Answer questions about your documents, with citationsPageIndex Agent
Search the relevant pages, to feed your own LLM or agentPage Search API
Extract fields and tables as JSON, to store or processPage Extract API

PageIndex Agent works with collections or folders; Page Search and Page Extract use collections.

Document organization

  • Collections with metadata: tag documents by company, year or any key, to search just those.
  • File system with folders: keep documents in folders and subfolders, and ask within a folder.

PageIndex Agent

Annual report120 pagesBusiness overviewp. 1–24Financial resultsp. 25–78Risk factorsp. 79–120p. 25p. 26p. 27p. 28p. 29p. 30p. 31p. 32p. 33p. 34p. 35p. 36p. 37p. 38p. 39your documentsFinancial results, p. 25–78p. 341.Find relevant documents2.Find relevant sections3.Find relevant pages4.Find it on the page
Annual report120 pagesBusiness overviewp. 1–24Financial resultsp. 25–78Risk factorsp. 79–120p. 25p. 26p. 27p. 28p. 29p. 30p. 31p. 32p. 33p. 34p. 35p. 36p. 37p. 38p. 39your documentsFinancial results, p. 25–78p. 341.Find relevant documents2.Find relevant sections3.Find relevant pages4.Find it on the page

A ready-made document agent: PageIndex indexes your documents, and your own LLM answers with citations down to the page and block.

  • Index and read: upload PDF, Word and PowerPoint; read each document's tree, pages and blocks.
  • Answer with your LLM: PageIndex finds the right pages, and your model writes the answer.
  • Plug into your agent: PageIndex's tools in your own agent, in Python, JavaScript or MCP.

Page Search API

Ask up to 10 questions at once; get back, for each, the pages likely to answer it, with a relevance score. Send your LLM only those pages, not whole documents.

  • One document or many: one, a collection, a metadata filter, or all.
  • Pictures too: reads scans, charts and diagrams; no OCR or PDF parser needed.
  • Documents first: Search documents finds which documents answer, before you search their pages.

Page Extract API

Describe the fields you want in a JSON Schema; get them back as JSON, each row with its page. Long filings, scans and tables of thousands of rows included.

  • Your schema: field descriptions are the instructions; see Writing a schema.
  • Two tiers: standard for most documents, pro for the hardest.
  • In the background: start an extraction, come back for the result; see Jobs.