728 B
728 B
Page metadata in chunks
Why deferred
v1 Strategies and Qdrant payloads don’t need page numbers. Page-as-section markdown was rejected (arbitrary cuts). Page info is citation UX, not chunking semantics.
Trigger
Users (or the chatbot) need “see page N” citations, or Chunk Preview should show page ranges per chunk.
Approach to try
- During PDF parse, map character/block offsets → page numbers
- Attach optional
page_start/page_endon Chunk / ChunkMetadata (nullable for DOCX) - Do not inject
## Page Ninto markdown unless a Strategy specifically needs it
Success criteria
- DOCX path unchanged (null pages)
- Query/answer path can cite pages without changing Strategy ranking logic