For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog in
DocumentationAPI ReferenceModel VersioningChangelog
DocumentationAPI ReferenceModel VersioningChangelog
    • Studio
    • Support
    • Benchmarks
    • Status
  • Getting Started
    • Overview
    • API Quickstart
    • Dashboard Quickstart
    • Agent Quickstart
  • Dev Tools
    • SDKs
    • CLI
  • Capabilities
    • Page Ranges
LogoLogo
Book a demoLog in
On this page
  • Page selection
  • pageRanges
  • fixedPageLimit
  • Chunking behavior
  • Best practices

Page Ranges

Was this page helpful?
Previous
Built with

Page selection

Extractors, classifiers, and splitters let you restrict which pages of the source document are read and billed. Use either pageRanges or fixedPageLimit, preferring pageRanges, never both.

FieldLocationTypeWhat it does
pageRangesadvancedOptions{ start: number; end: number }[]Fine-grained list of pages to process
fixedPageLimitadvancedOptionsnumberShortcut for “use the first n pages”

pageRanges

1"advancedOptions": {
2 "pageRanges": [
3 { "start": 1, "end": 3 },
4 { "start": 10, "end": 10 }
5 ]
6}
  • 1-based, inclusive page numbers
  • Ranges can overlap or arrive out of order; the platform merges and sorts them automatically
  • Omit the field or pass [] to process the full document (subject to global limits)

fixedPageLimit

1"advancedOptions": {
2 "fixedPageLimit": 25
3}

Equivalent to pageRanges: [{ "start": 1, "end": 25 }]. All rules that apply to pageRanges also apply to the synthetic range generated from fixedPageLimit.

Chunking behavior

pageRanges (or the range derived from fixedPageLimit) is applied before chunking starts:

  1. Selected pages are isolated and renumbered from 1
  2. Chunking operates on this renumbered subset
  3. Chunk-level options such as chunkingStrategy and pageChunkSize refer to the virtual page numbers

Example:

1"pageRanges": [{ "start": 1, "end": 13 }, { "start": 20, "end": 28}],
2"numPagesPerChunk": 5

Resulting chunks:

ChunkOriginal pages
11–5
26–10
311–13, 20-21
422-26
527-28

Best practices

  • Prefer pageRanges over fixedPageLimit
  • Use pageRanges for non-contiguous or trailing pages
  • Remember that chunking operates on virtual page numbers after filtering