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.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vectifyai/pageindex/llms.txt
Use this file to discover all available pages before exploring further.
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
- Metadata Search
- Semantic Search
- Description Search
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
Implementation Pipeline
Set Up SQL Tables
Store documents along with their metadata and the PageIndex
doc_id in a database table.Query to SQL
Use an LLM to transform a user’s retrieval request into a SQL query to fetch relevant documents.