← Back to document 452

AI review — page 1

claude-opus-4-8 · prompt v7 · 2026-08-26T08:32:33+00:00 · applied: yes · changed: yes

Screenshot sent to the model (reading-order tags burned on)

Annotated page 1

Instructions (system prompt)

The screenshot has annotations burned onto it that are NOT part of the document:
- a small red numbered tag at the top-left corner of each item, showing that item's position in the OCR-determined reading order (the same order the items appear in the json data);
- a red-and-white dotted outline around each item, showing the area the OCR detected for that content block.
Use the tags and outlines to see the detected reading order and item boundaries directly on the page, and judge that sequence against how a human would naturally read it. Ignore the annotations when checking text fidelity — they overlay the content, they are not content.

For the given screenshot of a PDF's page and the attached json data, I want you to perform the following tasks in order...

Review the reading order set out in the json data and compare to what a natural reading order for that of a human would be by looking at the screenshot. Decide on any changes and re-arrange the items for the most logical reading order.
Look at all text for each item and correct any extraction errors like missing words, spelling mistakes etc.
Look at each item in the JSON and ensure that the OCR process has identified the item as the correct type: text, list item etc.
Look for any text that duplicates: if two items next to each other contain the exact same text but the text only appears once on the screenshot, one of them is an extraction error — keep the item whose box matches where the text is visible and flag the other for removal.
Make amendments as you proceed through the items and list of instructions.
Reading Order Advice: If there is columns with headings and text, I wouldnt expect the reading order to jump from one heading straight to another if there is text associated with that heading.

Return format: Give me the json data back only, with the amendments you make.

Mechanical notes (so your answer can be applied automatically):
- Each item has an `id` — keep every item and its `id` exactly as given; never invent, drop or duplicate ids. Re-arranging means changing the position of items (and their nesting) in the arrays.
- Never move text (or a type) from one item to another: each item's coordinates travel with its id, so to change reading order you must move the whole item object, and text amendments must be in-place corrections of that item's own text.
- To flag a duplicate item, keep it in the array and add `"remove": "duplicate"` to it — never just delete it (deleted items are restored automatically).
- ids are opaque labels, not sequence numbers: never renumber them. After a removal or re-arrangement, every remaining item keeps the exact id it came with, even if the ids no longer look sequential.
- Text may contain `[pN.M…]` placeholders marking where an inline formula belongs — treat them as part of the text and leave them exactly where they are.
- `box` is [left, top, right, bottom] as percentages of the page from the top-left corner; return it unchanged.
- Respond with raw JSON only: no code fences, no commentary, same shape as the input (`{"items": [...]}`).

User message (json data sent)

Page 1 json data:

{"items":[{"id":"p1.1","type":"figure","box":[3,5,98,98],"text":"","children":[{"id":"p1.1.1","type":"link","box":[33,74,53,77],"text":"Adjusted tor intlauon t (Based on 2022, 2023, 2024)"}]},{"id":"p1.2","type":"text","box":[3,98,98,100],"text":"This is a decision tree titled \"Maryland Department of Agriculture Produce Safety Rule Eligibility and Exemption Flow Chart,\" labeled \"Part I.\" It carries the Maryland Department of Agriculture logo.\n\nThe flow begins at a green diamond labeled \"Start.\" An arrow leads from Start to the first decision box: \"Does your farm grow, harvest, pack, or hold produce? (fruits, vegetables, microgreens, mushrooms, sprouts, nuts, and herbs) Sections 112.1 and 112.3(c). Complete the Produce Safety Rule Registration Form.\"\n\nFrom this box there are two branches. The NO branch leads to a red octagon reading \"STOP. You are not covered by the Produce Safety Rule.\" The YES branch leads downward to the next decision box: \"Is it for personal consumption only?\"\n\nFrom the \"Is it for personal consumption only?\" box there are two branches. The YES branch leads (upward and to the right) to the same red STOP octagon: \"STOP. You are not covered by the Produce Safety Rule.\" The NO branch leads to the left to the next decision box: \"Is any of the produce you grow and sell usually consumed raw?\"\n\nFrom the \"Is any of the produce you grow and sell usually consumed raw?\" box there are two branches. The NO branch leads to the right to a red octagon reading \"Produce that is rarely consumed raw, as listed on the exhaustive list in Section 112.2 is not covered by the Produce Safety Rule (e.g., asparagus, beets, corn, eggplant, okra, potatoes, pumpkins, winter squash). Complete the Non-Covered Commodities Exemption if you are only growing produce that is on the exhaustive list. Reassess eligibility if new crops are grown.\" This is a terminal outcome. The YES branch leads down and to the right to the next decision box: \"Is your three-year average of gross produce sales less than $33,297† †Adjusted for inflation (Based on 2022, 2023, 2024).\"\n\nFrom the \"Is your three-year average of gross produce sales less than $33,297\" box there are two branches. The YES branch leads to the right to a red-bordered octagon reading \"You are exempt from the Produce Safety Rule. Complete the Sales Value Exemption form annually as it applies.\" This is a terminal outcome. The NO branch leads down to a box reading \"My three-year average of gross produce sales is greater than $33,297†.\"\n\nFrom that box, the YES branch leads to the left to the terminal instruction \"Proceed to Part II.\"\n\nAn aside in a box at the bottom right, sitting outside the flow, reads: \"This publication is supported by the Food and Drug Administration (FDA) of the U.S. Department of Health and Human Services (HHS) as part of a financial assistance award U2FFD007444 totaling $1,280,384 with 100 percent funded by FDA/HHS. The contents are those of the author(s) and do not necessarily represent the official views of, nor an endorsement, by FDA/HHS, or the U.S. Government.\""}]}

Model response

{"items":[{"id":"p1.1","type":"figure","box":[3,5,98,98],"text":"","children":[{"id":"p1.1.1","type":"link","box":[33,74,53,77],"text":"Adjusted tor intlauon t (Based on 2022, 2023, 2024)"}]},{"id":"p1.2","type":"text","box":[3,98,98,100],"text":"This is a decision tree titled \"Maryland Department of Agriculture Produce Safety Rule Eligibility and Exemption Flow Chart,\" labeled \"Part I.\" It carries the Maryland Department of Agriculture logo.\n\nThe flow begins at a green diamond labeled \"Start.\" An arrow leads from Start to the first decision box: \"Does your farm grow, harvest, pack, or hold produce? (fruits, vegetables, microgreens, mushrooms, sprouts, nuts, and herbs) Sections 112.1 and 112.3(c). Complete the Produce Safety Rule Registration Form.\"\n\nFrom this box there are two branches. The NO branch leads to a red octagon reading \"STOP. You are not covered by the Produce Safety Rule.\" The YES branch leads downward to the next decision box: \"Is it for personal consumption only?\"\n\nFrom the \"Is it for personal consumption only?\" box there are two branches. The YES branch leads (upward and to the right) to the same red STOP octagon: \"STOP. You are not covered by the Produce Safety Rule.\" The NO branch leads to the left to the next decision box: \"Is any of the produce you grow and sell usually consumed raw?\"\n\nFrom the \"Is any of the produce you grow and sell usually consumed raw?\" box there are two branches. The NO branch leads to the right to a red octagon reading \"Produce that is rarely consumed raw, as listed on the exhaustive list in Section 112.2 is not covered by the Produce Safety Rule (e.g., asparagus, beets, corn, eggplant, okra, potatoes, pumpkins, winter squash). Complete the Non-Covered Commodities Exemption if you are only growing produce that is on the exhaustive list. Reassess eligibility if new crops are grown.\" This is a terminal outcome. The YES branch leads down and to the right to the next decision box: \"Is your three-year average of gross produce sales less than $33,297† †Adjusted for inflation (Based on 2022, 2023, 2024).\"\n\nFrom the \"Is your three-year average of gross produce sales less than $33,297\" box there are two branches. The YES branch leads to the right to a red-bordered octagon reading \"You are exempt from the Produce Safety Rule. Complete the Sales Value Exemption form annually as it applies.\" This is a terminal outcome. The NO branch leads down to a box reading \"My three-year average of gross produce sales is greater than $33,297†.\"\n\nFrom that box, the YES branch leads to the left to the terminal instruction \"Proceed to Part II.\"\n\nAn aside in a box at the bottom right, sitting outside the flow, reads: \"This publication is supported by the Food and Drug Administration (FDA) of the U.S. Department of Health and Human Services (HHS) as part of a financial assistance award U2FFD007444 totaling $1,280,384 with 100 percent funded by FDA/HHS. The contents are those of the author(s) and do not necessarily represent the official views of, nor an endorsement, by FDA/HHS, or the U.S. Government.\""}]}