• Extract text from PDFs while inserting markers for actual PDF viewer page numbers (e.g., [Page 5] at the start of each page).
  • Pass these markers into the prompt text, so the AI can accurately reference the same page numbers seen in a PDF viewer.