AI Tools Building Document Structure with Loop Engineering: Recovering a PDF’s Outline from Body Typography for RAG pipeline needs the document’s table of contents: retrieval scopes by section, and the chunker cuts on heading boundaries instead of…