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 to | Use | Coding agent |
|---|---|---|
| Answer questions about your documents, with citations | PageIndex Agent | |
| Search the relevant pages, to feed your own LLM or agent | Page Search API | |
| Extract fields and tables as JSON, to store or process | Page 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.
Tag documents, and search just the matches
Keep documents in folders, and ask within one
PageIndex Agent
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.
For answers, not just pages
PageIndex's tools in your agent, or over 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:
standardfor most documents,profor the hardest. - In the background: start an extraction, come back for the result; see Jobs.