How to use bounding box citations in Reducto extraction outputs
generate_citations
is enabled, Reducto includes bounding box metadata for each extracted field. Citation data (citations
) is in a separate field than result
, which is the data returned in your specified schema structure.
Each bounding box (bbox
) represents the location of text in the document with coordinates:
left
, top
, width
, height
: pixel coordinates normalized to the page.
parentBlock
: Since citations can be very granular and specific, the parentBlock
is the Parse block containing the extracted data. It helps with providing more contextual data.left: 1, top: 1, width: 1, height: 1
page
field represents the sheet index (1-indexed). Sheet 1 = page 1, Sheet 2 = page 2, etc.page
field represents the actual page number in the document