Skip to main content
PageIndex enables reasoning-based RAG within a single document by default. For users who need to search across multiple documents, PageIndex provides three best-practice workflows for different scenarios.

Search Strategies

Choose the search strategy that best fits your use case:
  • Search by Metadata: For documents that can be distinguished by metadata (financial reports, legal documents, medical records)
  • Search by Semantics: For documents with different semantic content or covering diverse topics
  • Search by Description: A lightweight strategy for a small number of documents
PageIndex with metadata support is in closed beta. Fill out this form to request early access to this feature.

When to Use

Use metadata search when your documents can be easily distinguished by structured attributes:
  • Financial reports categorized by company and time period
  • Legal documents categorized by case type
  • Medical records categorized by patient or condition
This method leverages “Query to SQL” for efficient document retrieval.

Implementation Pipeline

1

Generate PageIndex Trees

Upload all documents into PageIndex to get their doc_id.
2

Set Up SQL Tables

Store documents along with their metadata and the PageIndex doc_id in a database table.
3

Query to SQL

Use an LLM to transform a user’s retrieval request into a SQL query to fetch relevant documents.
4

Retrieve with PageIndex

Use the PageIndex doc_id of the retrieved documents to perform further retrieval via the PageIndex retrieval API.

Need Help?

Contact us if you need any advice on conducting document searches for your use case.