Use hierarchical indexing: summaries or section-level nodes at the top and detailed chunks below, so retrieval can first find the right section and then the right passage (RAPTOR-style tree summaries are one approach).
Combine small-to-big retrieval with metadata such as section paths, and route broad questions to summaries and specific questions to detailed chunks.
For one-off long documents, long-context prompting can be simpler than building an index, at higher cost per query.
Loading…